<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>8762</bug_id>
          
          <creation_ts>2015-12-04 02:31:08 +0000</creation_ts>
          <short_desc>testimage: make it can run by non root user (without sudo)</short_desc>
          <delta_ts>2016-02-11 11:59:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>7887</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>liezhi.yang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>57024</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-12-04 02:31:08 +0000</bug_when>
    <thetext>We need make testimage can run without sudo or root privilege , a lot of users don&apos;t have root privilege when then work on a server.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57036</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-12-04 09:39:20 +0000</bug_when>
    <thetext>Isn&apos;t the only requirement for root the tap stuff, which you can work around with either static tap nodes created in advance by root, or sudo. For example my /etc/sudoers has:

ross	ALL=NOPASSWD:	/home/ross/Yocto/poky/scripts/runqemu-ifup
ross	ALL=NOPASSWD:	/home/ross/Yocto/poky/scripts/runqemu-ifdown

Now I don&apos;t need to enter the root password to run testimage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57063</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-12-07 03:25:58 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Isn&apos;t the only requirement for root the tap stuff, which you can work around
&gt; with either static tap nodes created in advance by root, or sudo. For
&gt; example my /etc/sudoers has:
&gt; 
&gt; ross	ALL=NOPASSWD:	/home/ross/Yocto/poky/scripts/runqemu-ifup
&gt; ross	ALL=NOPASSWD:	/home/ross/Yocto/poky/scripts/runqemu-ifdown
&gt; 
&gt; Now I don&apos;t need to enter the root password to run testimage.

runqemu nfs can work without root privilege, but testimage hardcode it, and can&apos;t  use extra runqemu args ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57177</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-12-10 16:02:32 +0000</bug_when>
    <thetext>The autobuilders run testimage as non-root perfectly fine without using sudo as the tap devices are pre-created by root and the &quot;pokybuild&quot; user given access to them.  Is there something else that needs root that I&apos;m unaware of?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57555</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2016-01-06 07:32:38 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; The autobuilders run testimage as non-root perfectly fine without using sudo
&gt; as the tap devices are pre-created by root and the &quot;pokybuild&quot; user given
&gt; access to them.  Is there something else that needs root that I&apos;m unaware of?

Hi Ross,
The problem is that you need config the tap devices before you can run testimage as non-root, but config tap devices requires root privilege, this is not convenience when we work on a server without root privilege.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57726</commentid>
    <comment_count>5</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2016-01-11 22:59:46 +0000</bug_when>
    <thetext>Ross,

It appears Robert answered your question.  If you still have question please put it back into NEEDINFO.

Thanks,</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58875</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-02-11 11:59:03 +0000</bug_when>
    <thetext>Right, so you&apos;re asking for user-mode networking in runqemu.

There&apos;s an open bug for that already: bug 7887.  Conclusion is that the performance and inconvenience are sufficiently annoying that it wasn&apos;t worth it.  Feel free to reassign 7887 to yourself and implement it if this is a WR requirement of course!

*** This bug has been marked as a duplicate of bug 7887 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>