#2732 BLOC Trial-3: JFFS2 does not perserve directory permissions across reboots when using a custom /sbin/init.

Zarro Boogs per Child bugtracker at laptop.org
Thu Aug 9 18:43:50 EDT 2007


#2732: JFFS2 does not perserve directory permissions across reboots when using a
custom /sbin/init.
--------------------------------------+-------------------------------------
 Reporter:  mstone                    |       Owner:  dcbw   
     Type:  defect                    |      Status:  new    
 Priority:  blocker                   |   Milestone:  Trial-3
Component:  distro                    |     Version:         
 Keywords:  jffs2, updates, security  |    Verified:  0      
--------------------------------------+-------------------------------------
 On a clean build 542 (B4), the following is adequate for me to reproduce
 the bug:

 (after booting, while logged in as root)

 {{{
 cp -f /bin/bash /sbin/init
 }}}

 after rebooting, via
 {{{
 /sbin/halt -fph
 }}}
 run
 {{{
 mount -o remount,rw /
 umask 022
 mkdir a
 cp -la a b
 ls -alF a b    # permissions should be 0755 and 0755, respectively
 mount -o remount,ro /
 sync
 /sbin/halt -fph
 }}}

 and after a final reboot
 {{{
 ls -alF a b    # permissions will (incorrectly) be 0777 and 0700,
 respectively
 }}}

-- 
Ticket URL: <http://dev.laptop.org/ticket/2732>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list