[PATCH] Fix permissions for /etc and other dirs after clean flash (#6039)
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 7 Nov 2010 00:26:00 +0000 (00:26 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 7 Nov 2010 00:26:00 +0000 (00:26 +0000)
commita6165e8080e9b9e2ff635ff0f58d843785f4d7b1
treed55642f6804af50d0c267afd7a1d15bc3574a7ee
parentfae690fbc06c0913a6be88fbffd66fcbbac69f16
[PATCH] Fix permissions for /etc and other dirs after clean flash (#6039)

During the first OpenWrt boot after a clean flash (when the jffs2
partition is not yet initialized) tmpfs is used instead of the usual
jffs2 overlay filesystem.  If this tmpfs is mounted with default
options, all directories created there (/etc, /etc/config, other
subdirectories in /etc) get permissions 1777 by default, and these
permissions then persist in the created jffs2 at least until
subsequent sysupgrade.  Mounting tmpfs with mode=0755 fixes the
permission problem.

Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
SVN-Revision: 23906
package/base-files/files/lib/functions/boot.sh