Page MenuHomeFreeBSD

D31431.diff
No OneTemporary

D31431.diff

diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -205,6 +205,10 @@
res |= RBENEATH;
if ((fmode & O_EMPTY_PATH) != 0)
res |= EMPTYPATH;
+ if ((fmode & FREAD) != 0)
+ res |= OPENREAD;
+ if ((fmode & FWRITE) != 0)
+ res |= OPENWRITE;
if ((vn_open_flags & VN_OPEN_NOAUDIT) == 0)
res |= AUDITVNODE1;
if ((vn_open_flags & VN_OPEN_NOCAPCHECK) != 0)
diff --git a/sys/sys/namei.h b/sys/sys/namei.h
--- a/sys/sys/namei.h
+++ b/sys/sys/namei.h
@@ -183,8 +183,8 @@
#define AUDITVNODE1 0x00040000 /* audit the looked up vnode information */
#define AUDITVNODE2 0x00080000 /* audit the looked up vnode information */
#define NOCAPCHECK 0x00100000 /* do not perform capability checks */
-/* UNUSED 0x00200000 */
-/* UNUSED 0x00400000 */
+#define OPENREAD 0x00200000 /* open for reading */
+#define OPENWRITE 0x00400000 /* open for writing */
/* UNUSED 0x00800000 */
#define HASBUF 0x01000000 /* has allocated pathname buffer */
#define NOEXECCHECK 0x02000000 /* do not perform exec check on dir */

File Metadata

Mime Type
text/plain
Expires
Thu, Apr 24, 2:10 PM (16 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17760296
Default Alt Text
D31431.diff (1 KB)

Event Timeline