introduces new promise "chown" to allow changing owner/group with *chown(2) family
authorsemarie <semarie@openbsd.org>
Sun, 3 Jul 2016 04:36:08 +0000 (04:36 +0000)
committersemarie <semarie@openbsd.org>
Sun, 3 Jul 2016 04:36:08 +0000 (04:36 +0000)
commit1d0044e1a18fd369520e5d95af6cbac838a7ade8
treeca18b0da1fcb0952d04ba7204b9ff74164c8d5d2
parent2e2e48cb73fa0833a780f780b00c203bd2a9280f
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@
lib/libc/sys/pledge.2
sys/kern/kern_pledge.c
sys/kern/vfs_syscalls.c
sys/sys/pledge.h