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, 6 Nov 2007 18:26:53 +0000 (19:26 +0100)
commit6f961a23de745aba5dcd4585b731e651b8cbeef4
tree6a54a2467f50a7a0b06f8f0e3967c976fa1019a3
parent7b582af2107bed3b864bb408b5c9bcce4b8e4c72
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