diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2016-05-27 19:45:05 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2016-05-27 19:45:05 +0000 |
commit | 78b5afaf3f7a760112fbfce28204da6440738775 (patch) | |
tree | 0a7f3cad12fe378e14e0b60deee9ab6a5bcd3e7d /sbin/mount/mount.8 | |
parent | 7460ea7c8796fa4a440ed3fc75c19fe120c96c5d (diff) |
W^X violations are no longer permitted by default. A kernel log message
is generated, and mprotect/mmap return ENOTSUP. If the sysctl(8) flag
kern.wxabort is set then a SIGABRT occurs instead, for gdb use or coredump
creation.
W^X violating programs can be permitted on a ffs/nfs filesystem-basis,
using the "wxallowed" mount option. One day far in the future
upstream software developers will understand that W^X violations are a
tremendously risky practice and that style of programming will be
banished outright. Until then, we recommend most users need to use the
wxallowed option on their /usr/local filesystem. At least your other
filesystems don't permit such programs.
ok jca kettenis mlarkin natano
Diffstat (limited to 'sbin/mount/mount.8')
-rw-r--r-- | sbin/mount/mount.8 | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sbin/mount/mount.8 b/sbin/mount/mount.8 index 3a2e9e63fce..2a0ccb7d0e3 100644 --- a/sbin/mount/mount.8 +++ b/sbin/mount/mount.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mount.8,v 1.77 2014/09/08 04:40:30 doug Exp $ +.\" $OpenBSD: mount.8,v 1.78 2016/05/27 19:45:04 deraadt Exp $ .\" $NetBSD: mount.8,v 1.11 1995/07/12 06:23:21 cgd Exp $ .\" .\" Copyright (c) 1980, 1989, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)mount.8 8.7 (Berkeley) 3/27/94 .\" -.Dd $Mdocdate: September 8 2014 $ +.Dd $Mdocdate: May 27 2016 $ .Dt MOUNT 8 .Os .Sh NAME @@ -234,6 +234,17 @@ are mutually exclusive. .It sync Regular data I/O to the file system should be done synchronously. By default, only metadata is read/written synchronously. +.It wxallowed +Processes that ask for memory to be made writeable plus executable +using the +.Xr mmap 2 +and +.Xr mprotect 2 +system calls are killed by default. +This option allows those processes to continue operation. +The option is typically used on the +.Pa /usr/local +filesystem. .It update The same as .Fl u ; |