summaryrefslogtreecommitdiff
path: root/distrib/special/ls
diff options
context:
space:
mode:
authorRicardo Mestre <mestre@cvs.openbsd.org>2019-04-30 18:28:46 +0000
committerRicardo Mestre <mestre@cvs.openbsd.org>2019-04-30 18:28:46 +0000
commit20cba98d5e706d428e59cc2eaf7155ff3a9efb87 (patch)
tree5b8f47201a40db875e317e62cc5ccd8e4ce2d71e /distrib/special/ls
parentb894674faf935dd03ccfad1dd5e5ce00c7186786 (diff)
add unveil(2):
chpass(1) without parameters enters in edit mode by default, in here it will need to execute _PATH_BSHELL to spawn a new EDITOR, _PATH_SHELLS to check (read) if we are changing from/to a non-standard shell (in case we are not root) and read access to `tempname' to verify if the file has valid entries and create to unlink it. If -s is used to change a user's shell then it will need read access to _PATH_SHELLS by the same reason already mentioned above. Unconditionally we need to unveil _PATH_MASTERPASSWD_LOCK with write/create permissions, _PATH_MASTERPASSWD with read and _PATH_PWD_MKDB to execute pwd_mkdb(8). In the -a case I'm not unveiling /etc/spwd.db since we can get it through pledge "getpw", which can be added later for completeness of all code paths. Note also that the first pledges need "unveil" since we will call unveil(2) afterwards. "looks good" deraadt@
Diffstat (limited to 'distrib/special/ls')
0 files changed, 0 insertions, 0 deletions