diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2015-04-22 01:54:25 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2015-04-22 01:54:25 +0000 |
commit | b5fb244c277f505abc33458d438abec0b0820b9b (patch) | |
tree | 4a4ce32d78747f0a082c75528f944a46aa0fc6e7 /lib/libc/stdio/flags.c | |
parent | a303879bce8d790548f97ecf342fcb6629ee5f2b (diff) | |
download | FreeBSD-src-b5fb244c277f505abc33458d438abec0b0820b9b.zip FreeBSD-src-b5fb244c277f505abc33458d438abec0b0820b9b.tar.gz |
Support file verification in MAC.
* Add VCREAT flag to indicate when a new file is being created
* Add VVERIFY to indicate verification is required
* Both VCREAT and VVERIFY are only passed on the MAC method vnode_check_open
and are removed from the accmode after
* Add O_VERIFY flag to rtld open of objects
* Add 'v' flag to __sflags to set O_VERIFY flag.
Submitted by: Steve Kiernan <stevek@juniper.net>
Obtained from: Juniper Networks, Inc.
GitHub Pull Request: https://github.com/freebsd/freebsd/pull/27
Relnotes: yes
Diffstat (limited to 'lib/libc/stdio/flags.c')
-rw-r--r-- | lib/libc/stdio/flags.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/stdio/flags.c b/lib/libc/stdio/flags.c index b7552a4..9eed6d7 100644 --- a/lib/libc/stdio/flags.c +++ b/lib/libc/stdio/flags.c @@ -97,6 +97,10 @@ __sflags(const char *mode, int *optr) /* set close-on-exec */ o |= O_CLOEXEC; break; + case 'v': + /* verify */ + o |= O_VERIFY; + break; default: known = 0; break; |