vfs: add support for incoming faccessat(2) syscall
authorNicolas Thery <nthery@gmail.com>
Sat, 22 Aug 2009 22:37:44 +0000 (00:37 +0200)
committerNicolas Thery <nthery@gmail.com>
Sun, 23 Aug 2009 06:59:57 +0000 (08:59 +0200)
commitb2aed953647428149e24f2497ae39e417c6c0ea5
treec2cbaff6bf8d84b9d66ed1d13b1d14a819647e4f
parent7ecca789d4f8366a6f54a1c889001f69b7ea3b1e
vfs: add support for incoming faccessat(2) syscall

Add flags argument to vop_access and change vop_helper_access()
to check access against real or effective uid/gid depending on
AT_EACCESS presence in flags.

NOTE: nfs_access() may need to be changed too but I haven't yet
managed to figure out whether if should use real or effective uid
depending on AT_EACCESS.

Approved-by: dillon@, corecode@
sys/kern/vfs_helper.c
sys/kern/vfs_vopops.c
sys/sys/fcntl.h
sys/sys/vfsops.h