diff options
author | Sebastien Marie <semarie@cvs.openbsd.org> | 2016-07-03 04:36:09 +0000 |
---|---|---|
committer | Sebastien Marie <semarie@cvs.openbsd.org> | 2016-07-03 04:36:09 +0000 |
commit | 2812d28595397a83d61d4a714ce264cc96a69aee (patch) | |
tree | ac5292d8f695584dc63d02d859cb09132e3048ff /lib/libc | |
parent | e3c4bb75187974593cc40feb451b0bfac36b979b (diff) |
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.2 | 8 |
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 , |