diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2002-07-22 12:51:06 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2002-07-22 12:51:06 +0000 |
commit | 0b1040cb88af525cdf8576f746cc24f485f66a07 (patch) | |
tree | 944d51416459b321e880adef34e272e5cabacd7c /sys/kern/vfs_syscalls.c | |
parent | 6863982a027b2c913a08d854f243cdfbcbf5989d (diff) | |
download | src-0b1040cb88af525cdf8576f746cc24f485f66a07.tar.gz src-0b1040cb88af525cdf8576f746cc24f485f66a07.zip |
Set VAPPEND in open mode when O_APPEND is specified as an argument to
open() of fhopen(). Currently this has no actual affect due to the
treatment of VAPPEND in vaccess() and vaccess_acl() as a subset of
VWRITE, but when MAC comes in, MAC will distinguish the two. Note:
if any file systems are cutting their own permission models, they
may wish to now take this into account.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs
Notes
Notes:
svn path=/head/; revision=100496
Diffstat (limited to 'sys/kern/vfs_syscalls.c')
-rw-r--r-- | sys/kern/vfs_syscalls.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index b787bc230432..2a8e24750946 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -3221,6 +3221,8 @@ fhopen(td, uap) } if (fmode & FREAD) mode |= VREAD; + if (fmode & O_APPEND) + mode |= VAPPEND; if (mode) { error = VOP_ACCESS(vp, mode, td->td_ucred, td); if (error) |