This is a proposed patch for Bug #5023.
authorMichael Adam <obnox@samba.org>
Sat, 20 Oct 2007 00:17:07 +0000 (02:17 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 23 Oct 2007 13:44:29 +0000 (15:44 +0200)
commitf0aa637a0481e0a44f86318adbf48957be554eab
tree56464dcf899329eb805502d460b88ac6e3cec67c
parent8b19cb17b9ae9e1cd4a96df6e7dedb75aff7ee96
This is a proposed patch for Bug #5023.

The three can_* access check functions in smbd/posix_acls.c that are used in
smbd/open.c and smbd/nttrans.c explicitly called check_posix_acl_group_access()

This lead to errors with nfsv4 acls (ZFS and GPFS).

This changes the can_* functions to get the nt_acl via VFS layer and call
se_access_check on that. It also removes check_posix_acl_group_access()
which has no more callers.

NOTE: The can_* functions should really not be in smbd/posix_acls.c but
in a separate file (I propose smbd/access.c).

Michael
source/smbd/posix_acls.c