diff options
author | rwatson <rwatson@FreeBSD.org> | 2000-09-20 17:18:12 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2000-09-20 17:18:12 +0000 |
commit | 8a56e23d582ac2d0d59257d973aef3d02db3b6ba (patch) | |
tree | 99a8e17a00b45efb6d90169d8d48d0b758464f91 /sys | |
parent | 258ce9d2c6d2d874847ea653677e0b52e96e99ac (diff) | |
download | FreeBSD-src-8a56e23d582ac2d0d59257d973aef3d02db3b6ba.zip FreeBSD-src-8a56e23d582ac2d0d59257d973aef3d02db3b6ba.tar.gz |
o Add additional comment describing vaccess() behavior.
Requested by: eivind
Reviewed by: eivind, adrian
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_export.c | 7 | ||||
-rw-r--r-- | sys/kern/vfs_subr.c | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c index 9814fd6..d7298e6 100644 --- a/sys/kern/vfs_export.c +++ b/sys/kern/vfs_export.c @@ -2931,6 +2931,13 @@ NDFREE(ndp, flags) } } +/* + * Common file system object access control check routine. Accepts a + * vnode's type, "mode", uid and gid, requested access mode, credentials, + * and optional call-by-reference privused argument allowing vaccess() + * to indicate to the caller whether privilege was used to satisfy the + * request. Returns 0 on success, or an errno on failure. + */ int vaccess(type, file_mode, file_uid, file_gid, acc_mode, cred, privused) enum vtype type; diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 9814fd6..d7298e6 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -2931,6 +2931,13 @@ NDFREE(ndp, flags) } } +/* + * Common file system object access control check routine. Accepts a + * vnode's type, "mode", uid and gid, requested access mode, credentials, + * and optional call-by-reference privused argument allowing vaccess() + * to indicate to the caller whether privilege was used to satisfy the + * request. Returns 0 on success, or an errno on failure. + */ int vaccess(type, file_mode, file_uid, file_gid, acc_mode, cred, privused) enum vtype type; |