Ticket #2732 (closed defect: fixed)
JFFS2 does not perserve directory permissions across reboots when using a custom /sbin/init.
| Reported by: | mstone | Owned by: | mstone |
|---|---|---|---|
| Priority: | normal | Milestone: | Update.1 |
| Component: | distro | Version: | |
| Keywords: | jffs2, updates, security | Cc: | mstone, krstic, cscott |
| Action Needed: | Verified: | no | |
| Deployments affected: | Blocked By: | ||
| Blocking: |
Description
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
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


