CVSROOT:        /cvs
Module name:    src
Changes by:     mes...@cvs.openbsd.org  2018/09/27 00:52:15

Modified files:
        usr.sbin/vipw  : vipw.c 

Log message:
add unveil(2) to vipw(8)

The files needed to be unveiled directly or indirectly via libutil are the
following:
- _PATH_MASTERPASSWD_LOCK - write/create permissions
- _PATH_MASTERPASSWD - read permission
- _PATH_BSHELL - execute permission
- _PATH_PWD_MKDB - execute permission

_PATH_MASTERPASSWD gets read and then _PATH_MASTERPASSWD_LOCK is created and
the content of the former is written on the latter. After this _PATH_BSHELL
spawns an EDITOR (vi(1) by default) and at the end then _PATH_PWD_MKDB is ran
to update the _PATH_MASTERPASSWD based in what was actually changed in
_PATH_MASTERPASSWD_LOCK.

OK deraadt@

Reply via email to