summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2000-10-19 07:53:59 +0000
committerrwatson <rwatson@FreeBSD.org>2000-10-19 07:53:59 +0000
commit9c993b44d071ddf8586d4213d0c379530a097851 (patch)
tree27467f792016e864c11edd8a12421e911fe3efa0 /sys/amd64/include
parentbe2e1033657d185aaa5ec90961b64fef7dc02618 (diff)
downloadFreeBSD-src-9c993b44d071ddf8586d4213d0c379530a097851.zip
FreeBSD-src-9c993b44d071ddf8586d4213d0c379530a097851.tar.gz
o Introduce new VOP_ACCESS() flag VADMIN, allowing file systems to perform
"administrative" authorization checks. In most cases, the VADMIN test checks to make sure the credential effective uid is the same as the file owner. o Modify vaccess() to set VADMIN as an available right if the uid is appropriate. o Modify references to uid-based access control operations such that they now always invoke VOP_ACCESS() instead of using hard-coded policy checks. o This allows alternative UFS policies to be implemented by replacing only ufs_access() (such as mandatory system policies). o VOP_ACCESS() requires the caller to hold an exclusive vnode lock on the vnode: I believe that new invocations of VOP_ACCESS() are always called with the lock held. o Some direct checks of the uid remain, largely associated with the QUOTA and SUIDDIR code. Reviewed by: eivind Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/amd64/include')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud