Author: vlendec Date: 2006-02-21 17:17:50 +0000 (Tue, 21 Feb 2006) New Revision: 13596
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13596 Log: Comment cleanup Modified: branches/tmp/vl-posixacls/source/lib/sysacls.c Changeset: Modified: branches/tmp/vl-posixacls/source/lib/sysacls.c =================================================================== --- branches/tmp/vl-posixacls/source/lib/sysacls.c 2006-02-21 17:00:01 UTC (rev 13595) +++ branches/tmp/vl-posixacls/source/lib/sysacls.c 2006-02-21 17:17:50 UTC (rev 13596) @@ -1,7 +1,7 @@ /* Unix SMB/CIFS implementation. Samba system utilities for ACL support. - Copyright (C) Jeremy Allison 2000. + Copyright (C) Volker Lendecke 2006 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,48 +23,8 @@ #undef DBGC_CLASS #define DBGC_CLASS DBGC_ACLS -/* - This file wraps all differing system ACL interfaces into a consistent - one based on the POSIX interface. It also returns the correct errors - for older UNIX systems that don't support ACLs. - - The interfaces that each ACL implementation must support are as follows : - - int sys_acl_get_entry( SMB_ACL_T theacl, int entry_id, SMB_ACL_ENTRY_T *entry_p) - void *sys_acl_get_qualifier( SMB_ACL_ENTRY_T entry_d) - SMB_ACL_T sys_acl_get_file( const char *path_p, SMB_ACL_TYPE_T type) - SMB_ACL_T sys_acl_get_fd(int fd) - char *sys_acl_to_text( SMB_ACL_T theacl, ssize_t *plen) - SMB_ACL_T sys_acl_init( int count) - int sys_acl_create_entry( SMB_ACL_T *pacl, SMB_ACL_ENTRY_T *pentry) - int sys_acl_set_qualifier( SMB_ACL_ENTRY_T entry, void *qual) - int sys_acl_valid( SMB_ACL_T theacl ) - int sys_acl_set_file( const char *name, SMB_ACL_TYPE_T acltype, SMB_ACL_T theacl) - int sys_acl_set_fd( int fd, SMB_ACL_T theacl) - int sys_acl_delete_def_file(const char *path) - - This next one is not POSIX complient - but we *have* to have it ! - More POSIX braindamage. - - int sys_acl_get_perm( SMB_ACL_PERMSET_T permset, SMB_ACL_PERM_T perm) - - The generic POSIX free is the following call. We split this into - several different free functions as we may need to add tag info - to structures when emulating the POSIX interface. - - int sys_acl_free( void *obj_p) - - The calls we actually use are : - - int sys_acl_free_text(char *text) - free acl_to_text - int sys_acl_free_acl(SMB_ACL_T posix_acl) - -*/ - #if defined(HAVE_POSIX_ACLS) -/* Identity mapping - easy. */ - int smb_acl_get_entry( const struct smb_acl *the_acl, int entry_id, struct smb_acl_entry *entry_p) {
