#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 22:19:08 EDT 2007


#2732: JFFS2 does not perserve directory permissions across reboots when using a
custom /sbin/init.
----------------------+-----------------------------------------------------
  Reporter:  mstone   |       Owner:  dwmw2                   
      Type:  defect   |      Status:  assigned                
  Priority:  blocker  |   Milestone:  Trial-3                 
 Component:  distro   |     Version:                          
Resolution:           |    Keywords:  jffs2, updates, security
  Verified:  0        |  
----------------------+-----------------------------------------------------
Changes (by dwmw2):

  * status:  new => assigned

Comment:

 The crappy workaround should fix the directory which gets 0777 permissions
 -- that's because we weren't applying the process's umask when creating
 the directory (or indeed any inode -- you should see it with creat()
 too.).

 The directory with 0700 permissions is something different. I cannot
 reproduce, hence the request to show me debugging output. You don't need
 to use the NAND flash -- if you can reproduce on a virtual device
 ('modprobe mtdram erase_size=8 total_size=64') all the better. Format the
 flash by using 'flash_eraseall -j /dev/mtd$X' before mounting it and doing
 the test. Log in over the serial console to type your commands, so that
 they're in the appropriate place in the serial log to make things easier
 to follow. Then also show the output of 'hexdump -C /dev/mtd$X'

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



More information about the Bugs mailing list