summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorsemarie <semarie@openbsd.org>2016-07-03 04:36:08 +0000
committersemarie <semarie@openbsd.org>2016-07-03 04:36:08 +0000
commit1d0044e1a18fd369520e5d95af6cbac838a7ade8 (patch)
treeca18b0da1fcb0952d04ba7204b9ff74164c8d5d2 /lib/libc
parentsync (diff)
downloadwireguard-openbsd-1d0044e1a18fd369520e5d95af6cbac838a7ade8.tar.xz
wireguard-openbsd-1d0044e1a18fd369520e5d95af6cbac838a7ade8.zip
introduces new promise "chown" to allow changing owner/group with *chown(2) family
it splits PLEDGE_FATTR in two ("fattr" stills grant the 2 flags, so no functional changes): - PLEDGE_CHOWN : to be able to call *chown(2) syscalls - PLEDGE_FATTR : the rest it introduces "chown" which grant: - PLEDGE_CHOWN : be able to call *chown(2) - PLEDGE_CHOWNUID : be able to modifying owner/group ok deraadt@ tedu@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/pledge.28
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/sys/pledge.2 b/lib/libc/sys/pledge.2
index 0cc0136451b..85849f27216 100644
--- a/lib/libc/sys/pledge.2
+++ b/lib/libc/sys/pledge.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pledge.2,v 1.32 2016/04/13 14:24:30 tb Exp $
+.\" $OpenBSD: pledge.2,v 1.33 2016/07/03 04:36:08 semarie 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: April 13 2016 $
+.Dd $Mdocdate: July 3 2016 $
.Dt PLEDGE 2
.Os
.Sh NAME
@@ -318,6 +318,10 @@ relating to a file:
.Xr lchown 2 ,
.Xr fchown 2 ,
.Xr utimes 2 .
+.It Va "chown"
+The
+.Xr chown 2
+family is allowed to change the user or group on a file.
.It Va "flock"
File locking via
.Xr fcntl 2 ,