diff options
author | Jeremy Allison <jra@samba.org> | 2000-12-06 23:24:31 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-12-06 23:24:31 +0000 |
commit | 4339e20202a876dbadc07980b731f711463b7299 (patch) | |
tree | bb3c8073a1f9898981fff5fef9c3e9d0c8453615 /source/lib | |
parent | 3d0ecea18d52b7287beede5687c26536413440eb (diff) | |
download | samba-4339e20202a876dbadc07980b731f711463b7299.tar.gz samba-4339e20202a876dbadc07980b731f711463b7299.tar.xz samba-4339e20202a876dbadc07980b731f711463b7299.zip |
Cause smbd to use the new posix_acls code, not the old unix_acls code.
Currently does exactly the same thing (returns ACLs the same way). This
code is written to try and get a POSIX ACL via the abstract sys_XX interface,
then fall back to providing a UNIX based ACL if the calls fail. Seems to
work. Next step is to add a --with-posix-acls to configure.in and then
check on a POSIX ACL system that a complex ACL is returned correctly
as an NT ACL. Note that the ACL set (a more complex problem) is not
addressed yet.
Jeremy.
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/sysacls.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/lib/sysacls.c b/source/lib/sysacls.c index 50d9757acdf..da62479cd84 100644 --- a/source/lib/sysacls.c +++ b/source/lib/sysacls.c @@ -84,27 +84,39 @@ int sys_acl_free( void *obj_p) #elif defined(HAVE_IRIX_ACLS) #else /* No ACLs. */ + int sys_acl_get_entry( SMB_ACL_T acl, int entry_id, SMB_ACL_ENTRY_T *entry_p) { + return -1; } int sys_acl_get_tag_type( SMB_ACL_ENTRY_T entry_d, SMB_ACL_TAG_T *tag_type_p) { + return -1; } int sys_acl_get_permset( SMB_ACL_ENTRY_T entry_d, SMB_ACL_PERMSET_T *permset_p) { + return -1; } void *sys_acl_get_qualifier( SMB_ACL_ENTRY_T entry_d) { + return NULL; } SMB_ACL_T sys_acl_get_file( const char *path_p, SMB_ACL_TYPE_T type) { + return (SMB_ACL_T)NULL; +} + +SMB_ACL_T sys_acl_get_fd(int fd) +{ + return (SMB_ACL_T)NULL; } int sys_acl_free( void *obj_p) { + return -1; } #endif /* No ACLs. */ |