/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/btrfs/ |
H A D | acl.c | 38 struct posix_acl *acl; local 40 acl = get_cached_acl(inode, type); 41 if (acl != ACL_NOT_CACHED) 42 return acl; 62 acl = posix_acl_from_xattr(value, size); 63 if (IS_ERR(acl)) 64 return acl; 65 set_cached_acl(inode, type, acl); 69 acl = NULL; 70 set_cached_acl(inode, type, acl); 81 struct posix_acl *acl; local 99 btrfs_set_acl(struct btrfs_trans_handle *trans, struct inode *inode, struct posix_acl *acl, int type) argument 162 struct posix_acl *acl = NULL; local 189 struct posix_acl *acl; local 212 struct posix_acl *acl = NULL; local 265 struct posix_acl *acl, *clone; local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/jfs/ |
H A D | acl.c | 32 struct posix_acl *acl; local 37 acl = get_cached_acl(inode, type); 38 if (acl != ACL_NOT_CACHED) 39 return acl; 63 acl = NULL; 65 acl = ERR_PTR(size); 67 acl = posix_acl_from_xattr(value, size); 70 if (!IS_ERR(acl)) 71 set_cached_acl(inode, type, acl); 72 return acl; 75 jfs_set_acl(tid_t tid, struct inode *inode, int type, struct posix_acl *acl) argument 119 struct posix_acl *acl = jfs_get_acl(inode, ACL_TYPE_ACCESS); local 134 struct posix_acl *acl = NULL; local 179 struct posix_acl *acl, *clone; local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gettext-tools/gnulib-lib/ |
H A D | file-has-acl.c | 22 #include "acl.h" 24 #include "acl-internal.h" 44 int n = acl (name, GETACLCNT, 0, NULL); 56 acl_t acl = acl_get_file (name, ACL_TYPE_ACCESS); 57 if (acl) 59 ret = (3 < acl_entries (acl)); 60 acl_free (acl); 63 acl = acl_get_file (name, ACL_TYPE_DEFAULT); 64 if (acl) 66 ret = (0 < acl_entries (acl)); [all...] |
H A D | acl.c | 0 /* acl.c - access control lists 22 #include "acl.h" 24 #include "acl-internal.h" 58 acl_t acl; local 60 acl = acl_get_fd (source_desc); 62 acl = acl_get_file (src_name, ACL_TYPE_ACCESS); 63 if (acl == NULL) 75 ret = acl_set_fd (dest_desc, acl); 77 ret = acl_set_file (dst_name, ACL_TYPE_ACCESS, acl); 84 int n = acl_entries (acl); 181 acl_t acl; local [all...] |
H A D | acl_entries.c | 22 #include "acl-internal.h" 27 acl_entries (acl_t acl) argument 31 char *text = acl_to_text (acl, NULL);
|
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ |
H A D | generic_acl.c | 21 struct posix_acl *acl; local 25 acl = get_cached_acl(dentry->d_inode, type); 26 if (!acl) 28 posix_acl_release(acl); 50 struct posix_acl *acl; local 56 acl = get_cached_acl(dentry->d_inode, type); 57 if (!acl) 59 error = posix_acl_to_xattr(acl, buffer, size); 60 posix_acl_release(acl); 70 struct posix_acl *acl local 127 struct posix_acl *acl = NULL; local 173 struct posix_acl *acl, *clone; local 195 struct posix_acl *acl = get_cached_acl(inode, ACL_TYPE_ACCESS); local [all...] |
H A D | xattr_acl.c | 4 * Almost all from linux/fs/ext2/acl.c: 23 struct posix_acl *acl; local 39 acl = posix_acl_alloc(count, GFP_NOFS); 40 if (!acl) 42 acl_e = acl->a_entries; 65 return acl; 68 posix_acl_release(acl); 77 posix_acl_to_xattr(const struct posix_acl *acl, void *buffer, size_t size) argument 83 real_size = posix_acl_xattr_size(acl->a_count); 91 for (n=0; n < acl [all...] |
H A D | posix_acl.c | 42 struct posix_acl *acl = kmalloc(size, flags); local 43 if (acl) { 44 atomic_set(&acl->a_refcount, 1); 45 acl->a_count = count; 47 return acl; 54 posix_acl_clone(const struct posix_acl *acl, gfp_t flags) argument 58 if (acl) { 59 int size = sizeof(struct posix_acl) + acl->a_count * 61 clone = kmemdup(acl, size, flags); 69 * Check if an acl i 72 posix_acl_valid(const struct posix_acl *acl) argument 147 posix_acl_equiv_mode(const struct posix_acl *acl, mode_t *mode_p) argument 188 struct posix_acl *acl = posix_acl_alloc(3, flags); local 211 posix_acl_permission(struct inode *inode, const struct posix_acl *acl, int want) argument 278 posix_acl_create_masq(struct posix_acl *acl, mode_t *mode_p) argument 336 posix_acl_chmod_masq(struct posix_acl *acl, mode_t mode) argument [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/gfs2/ |
H A D | acl.c | 22 #include "acl.h" 43 struct posix_acl *acl; local 51 acl = get_cached_acl(&ip->i_inode, type); 52 if (acl != ACL_NOT_CACHED) 53 return acl; 65 acl = posix_acl_from_xattr(data, len); 67 return acl; 80 struct posix_acl *acl; local 83 acl = gfs2_acl_get(GFS2_I(inode), ACL_TYPE_ACCESS); 84 if (IS_ERR(acl)) 112 gfs2_acl_set(struct inode *inode, int type, struct posix_acl *acl) argument 140 struct posix_acl *acl, *clone; local 190 struct posix_acl *acl, *clone; local 240 struct posix_acl *acl; local 269 struct posix_acl *acl = NULL; local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/xfs/linux-2.6/ |
H A D | xfs_acl.c | 40 struct posix_acl *acl; local 46 acl = posix_acl_alloc(count, GFP_KERNEL); 47 if (!acl) 51 acl_e = &acl->a_entries[i]; 78 return acl; 81 posix_acl_release(acl); 86 xfs_acl_to_disk(struct xfs_acl *aclp, const struct posix_acl *acl) argument 92 aclp->acl_cnt = cpu_to_be32(acl->a_count); 93 for (i = 0; i < acl->a_count; i++) { 95 acl_e = &acl 107 struct posix_acl *acl; local 164 xfs_set_acl(struct inode *inode, int type, struct posix_acl *acl) argument 225 struct posix_acl *acl; local 337 struct posix_acl *acl, *clone; local 364 struct posix_acl *acl; local 384 struct posix_acl *acl = NULL; local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/jffs2/ |
H A D | acl.c | 58 struct posix_acl *acl; local 79 acl = posix_acl_alloc(count, GFP_KERNEL); 80 if (!acl) 87 acl->a_entries[i].e_tag = je16_to_cpu(entry->e_tag); 88 acl->a_entries[i].e_perm = je16_to_cpu(entry->e_perm); 89 switch (acl->a_entries[i].e_tag) { 95 acl->a_entries[i].e_id = ACL_UNDEFINED_ID; 103 acl->a_entries[i].e_id = je32_to_cpu(entry->e_id); 112 return acl; 114 posix_acl_release(acl); 118 jffs2_acl_to_medium(const struct posix_acl *acl, size_t *size) argument 161 struct posix_acl *acl; local 200 __jffs2_set_acl(struct inode *inode, int xprefix, struct posix_acl *acl) argument 219 jffs2_set_acl(struct inode *inode, int type, struct posix_acl *acl) argument 264 struct posix_acl *acl; local 280 struct posix_acl *acl, *clone; local 335 struct posix_acl *acl, *clone; local 377 struct posix_acl *acl; local 397 struct posix_acl *acl; local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ext2/ |
H A D | acl.c | 2 * linux/fs/ext2/acl.c 14 #include "acl.h" 24 struct posix_acl *acl; local 39 acl = posix_acl_alloc(count, GFP_KERNEL); 40 if (!acl) 47 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag); 48 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm); 49 switch(acl->a_entries[n].e_tag) { 56 acl->a_entries[n].e_id = ACL_UNDEFINED_ID; 64 acl 85 ext2_acl_to_disk(const struct posix_acl *acl, size_t *size) argument 136 struct posix_acl *acl; local 181 ext2_set_acl(struct inode *inode, int type, struct posix_acl *acl) argument 237 struct posix_acl *acl = ext2_get_acl(inode, ACL_TYPE_ACCESS); local 259 struct posix_acl *acl = NULL; local 318 struct posix_acl *acl, *clone; local 372 struct posix_acl *acl; local 395 struct posix_acl *acl; local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ext3/ |
H A D | acl.c | 2 * linux/fs/ext3/acl.c 15 #include "acl.h" 25 struct posix_acl *acl; local 40 acl = posix_acl_alloc(count, GFP_NOFS); 41 if (!acl) 48 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag); 49 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm); 50 switch(acl->a_entries[n].e_tag) { 57 acl->a_entries[n].e_id = ACL_UNDEFINED_ID; 65 acl 86 ext3_acl_to_disk(const struct posix_acl *acl, size_t *size) argument 139 struct posix_acl *acl; local 187 ext3_set_acl(handle_t *handle, struct inode *inode, int type, struct posix_acl *acl) argument 245 struct posix_acl *acl = ext3_get_acl(inode, ACL_TYPE_ACCESS); local 267 struct posix_acl *acl = NULL; local 328 struct posix_acl *acl, *clone; local 399 struct posix_acl *acl; local 424 struct posix_acl *acl; local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ext4/ |
H A D | acl.c | 2 * linux/fs/ext4/acl.c 15 #include "acl.h" 25 struct posix_acl *acl; local 40 acl = posix_acl_alloc(count, GFP_NOFS); 41 if (!acl) 48 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag); 49 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm); 51 switch (acl->a_entries[n].e_tag) { 58 acl->a_entries[n].e_id = ACL_UNDEFINED_ID; 66 acl 87 ext4_acl_to_disk(const struct posix_acl *acl, size_t *size) argument 139 struct posix_acl *acl; local 186 ext4_set_acl(handle_t *handle, struct inode *inode, int type, struct posix_acl *acl) argument 243 struct posix_acl *acl = ext4_get_acl(inode, ACL_TYPE_ACCESS); local 265 struct posix_acl *acl = NULL; local 326 struct posix_acl *acl, *clone; local 397 struct posix_acl *acl; local 422 struct posix_acl *acl; local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/reiserfs/ |
H A D | xattr_acl.c | 16 struct posix_acl *acl); 23 struct posix_acl *acl; local 33 acl = posix_acl_from_xattr(value, size); 34 if (IS_ERR(acl)) { 35 return PTR_ERR(acl); 36 } else if (acl) { 37 error = posix_acl_valid(acl); 42 acl = NULL; 53 error = reiserfs_set_acl(&th, inode, type, acl); 61 posix_acl_release(acl); 69 struct posix_acl *acl; local 93 struct posix_acl *acl; local 151 posix_acl_to_disk(const struct posix_acl *acl, size_t * size) argument 204 struct posix_acl *acl; local 260 reiserfs_set_acl(struct reiserfs_transaction_handle *th, struct inode *inode, int type, struct posix_acl *acl) argument 332 struct posix_acl *acl; local 418 struct posix_acl *acl; local 448 struct posix_acl *acl, *clone; local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ocfs2/ |
H A D | acl.c | 4 * acl.c 9 * Lots of code in this file is copy from linux/fs/ext3/acl.c. 39 #include "acl.h" 42 * Convert from xattr value to acl struct. 47 struct posix_acl *acl; local 60 acl = posix_acl_alloc(count, GFP_NOFS); 61 if (!acl) 67 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag); 68 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm); 69 acl 79 ocfs2_acl_to_xattr(const struct posix_acl *acl, size_t *size) argument 106 struct posix_acl *acl; local 149 struct posix_acl *acl; local 231 ocfs2_set_acl(handle_t *handle, struct inode *inode, struct buffer_head *di_bh, int type, struct posix_acl *acl, struct ocfs2_alloc_context *meta_ac, struct ocfs2_alloc_context *data_ac) argument 298 struct posix_acl *acl; local 330 struct posix_acl *acl, *clone; local 367 struct posix_acl *acl = NULL; local 464 struct posix_acl *acl; local 488 struct posix_acl *acl; local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/nfs/ |
H A D | nfs3acl.c | 16 struct posix_acl *acl; local 27 acl = nfs3_proc_getacl(inode, ACL_TYPE_ACCESS); 28 if (IS_ERR(acl)) 29 return PTR_ERR(acl); 30 if (acl) { 32 posix_acl_release(acl); 36 acl = nfs3_proc_getacl(inode, ACL_TYPE_DEFAULT); 37 if (IS_ERR(acl)) 38 return PTR_ERR(acl); 39 if (acl) { 56 struct posix_acl *acl; local 85 struct posix_acl *acl; local 143 struct posix_acl *acl = ERR_PTR(-EINVAL); local 169 nfs3_cache_acls(struct inode *inode, struct posix_acl *acl, struct posix_acl *dfacl) argument 201 struct posix_acl *acl; local 292 nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl, struct posix_acl *dfacl) argument 376 nfs3_proc_setacl(struct inode *inode, int type, struct posix_acl *acl) argument 420 struct posix_acl *dfacl, *acl; local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/linux/ |
H A D | posix_acl.h | 46 #define FOREACH_ACL_ENTRY(pa, acl, pe) \ 47 for(pa=(acl)->a_entries, pe=pa+(acl)->a_count; pa<pe; pa++) 54 posix_acl_dup(struct posix_acl *acl) argument 56 if (acl) 57 atomic_inc(&acl->a_refcount); 58 return acl; 65 posix_acl_release(struct posix_acl *acl) argument 67 if (acl && atomic_dec_and_test(&acl 89 struct posix_acl **p, *acl; local 111 set_cached_acl(struct inode *inode, int type, struct posix_acl *acl) argument [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/netatalk-2.2.5/libatalk/vfs/ |
H A D | acl.c | 31 #include <atalk/acl.h> 69 if ( (acl(name, ACE_SETACL, trivial_aces, new_aces)) == 0) 72 LOG(log_error, logtype_afpd, "set_acl: error setting acl: %s", strerror(errno)); 104 acl_t acl = NULL; local 113 EC_NULL_LOG_ERR(acl = acl_init(0), AFPERR_MISC); 114 EC_ZERO_LOG_ERR(acl_set_file(name, ACL_TYPE_DEFAULT, acl), AFPERR_MISC); 115 EC_ZERO_LOG_ERR(acl_free(acl), AFPERR_MISC); 116 acl = NULL; 122 EC_NULL_LOG_ERR(acl = acl_get_file(name, ACL_TYPE_ACCESS), AFPERR_MISC); 123 for ( ; acl_get_entry(acl, entry_i [all...] |
H A D | Makefile.am | 8 libvfs_la_SOURCES += acl.c
|
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/nfs_common/ |
H A D | nfsacl.c | 39 struct posix_acl *acl; member in struct:nfsacl_encode_desc 53 &nfsacl_desc->acl->a_entries[nfsacl_desc->count++]; 77 struct posix_acl *acl, int encode_entries, int typeflag) 79 int entries = (acl && acl->a_count) ? max_t(int, acl->a_count, 4) : 0; 86 .acl = acl, 97 if (encode_entries && acl && acl 76 nfsacl_encode(struct xdr_buf *buf, unsigned int base, struct inode *inode, struct posix_acl *acl, int encode_entries, int typeflag) argument 123 struct posix_acl *acl; member in struct:nfsacl_decode_desc 187 posix_acl_from_nfsacl(struct posix_acl *acl) argument [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/python/examples/spoolss/ |
H A D | psec.py | 31 for acl in secdesc["dacl"]["ace_list"]: 32 print "%d %d 0x%08x %s" % (acl["type"], acl["flags"], 33 acl["mask"], acl["trustee"]) 68 for acl in lines[2:]: 69 match = re.match("(\d+) (\d+) (0[xX][\dA-Fa-f]+) (\S+)", acl)
|
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/modules/ |
H A D | vfs_posixacl.c | 28 static struct smb_acl_t *smb_acl_to_internal(acl_t acl); 30 static acl_t smb_acl_to_posix(const struct smb_acl_t *acl); 41 acl_t acl; local 55 acl = acl_get_file(path_p, acl_type); 57 if (acl == NULL) { 61 result = smb_acl_to_internal(acl); 62 acl_free(acl); 71 acl_t acl = acl_get_fd(fd); local 73 if (acl == NULL) { 77 result = smb_acl_to_internal(acl); 89 acl_t acl; local 121 acl_t acl = smb_acl_to_posix(theacl); local 215 smb_acl_to_internal(acl_t acl) argument 273 smb_acl_to_posix(const struct smb_acl_t *acl) argument [all...] |
H A D | vfs_aixacl.c | 23 extern SMB_ACL_T aixacl_to_smbacl( struct acl *file_acl); 24 extern struct acl *aixacl_smb_to_aixacl(SMB_ACL_TYPE_T acltype, SMB_ACL_T theacl); 30 struct acl *file_acl = (struct acl *)NULL; 40 /* Get the acl using statacl */ 45 file_acl = (struct acl *)SMB_MALLOC(BUFSIZ); 57 struct acl *new_acl = SMB_MALLOC(file_acl->acl_len + sizeof(struct acl)); 64 rc = statacl((char *)path_p,0,file_acl,file_acl->acl_len+sizeof(struct acl)); 88 struct acl *file_ac [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/python/ |
H A D | py_ntsec.c | 117 BOOL py_from_ACL(PyObject **dict, SEC_ACL *acl) argument 122 if (!acl) { 128 ace_list = PyList_New(acl->num_aces); 130 for (i = 0; i < acl->num_aces; i++) { 133 if (py_from_ACE(&obj, &acl->aces[i])) 137 *dict = Py_BuildValue("{sisN}", "revision", acl->revision, 143 BOOL py_to_ACL(SEC_ACL *acl, PyObject *dict, TALLOC_CTX *mem_ctx) argument 152 acl->revision = PyInt_AsLong(obj); 158 acl->num_aces = PyList_Size(obj); 160 acl [all...] |