<?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>13776</bug_id>
          
          <creation_ts>2020-02-03 12:27:03 +0000</creation_ts>
          <short_desc>sysvinit reproducibility issue (shutdown user leakage)</short_desc>
          <delta_ts>2020-02-08 13:48:55 +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>3.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <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>86273</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-02-03 12:27:03 +0000</bug_when>
    <thetext>Appears the presence of the shutdown user on the host is changing the target package?

--- oe-reproducible-20200203-65bgspxp/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/build-st-14939/reproducibleA/tmp/deploy/deb/core2-64/sysvinit_2.96-r0_amd64.deb
+++ oe-reproducible-20200203-65bgspxp/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/build-st-14939/reproducibleB/tmp/deploy/deb/core2-64/sysvinit_2.96-r0_amd64.deb
├── file list
│ @@ -1,3 +1,3 @@
│  -rw-r--r--   0        0        0        4 2019-09-11 17:43:12.000000 debian-binary
│  -rw-r--r--   0        0        0      872 2019-09-11 17:43:12.000000 control.tar.xz
│ --rw-r--r--   0        0        0   174364 2019-09-11 17:43:12.000000 data.tar.xz
│ +-rw-r--r--   0        0        0   174448 2019-09-11 17:43:12.000000 data.tar.xz
├── data.tar.xz
│ ├── data.tar
│ │ ├── file list
│ │ │ @@ -17,18 +17,18 @@
│ │ │  drwxr-xr-x   0 root         (0) root         (0)        0 2019-09-11 17:43:12.000000 ./etc/rc4.d/
│ │ │  drwxr-xr-x   0 root         (0) root         (0)        0 2019-09-11 17:43:12.000000 ./etc/rc5.d/
│ │ │  drwxr-xr-x   0 root         (0) root         (0)        0 2019-09-11 17:43:12.000000 ./etc/rc6.d/
│ │ │  drwxr-xr-x   0 root         (0) root         (0)        0 2019-09-11 17:43:12.000000 ./etc/rcS.d/
│ │ │  drwxr-xr-x   0 root         (0) root         (0)        0 2019-09-11 17:43:12.000000 ./sbin/
│ │ │  -rwxr-xr-x   0 root         (0) root         (0)    60952 2019-09-11 17:43:12.000000 ./sbin/bootlogd
│ │ │  -rwxr-xr-x   0 root         (0) root         (0)    25768 2019-09-11 17:43:12.000000 ./sbin/fstab-decode
│ │ │ --rwsr-xr--   0 root         (0)        0    76976 2019-09-11 17:43:12.000000 ./sbin/halt.sysvinit
│ │ │ +-rwsr-xr--   0 root         (0) shutdown     (0)    76976 2019-09-11 17:43:12.000000 ./sbin/halt.sysvinit
│ │ │  -rwxr-xr-x   0 root         (0) root         (0)   168840 2019-09-11 17:43:12.000000 ./sbin/init.sysvinit
│ │ │  -rwxr-xr-x   0 root         (0) root         (0)    28752 2019-09-11 17:43:12.000000 ./sbin/runlevel.sysvinit
│ │ │ --rwsr-xr--   0 root         (0)        0   105032 2019-09-11 17:43:12.000000 ./sbin/shutdown.sysvinit
│ │ │ +-rwsr-xr--   0 root         (0) shutdown     (0)   105032 2019-09-11 17:43:12.000000 ./sbin/shutdown.sysvinit
│ │ │  drwxr-xr-x   0 root         (0) root         (0)        0 2019-09-11 17:43:12.000000 ./usr/
│ │ │  drwxr-xr-x   0 root         (0) root         (0)        0 2019-09-11 17:43:12.000000 ./usr/bin/
│ │ │  -rwxr-xr-x   0 root         (0) root         (0)    72896 2019-09-11 17:43:12.000000 ./usr/bin/last.sysvinit
│ │ │  -rwxr-xr-x   0 root         (0) root         (0)    28760 2019-09-11 17:43:12.000000 ./usr/bin/mesg.sysvinit
│ │ │  -rwxr-xr-x   0 root         (0) root         (0)    30080 2019-09-11 17:43:12.000000 ./usr/bin/readbootlog
│ │ │  -rwxr-xr-x   0 root         (0) root         (0)    43192 2019-09-11 17:43:12.000000 ./usr/bin/utmpdump.sysvinit
│ │ │  -rwxr-xr-x   0 root         (0) root         (0)    51512 2019-09-11 17:43:12.000000 ./usr/bin/wall.sysvinit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86311</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-02-05 16:29:32 +0000</bug_when>
    <thetext>Extra data so far:
* This group ownership is performed in the recipe&apos;s do_install. 
* The shutdown group is defined in etc/group in base-passwd&apos;s group file. 
* There is a DEPENDS on base-passwd.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86340</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-02-06 15:56:19 +0000</bug_when>
    <thetext>If we could create a QA test to make the build fail then we can run that in master-next.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86373</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-02-07 14:11:19 +0000</bug_when>
    <thetext>I found how to reproduce:

bitbake sysvinit
bitbake sysvinit -c clean
bitbake sysvinit -c package_write_ipk -f

which changes the sysvinit package from having two files with owner/group &quot;root/shutdown&quot; to &quot;root/70&quot;.

The reason is the base-passwd files are not restored to the sysroot when do_package is setscened so there is no information to resolve &quot;70&quot; to a name whe building the ipk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86374</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-02-07 14:34:14 +0000</bug_when>
    <thetext>I think adding do_package_setscene[depends] = &quot;base-passwd:do_populate_sysroot&quot; to the recipe fixes this. This does have wider implications unfortunately.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86384</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-02-08 13:48:55 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=0f2fdd4abfd70f3608f7612f9f4ef1506250ade1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>