summaryrefslogtreecommitdiff
path: root/games/sail/pl_5.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2022-01-09 10:28:08 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2022-01-09 10:28:08 +0000
commitac09fac127bcfc3a6e2fcc6cf134599097c5d8da (patch)
tree38e804ba8f6dd03fd30b225a091f480e43a72e88 /games/sail/pl_5.c
parentee5ee7a40aa4d55e88e56f807b3339c631003aa6 (diff)
Add an UNVEIL_USERSET flag which is set when a unveil node is added via
unveil(2). It is not set for nodes that are added as a result of a file being added via unveil(2). Use this flag to test if backtracking should be done or not. Also introduce UNVEIL_MASK which checks if any user flags are set and is used to properly return EACCES vs ENOENT. This fixes a problem where unveil("/", "r") & unveil("/usr/bin/id", "rx") cause an error when read accessing "/usr/bin". It also makes sure that unveil(path, "") will return ENOENT for any access of anything under path. Reported by and OK semarie@
Diffstat (limited to 'games/sail/pl_5.c')
0 files changed, 0 insertions, 0 deletions