[Samba] ACLs fail in 3.0.23d
Gerald (Jerry) Carter
jerry at samba.org
Tue Jan 30 16:11:13 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jens Nissen wrote:
> OK - I managed to track down the bug inside Samba,
> but I have no easy way to work around it.
> The dynamic mapping of vfs acls inside Samba does
> not seem to work. See the following sequence in posix_acls.c
> in function get_nt_acl:
>
> /*
> * Get the ACL from the path.
> */
>
> posix_acl = SMB_VFS_SYS_ACL_GET_FILE(conn, fsp->fsp_name, SMB_ACL_TYPE_ACCESS);
>
> /// My Workaround
> /// posix_acl equals 0 here
> if (!posix_acl)
> {
> posix_acl=acl_get_file(fsp->fsp_name, SMB_ACL_TYPE_ACCESS);
> }
> /// posix_acl is something else than 0 here
> /// End My Workaround
>
> While SMB_VFS_SYS_ACL_GET_FILE returns a Null-Pointer, the
> call afterwards to acl_get_file does return a ACL description
> which is non-zero.
Are you absolutely sure you built with ACL support?
(--with-acl-support) and that `smbd -b | grep ACL` returns
the expected result for your platform? Also what file
system is this?
cheers, jerry
=====================================================================
Samba ------- http://www.samba.org
Centeris ----------- http://www.centeris.com
"What man is a man who does not make the world better?" --Balian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFv24hIR7qMdg1EfYRAn5AAJ4g43TpD6kfSxk1wgQZnEm1zU/n7QCfRpvT
DVt4OvndKTXOiVSYUG0FXWg=
=93u5
-----END PGP SIGNATURE-----
More information about the samba
mailing list