Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/vfs_vnops.c
Show First 20 Lines • Show All 194 Lines • ▼ Show 20 Lines | |||||
static uint64_t | static uint64_t | ||||
open2nameif(int fmode, u_int vn_open_flags) | open2nameif(int fmode, u_int vn_open_flags) | ||||
{ | { | ||||
uint64_t res; | uint64_t res; | ||||
res = ISOPEN | LOCKLEAF; | res = ISOPEN | LOCKLEAF; | ||||
if ((fmode & O_RESOLVE_BENEATH) != 0) | if ((fmode & O_RESOLVE_BENEATH) != 0) | ||||
res |= RBENEATH; | res |= RBENEATH; | ||||
if ((fmode & O_EMPTY_PATH) != 0) | |||||
res |= EMPTYPATH; | |||||
if ((vn_open_flags & VN_OPEN_NOAUDIT) == 0) | if ((vn_open_flags & VN_OPEN_NOAUDIT) == 0) | ||||
res |= AUDITVNODE1; | res |= AUDITVNODE1; | ||||
if ((vn_open_flags & VN_OPEN_NOCAPCHECK) != 0) | if ((vn_open_flags & VN_OPEN_NOCAPCHECK) != 0) | ||||
res |= NOCAPCHECK; | res |= NOCAPCHECK; | ||||
return (res); | return (res); | ||||
} | } | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 3,293 Lines • Show Last 20 Lines |