-
-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add noexec,nosuid,nodev mount options to certain tmpfs mounts to ensure
they are more safe to being misused. Also changed inittab to not directly mount but respect fstab settings/options.
- Loading branch information
Showing
9 changed files
with
44 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# /etc/fstab: static file system information. | ||
# | ||
# <file system> <mount pt> <type> <options> <dump> <pass> | ||
tmpfs /tmp tmpfs mode=1777 0 0 | ||
tmpfs /var tmpfs defaults,noatime,size=50% 0 0 | ||
tmpfs /media tmpfs defaults,noatime 0 0 | ||
# <file system> <mount pt> <type> <options> <dump> <pass> | ||
tmpfs /tmp tmpfs mode=1777,nosuid,nodev 0 0 | ||
tmpfs /var tmpfs defaults,noatime,noexec,nosuid,nodev,size=50% 0 0 | ||
tmpfs /media tmpfs defaults,noatime,noexec,nosuid,nodev 0 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# /etc/fstab: static file system information. | ||
# | ||
# <file system> <mount pt> <type> <options> <dump> <pass> | ||
tmpfs /tmp tmpfs mode=1777 0 0 | ||
tmpfs /var tmpfs defaults,noatime,size=50% 0 0 | ||
tmpfs /media tmpfs defaults,noatime 0 0 | ||
# <file system> <mount pt> <type> <options> <dump> <pass> | ||
tmpfs /tmp tmpfs mode=1777,nosuid,nodev 0 0 | ||
tmpfs /var tmpfs defaults,noatime,noexec,nosuid,nodev,size=50% 0 0 | ||
tmpfs /media tmpfs defaults,noatime,noexec,nosuid,nodev 0 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# /etc/fstab: static file system information. | ||
# | ||
# <file system> <mount pt> <type> <options> <dump> <pass> | ||
/dev/root / auto ro,noauto,noatime,nodiratime 0 1 | ||
proc /proc proc defaults 0 0 | ||
devpts /dev/pts devpts defaults,gid=5,mode=620,ptmxmode=0666 0 0 | ||
tmpfs /dev/shm tmpfs mode=1777 0 0 | ||
tmpfs /tmp tmpfs mode=1777 0 0 | ||
sysfs /sys sysfs defaults 0 0 | ||
tmpfs /var tmpfs defaults,noatime,size=50% 0 0 | ||
tmpfs /media tmpfs defaults,noatime 0 0 | ||
debugfs /sys/kernel/debug debugfs noauto 0 0 | ||
LABEL=userfs /usr/local auto defaults,noatime,nodiratime,rw,nofail,commit=30 0 2 | ||
LABEL=bootfs /boot vfat defaults,ro 0 0 | ||
# <file system> <mount pt> <type> <options> <dump> <pass> | ||
/dev/root / auto ro,noauto,noatime,nodiratime 0 1 | ||
proc /proc proc defaults 0 0 | ||
devpts /dev/pts devpts defaults,gid=5,mode=620,ptmxmode=0666 0 0 | ||
tmpfs /dev/shm tmpfs mode=1777,noexec,nosuid,nodev 0 0 | ||
tmpfs /tmp tmpfs mode=1777,nosuid,nodev 0 0 | ||
sysfs /sys sysfs defaults 0 0 | ||
tmpfs /var tmpfs defaults,noatime,noexec,nosuid,nodev,size=50% 0 0 | ||
tmpfs /media tmpfs defaults,noatime,noexec,nosuid,nodev 0 0 | ||
debugfs /sys/kernel/debug debugfs noauto 0 0 | ||
LABEL=userfs /usr/local auto defaults,rw,noatime,nodiratime,nofail,commit=30 0 2 | ||
LABEL=bootfs /boot vfat defaults,ro 0 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 14 additions & 14 deletions
28
buildroot-external/package/recovery-system/external/overlay/base/etc/fstab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
# /etc/fstab: static file system information. | ||
# | ||
# <file system> <mount pt> <type> <options> <dump> <pass> | ||
/dev/root / auto ro,noauto 0 1 | ||
proc /proc proc defaults 0 0 | ||
devpts /dev/pts devpts defaults,gid=5,mode=620,ptmxmode=0666 0 0 | ||
tmpfs /dev/shm tmpfs mode=1777 0 0 | ||
tmpfs /tmp tmpfs mode=1777 0 0 | ||
tmpfs /run tmpfs defaults,noatime,mode=0755,nosuid,nodev 0 0 | ||
sysfs /sys sysfs defaults 0 0 | ||
tmpfs /var tmpfs defaults,noatime,size=50% 0 0 | ||
tmpfs /media tmpfs defaults,noatime 0 0 | ||
debugfs /sys/kernel/debug debugfs noauto 0 0 | ||
LABEL=rootfs /rootfs auto defaults,noatime,nodiratime,ro,nofail 0 2 | ||
LABEL=userfs /userfs auto defaults,noatime,nodiratime,ro,nofail 0 2 | ||
LABEL=bootfs /bootfs vfat defaults,ro 0 0 | ||
# <file system> <mount pt> <type> <options> <dump> <pass> | ||
/dev/root / auto ro,noauto 0 1 | ||
proc /proc proc defaults 0 0 | ||
devpts /dev/pts devpts defaults,gid=5,mode=620,ptmxmode=0666 0 0 | ||
tmpfs /dev/shm tmpfs mode=1777,noexec,nosuid,nodev 0 0 | ||
tmpfs /tmp tmpfs mode=1777,nosuid,nodev 0 0 | ||
tmpfs /run tmpfs defaults,noatime,mode=0755,nosuid,nodev 0 0 | ||
sysfs /sys sysfs defaults 0 0 | ||
tmpfs /var tmpfs defaults,noatime,noexec,nosuid,nodev,size=50% 0 0 | ||
tmpfs /media tmpfs defaults,noatime,noexec,nosuid,nodev 0 0 | ||
debugfs /sys/kernel/debug debugfs noauto 0 0 | ||
LABEL=rootfs /rootfs auto defaults,ro,noatime,nodiratime,nofail 0 2 | ||
LABEL=userfs /userfs auto defaults,ro,noatime,nodiratime,nofail 0 2 | ||
LABEL=bootfs /bootfs vfat defaults,ro 0 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters