Home
last modified time | relevance | path

Searched refs:default_acl (Results 1 – 16 of 16) sorted by relevance

/fs/ceph/
Dacl.c164 struct posix_acl *acl, *default_acl; in ceph_pre_init_acls() local
170 err = posix_acl_create(dir, mode, &default_acl, &acl); in ceph_pre_init_acls()
184 if (!default_acl && !acl) in ceph_pre_init_acls()
189 if (default_acl) in ceph_pre_init_acls()
190 val_size2 = posix_acl_xattr_size(default_acl->a_count); in ceph_pre_init_acls()
204 ceph_pagelist_encode_32(pagelist, acl && default_acl ? 2 : 1); in ceph_pre_init_acls()
220 if (default_acl) { in ceph_pre_init_acls()
227 err = posix_acl_to_xattr(&init_user_ns, default_acl, in ceph_pre_init_acls()
238 as_ctx->default_acl = default_acl; in ceph_pre_init_acls()
244 posix_acl_release(default_acl); in ceph_pre_init_acls()
[all …]
Dsuper.h948 void *default_acl; member
Dxattr.c1277 posix_acl_release(as_ctx->default_acl); in ceph_release_acl_sec_ctx()
/fs/btrfs/
Dacl.c129 struct posix_acl *default_acl, *acl; in btrfs_init_acl() local
136 ret = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in btrfs_init_acl()
140 if (default_acl) { in btrfs_init_acl()
141 ret = __btrfs_set_acl(trans, inode, default_acl, in btrfs_init_acl()
143 posix_acl_release(default_acl); in btrfs_init_acl()
153 if (!default_acl && !acl) in btrfs_init_acl()
/fs/jfs/
Dacl.c127 struct posix_acl *default_acl, *acl; in jfs_init_acl() local
130 rc = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in jfs_init_acl()
134 if (default_acl) { in jfs_init_acl()
135 rc = __jfs_set_acl(tid, inode, ACL_TYPE_DEFAULT, default_acl); in jfs_init_acl()
136 posix_acl_release(default_acl); in jfs_init_acl()
/fs/orangefs/
Dacl.c157 struct posix_acl *default_acl, *acl; in orangefs_init_acl() local
162 error = posix_acl_create(dir, &mode, &default_acl, &acl); in orangefs_init_acl()
166 if (default_acl) { in orangefs_init_acl()
167 error = __orangefs_set_acl(inode, default_acl, in orangefs_init_acl()
169 posix_acl_release(default_acl); in orangefs_init_acl()
/fs/f2fs/
Dacl.c333 struct posix_acl **default_acl, struct posix_acl **acl, in f2fs_acl_create() argument
341 *default_acl = NULL; in f2fs_acl_create()
372 *default_acl = p; in f2fs_acl_create()
386 struct posix_acl *default_acl = NULL, *acl = NULL; in f2fs_init_acl() local
389 error = f2fs_acl_create(dir, &inode->i_mode, &default_acl, &acl, dpage); in f2fs_init_acl()
395 if (default_acl) { in f2fs_init_acl()
396 error = __f2fs_set_acl(inode, ACL_TYPE_DEFAULT, default_acl, in f2fs_init_acl()
398 posix_acl_release(default_acl); in f2fs_init_acl()
/fs/ext2/
Dacl.c249 struct posix_acl *default_acl, *acl; in ext2_init_acl() local
252 error = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in ext2_init_acl()
256 if (default_acl) { in ext2_init_acl()
257 error = __ext2_set_acl(inode, default_acl, ACL_TYPE_DEFAULT); in ext2_init_acl()
258 posix_acl_release(default_acl); in ext2_init_acl()
/fs/ext4/
Dacl.c277 struct posix_acl *default_acl, *acl; in ext4_init_acl() local
280 error = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in ext4_init_acl()
284 if (default_acl) { in ext4_init_acl()
286 default_acl, XATTR_CREATE); in ext4_init_acl()
287 posix_acl_release(default_acl); in ext4_init_acl()
/fs/jffs2/
Dacl.c270 struct posix_acl *default_acl, *acl; in jffs2_init_acl_pre() local
275 rc = posix_acl_create(dir_i, i_mode, &default_acl, &acl); in jffs2_init_acl_pre()
279 if (default_acl) { in jffs2_init_acl_pre()
280 set_cached_acl(inode, ACL_TYPE_DEFAULT, default_acl); in jffs2_init_acl_pre()
281 posix_acl_release(default_acl); in jffs2_init_acl_pre()
/fs/reiserfs/
Dxattr_acl.c304 struct posix_acl *default_acl, *acl; in reiserfs_inherit_default_acl() local
326 err = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in reiserfs_inherit_default_acl()
330 if (default_acl) { in reiserfs_inherit_default_acl()
332 default_acl); in reiserfs_inherit_default_acl()
333 posix_acl_release(default_acl); in reiserfs_inherit_default_acl()
/fs/nfs/
Dnfs3proc.c307 struct posix_acl *default_acl, *acl; in nfs3_proc_create() local
331 status = posix_acl_create(dir, &sattr->ia_mode, &default_acl, &acl); in nfs3_proc_create()
385 status = nfs3_proc_setacls(d_inode(dentry), acl, default_acl); in nfs3_proc_create()
391 posix_acl_release(default_acl); in nfs3_proc_create()
550 struct posix_acl *default_acl, *acl; in nfs3_proc_mkdir() local
561 status = posix_acl_create(dir, &sattr->ia_mode, &default_acl, &acl); in nfs3_proc_mkdir()
580 status = nfs3_proc_setacls(d_inode(dentry), acl, default_acl); in nfs3_proc_mkdir()
585 posix_acl_release(default_acl); in nfs3_proc_mkdir()
682 struct posix_acl *default_acl, *acl; in nfs3_proc_mknod() local
694 status = posix_acl_create(dir, &sattr->ia_mode, &default_acl, &acl); in nfs3_proc_mknod()
[all …]
/fs/
Dposix_acl.c583 struct posix_acl **default_acl, struct posix_acl **acl) in posix_acl_create() argument
590 *default_acl = NULL; in posix_acl_create()
620 *default_acl = p; in posix_acl_create()
940 struct posix_acl *default_acl, *acl; in simple_acl_create() local
943 error = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in simple_acl_create()
947 set_cached_acl(inode, ACL_TYPE_DEFAULT, default_acl); in simple_acl_create()
950 if (default_acl) in simple_acl_create()
951 posix_acl_release(default_acl); in simple_acl_create()
/fs/xfs/
Dxfs_iops.c131 struct posix_acl *default_acl, *acl; in xfs_generic_create() local
146 error = posix_acl_create(dir, &mode, &default_acl, &acl); in xfs_generic_create()
170 if (default_acl) { in xfs_generic_create()
171 error = __xfs_set_acl(inode, default_acl, ACL_TYPE_DEFAULT); in xfs_generic_create()
201 if (default_acl) in xfs_generic_create()
202 posix_acl_release(default_acl); in xfs_generic_create()
/fs/gfs2/
Dinode.c583 struct posix_acl *default_acl, *acl; in gfs2_create_inode() local
645 error = posix_acl_create(dir, &mode, &default_acl, &acl); in gfs2_create_inode()
694 if (default_acl || acl) in gfs2_create_inode()
742 if (default_acl) { in gfs2_create_inode()
743 error = __gfs2_set_acl(inode, default_acl, ACL_TYPE_DEFAULT); in gfs2_create_inode()
746 posix_acl_release(default_acl); in gfs2_create_inode()
747 default_acl = NULL; in gfs2_create_inode()
791 posix_acl_release(default_acl); in gfs2_create_inode()
/fs/overlayfs/
Ddir.c439 struct posix_acl *acl, *default_acl; in ovl_create_over_whiteout() local
447 &cattr->mode, &default_acl, &acl); in ovl_create_over_whiteout()
494 default_acl); in ovl_create_over_whiteout()
525 posix_acl_release(default_acl); in ovl_create_over_whiteout()