Skip to content

Commit

Permalink
more permissions fix
Browse files Browse the repository at this point in the history
- paranoid mode 400 for most stuff related to portron
  • Loading branch information
rodomac committed Dec 13, 2018
1 parent d4bd108 commit fd31ada
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
Binary file modified lib/portron.default/xzm/000-kernel.xzm
Binary file not shown.
Binary file modified lib/portron.default/xzm/001-core.xzm
Binary file not shown.
2 changes: 2 additions & 0 deletions src/initrd/init
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ aufs_setup() {
mount -nt squashfs -o loop /memory/copy2ram/${x} /memory/images/${x} 2>/dev/null
if [ $? -eq 0 ]; then
mount -no remount,add:1:/memory/images/${x}=rr aufs /union
# export flag to var/run so we can easily know if a module is loaded
touch /union/var/run/portron/mod.${x}
chmod 400 /union/var/run/portron/mod.${x}
else
escape "Cannot read $x. Corrupted module?"
fi
Expand Down
2 changes: 1 addition & 1 deletion src/initrd/init.config
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ expKernel() {

[ "${val}" ] && {
touch ${fil}
chmod a-w ${fil}
chmod 400 ${fil}
logme "- enabling kp $1"
} || {
[ -f ${fil} ] && {
Expand Down

0 comments on commit fd31ada

Please sign in to comment.