<?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>7093</bug_id>
          
          <creation_ts>2014-12-19 19:03:35 +0000</creation_ts>
          <short_desc>Files owned by build user when created by qemuwrapper</short_desc>
          <delta_ts>2016-05-11 07:57:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Pseudo</product>
          <component>pseudo</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Christopher Larson">kergoth</reporter>
          <assigned_to name="Mark Hatle">mark.hatle</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>mhalstead</cc>
    
    <cc>sgw</cc>
    
    <cc>yp.pseudo.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>47642</commentid>
    <comment_count>0</comment_count>
    <who name="Christopher Larson">kergoth</who>
    <bug_when>2014-12-19 19:03:35 +0000</bug_when>
    <thetext>Files emitted at do_rootfs time by the user mode emulation qemu (e.g. generation of hwdb.bin, fontconfig cache, etc) end up owned by the build machine user rather than root/root.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48921</commentid>
    <comment_count>1</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-02-19 10:02:43 +0000</bug_when>
    <thetext>Investigation started.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51208</commentid>
    <comment_count>2</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-05-21 16:34:30 +0000</bug_when>
    <thetext>Put on hold, as there is no easy technical solution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56073</commentid>
    <comment_count>3</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-11-02 08:53:32 +0000</bug_when>
    <thetext>Moved to 2.1, 2.0 is already frozen feature-wise.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59232</commentid>
    <comment_count>4</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2016-02-18 21:48:50 +0000</bug_when>
    <thetext>This is due to the fact that the qemuwrapper running in user space can not get 
access to pseudo.so to intercept the system call correctly  

(08:11:36 AM) sgw_: ERROR: ld.so: object &apos;libpseudo.so&apos; from LD_PRELOAD cannot 
be preloaded (cannot open shared object file): ignored.

Trying to add libpseudo.so to the target would cause contamination in the 
target.

The workaround for this is to correct set the ownership / permissions in 
postinst scripts that calls the qemurapper with the the PSEUDO_UNLOAD such that 
they chown/chmod is called with pseudo correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59233</commentid>
    <comment_count>5</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2016-02-18 21:50:43 +0000</bug_when>
    <thetext>When a qemu process is executed the LD_PRELOAD will be run.

The LD_PRELOAD if inherited into the target environment will not execute, as it&apos;s is designed to be running native and not target.

The system may choose to unload pseudo BEFORE calling qemu, if this is the case then any files created or modified by the pseudo method will not be under pseudo control, and thus inherit a system based user or password.

I believe this is a problem with the way QEMU is executing individual binaries, and not an error in pseudo itself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62086</commentid>
    <comment_count>6</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2016-05-11 07:57:53 +0000</bug_when>
    <thetext>Verified as Wontfix since the problem is not in Yocto project.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>