diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2020-10-22 15:23:41 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2020-10-22 15:23:41 +0000 |
| commit | e2014d25fb47e52dc6bf55a5c8748ea77929a864 (patch) | |
| tree | 653109094b4d32aafc0f252fb71ffe8abea55741 /lib/libc/sys/access.2 | |
| parent | f2e1c11c2ebde5a266036042d84e9d4ad06494ac (diff) | |
Notes
Diffstat (limited to 'lib/libc/sys/access.2')
| -rw-r--r-- | lib/libc/sys/access.2 | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/lib/libc/sys/access.2 b/lib/libc/sys/access.2 index 4d5d2132c1ab..1cd7eed1301b 100644 --- a/lib/libc/sys/access.2 +++ b/lib/libc/sys/access.2 @@ -28,7 +28,7 @@ .\" @(#)access.2 8.2 (Berkeley) 4/1/94 .\" $FreeBSD$ .\" -.Dd March 30, 2020 +.Dd September 23, 2020 .Dt ACCESS 2 .Os .Sh NAME @@ -120,6 +120,20 @@ list, defined in The checks for accessibility are performed using the effective user and group IDs instead of the real user and group ID as required in a call to .Fn access . +.It Dv AT_BENEATH +Only operate on files and directories below the topping directory. +See the description of the +.Dv O_BENEATH +flag in the +.Xr open 2 +manual page. +.It Dv AT_RESOLVE_BENEATH +Only walks paths below the topping directory. +See the description of the +.Dv O_RESOLVE_BENEATH +flag in the +.Xr open 2 +manual page. .El .Pp Even if a process's real or effective user has appropriate privileges @@ -197,6 +211,24 @@ argument is not an absolute path and is neither .Dv AT_FDCWD nor a file descriptor associated with a directory. +.It Bq Er ENOTCAPABLE +.Fa path +is an absolute path, +or contained a ".." component leading to a +directory outside of the directory hierarchy specified by +.Fa fd , +and the process is in capability mode. +.It Bq Er ENOTCAPABLE +The +.Dv AT_BENEATH +flag was provided to +.Fn faccessat , +and the absolute +.Fa path +does not have its tail fully contained under the topping directory, +or the relative +.Fa path +escapes it. .El .Sh SEE ALSO .Xr chmod 2 , |
