aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoromnivagant <omni+vagant@hack.org>2022-01-27 15:56:02 +0000
committerMike Frysinger <vapier@gmail.com>2022-01-30 01:53:25 -0500
commite045591845ab993d67a131f75a838e5993845de3 (patch)
treeb3728ad665e073c4a23ed0decd82017de5f8baa4
parent98feac173e4e60a3f1fd45f332a5a92e06315ca4 (diff)
init.d/devfs: default mount /dev noexec
-rw-r--r--init.d/devfs.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/init.d/devfs.in b/init.d/devfs.in
index ae55a1c3..0cc3ba03 100644
--- a/init.d/devfs.in
+++ b/init.d/devfs.in
@@ -24,8 +24,9 @@ mount_dev()
action=--mount
conf_d_dir="${RC_SERVICE%/*/*}/conf.d"
msg=Mounting
- # Some devices require exec, Bug #92921
- mountopts="exec,nosuid,mode=0755"
+ # Some devices require exec, https://bugs.gentoo.org/92921
+ # Users with such requirements can use an fstab entry for /dev
+ mountopts="noexec,nosuid,mode=0755"
if yesno ${skip_mount_dev:-no} ; then
einfo "/dev will not be mounted due to user request"
return 0