diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-10-27 10:48:26 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-10-27 10:48:26 +0000 |
commit | 78573c1157c4318dfb409f8dba857462d73e716b (patch) | |
tree | 8cdbf5e12f52664c9e480a06bd50c74f7cdcbab3 /lib | |
parent | acd0800d8563aa6b3ee20be181f7d1797f8fdaea (diff) |
For consistency, allow symlinkat(2) in the same way as symlink(2);
no need to wait until the first program using it breaks...
"could make sense" semarie@ (and thanks for the cluestick)
OK deraadt@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/pledge.2 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libc/sys/pledge.2 b/lib/libc/sys/pledge.2 index a491a60cc88..a8fdb8e5c46 100644 --- a/lib/libc/sys/pledge.2 +++ b/lib/libc/sys/pledge.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pledge.2,v 1.36 2016/09/13 17:02:12 deraadt Exp $ +.\" $OpenBSD: pledge.2,v 1.37 2016/10/27 10:48:25 schwarze Exp $ .\" .\" Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: September 13 2016 $ +.Dd $Mdocdate: October 27 2016 $ .Dt PLEDGE 2 .Os .Sh NAME @@ -253,15 +253,16 @@ A number of system calls and sub-modes are allowed, which may create new files or directories in the filesystem: .Pp .Xr rename 2 , -.Xr rmdir 2 , .Xr renameat 2 , .Xr link 2 , .Xr linkat 2 , .Xr symlink 2 , +.Xr symlinkat 2 , .Xr unlink 2 , .Xr unlinkat 2 , .Xr mkdir 2 , -.Xr mkdirat 2 . +.Xr mkdirat 2 , +.Xr rmdir 2 . .It Va "dpath" A number of system calls are allowed to create special files: .Pp |