summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-03-22 01:26:37 +0000
committerJeremy Allison <jra@samba.org>2001-03-22 01:26:37 +0000
commit8adfb4757cd42a6a0cd62929a8d24d3b1e40574a (patch)
treebc8f9369be45c244f1eea13735a006400b66c0ad /source3/lib
parentb8feb83cd62171dd5d6163d5a14edf7fedfd3b30 (diff)
downloadsamba-8adfb4757cd42a6a0cd62929a8d24d3b1e40574a.tar.gz
samba-8adfb4757cd42a6a0cd62929a8d24d3b1e40574a.tar.bz2
samba-8adfb4757cd42a6a0cd62929a8d24d3b1e40574a.zip
New POSIX ACL mapping code. Works with UNIX permissions, now for testing
with real ACLs... Jeremy. (This used to be commit 852b9e15ac245a593460cfff3f629d0333372e41)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/sysacls.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/source3/lib/sysacls.c b/source3/lib/sysacls.c
index 8045fc000c..c8b32cdf49 100644
--- a/source3/lib/sysacls.c
+++ b/source3/lib/sysacls.c
@@ -1273,101 +1273,121 @@ int sys_acl_free_acl(SMB_ACL_T acl_d)
int sys_acl_get_entry( SMB_ACL_T the_acl, int entry_id, SMB_ACL_ENTRY_T *entry_p)
{
+ errno = ENOSYS;
return -1;
}
int sys_acl_get_tag_type( SMB_ACL_ENTRY_T entry_d, SMB_ACL_TAG_T *tag_type_p)
{
+ errno = ENOSYS;
return -1;
}
int sys_acl_get_permset( SMB_ACL_ENTRY_T entry_d, SMB_ACL_PERMSET_T *permset_p)
{
+ errno = ENOSYS;
return -1;
}
void *sys_acl_get_qualifier( SMB_ACL_ENTRY_T entry_d)
{
+ errno = ENOSYS;
return NULL;
}
SMB_ACL_T sys_acl_get_file( const char *path_p, SMB_ACL_TYPE_T type)
{
+ errno = ENOSYS;
return (SMB_ACL_T)NULL;
}
SMB_ACL_T sys_acl_get_fd(int fd)
{
+ errno = ENOSYS;
return (SMB_ACL_T)NULL;
}
int sys_acl_clear_perms(SMB_ACL_PERMSET_T permset)
{
+ errno = ENOSYS;
return -1;
}
int sys_acl_add_perm( SMB_ACL_PERMSET_T permset, SMB_ACL_PERM_T perm)
{
+ errno = ENOSYS;
return -1;
}
int sys_acl_get_perm( SMB_ACL_PERMSET_T permset, SMB_ACL_PERM_T perm)
{
+ errno = ENOSYS;
return (permset & perm) ? 1 : 0;
}
char *sys_acl_to_text( SMB_ACL_T the_acl, ssize_t *plen)
{
+ errno = ENOSYS;
return NULL;
}
int sys_acl_free_text(char *text)
{
+ errno = ENOSYS;
return -1;
}
SMB_ACL_T sys_acl_init( int count)
{
+ errno = ENOSYS;
return NULL;
}
int sys_acl_create_entry( SMB_ACL_T *pacl, SMB_ACL_ENTRY_T *pentry)
{
+ errno = ENOSYS;
return -1;
}
int sys_acl_set_tag_type( SMB_ACL_ENTRY_T entry, SMB_ACL_TAG_T tagtype)
{
+ errno = ENOSYS;
return -1;
}
int sys_acl_set_qualifier( SMB_ACL_ENTRY_T entry, void *qual)
{
+ errno = ENOSYS;
return -1;
}
int sys_acl_set_permset( SMB_ACL_ENTRY_T entry, SMB_ACL_PERMSET_T permset)
{
+ errno = ENOSYS;
return -1;
}
int sys_acl_valid( SMB_ACL_T theacl )
{
+ errno = ENOSYS;
return -1;
}
int sys_acl_set_file( char *name, SMB_ACL_TYPE_T acltype, SMB_ACL_T theacl)
{
+ errno = ENOSYS;
return -1;
}
int sys_acl_set_fd( int fd, SMB_ACL_T theacl)
{
+ errno = ENOSYS;
return -1;
}
int sys_acl_free_acl(SMB_ACL_T the_acl)
{
+ errno = ENOSYS;
return -1;
}
#endif /* No ACLs. */