Home
last modified time | relevance | path

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

/linux-6.12.1/fs/ceph/
Dacl.c172 struct posix_acl *acl, *default_acl; in ceph_pre_init_acls() local
178 err = posix_acl_create(dir, mode, &default_acl, &acl); in ceph_pre_init_acls()
192 if (!default_acl && !acl) in ceph_pre_init_acls()
197 if (default_acl) in ceph_pre_init_acls()
198 val_size2 = posix_acl_xattr_size(default_acl->a_count); in ceph_pre_init_acls()
212 ceph_pagelist_encode_32(pagelist, acl && default_acl ? 2 : 1); in ceph_pre_init_acls()
228 if (default_acl) { in ceph_pre_init_acls()
235 err = posix_acl_to_xattr(&init_user_ns, default_acl, in ceph_pre_init_acls()
246 as_ctx->default_acl = default_acl; in ceph_pre_init_acls()
252 posix_acl_release(default_acl); in ceph_pre_init_acls()
[all …]
Dsuper.h1132 void *default_acl; member
Dxattr.c1451 posix_acl_release(as_ctx->default_acl); in ceph_release_acl_sec_ctx()
/linux-6.12.1/fs/jfs/
Dacl.c132 struct posix_acl *default_acl, *acl; in jfs_init_acl() local
135 rc = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in jfs_init_acl()
139 if (default_acl) { in jfs_init_acl()
140 rc = __jfs_set_acl(tid, inode, ACL_TYPE_DEFAULT, default_acl); in jfs_init_acl()
141 posix_acl_release(default_acl); in jfs_init_acl()
/linux-6.12.1/fs/f2fs/
Dacl.c363 struct posix_acl **default_acl, struct posix_acl **acl, in f2fs_acl_create() argument
371 *default_acl = NULL; in f2fs_acl_create()
402 *default_acl = p; in f2fs_acl_create()
416 struct posix_acl *default_acl = NULL, *acl = NULL; in f2fs_init_acl() local
419 error = f2fs_acl_create(dir, &inode->i_mode, &default_acl, &acl, dpage); in f2fs_init_acl()
425 if (default_acl) { in f2fs_init_acl()
426 error = __f2fs_set_acl(NULL, inode, ACL_TYPE_DEFAULT, default_acl, in f2fs_init_acl()
428 posix_acl_release(default_acl); in f2fs_init_acl()
/linux-6.12.1/fs/ext2/
Dacl.c255 struct posix_acl *default_acl, *acl; in ext2_init_acl() local
258 error = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in ext2_init_acl()
262 if (default_acl) { in ext2_init_acl()
263 error = __ext2_set_acl(inode, default_acl, ACL_TYPE_DEFAULT); in ext2_init_acl()
264 posix_acl_release(default_acl); in ext2_init_acl()
/linux-6.12.1/fs/ext4/
Dacl.c281 struct posix_acl *default_acl, *acl; in ext4_init_acl() local
284 error = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in ext4_init_acl()
288 if (default_acl) { in ext4_init_acl()
290 default_acl, XATTR_CREATE); in ext4_init_acl()
291 posix_acl_release(default_acl); in ext4_init_acl()
/linux-6.12.1/fs/jffs2/
Dacl.c276 struct posix_acl *default_acl, *acl; in jffs2_init_acl_pre() local
281 rc = posix_acl_create(dir_i, i_mode, &default_acl, &acl); in jffs2_init_acl_pre()
285 if (default_acl) { in jffs2_init_acl_pre()
286 set_cached_acl(inode, ACL_TYPE_DEFAULT, default_acl); in jffs2_init_acl_pre()
287 posix_acl_release(default_acl); in jffs2_init_acl_pre()
/linux-6.12.1/fs/reiserfs/
Dxattr_acl.c310 struct posix_acl *default_acl, *acl; in reiserfs_inherit_default_acl() local
332 err = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in reiserfs_inherit_default_acl()
336 if (default_acl) { in reiserfs_inherit_default_acl()
338 default_acl); in reiserfs_inherit_default_acl()
339 posix_acl_release(default_acl); in reiserfs_inherit_default_acl()
/linux-6.12.1/fs/nfs/
Dnfs3proc.c341 struct posix_acl *default_acl, *acl; in nfs3_proc_create() local
365 status = posix_acl_create(dir, &sattr->ia_mode, &default_acl, &acl); in nfs3_proc_create()
419 status = nfs3_proc_setacls(d_inode(dentry), acl, default_acl); in nfs3_proc_create()
425 posix_acl_release(default_acl); in nfs3_proc_create()
585 struct posix_acl *default_acl, *acl; in nfs3_proc_mkdir() local
596 status = posix_acl_create(dir, &sattr->ia_mode, &default_acl, &acl); in nfs3_proc_mkdir()
615 status = nfs3_proc_setacls(d_inode(dentry), acl, default_acl); in nfs3_proc_mkdir()
620 posix_acl_release(default_acl); in nfs3_proc_mkdir()
716 struct posix_acl *default_acl, *acl; in nfs3_proc_mknod() local
728 status = posix_acl_create(dir, &sattr->ia_mode, &default_acl, &acl); in nfs3_proc_mknod()
[all …]
/linux-6.12.1/fs/
Dposix_acl.c635 struct posix_acl **default_acl, struct posix_acl **acl) in posix_acl_create() argument
642 *default_acl = NULL; in posix_acl_create()
672 *default_acl = p; in posix_acl_create()
1038 struct posix_acl *default_acl, *acl; in simple_acl_create() local
1041 error = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in simple_acl_create()
1045 set_cached_acl(inode, ACL_TYPE_DEFAULT, default_acl); in simple_acl_create()
1048 if (default_acl) in simple_acl_create()
1049 posix_acl_release(default_acl); in simple_acl_create()
/linux-6.12.1/include/linux/
Dposix_acl.h129 struct posix_acl **default_acl, struct posix_acl **acl) in posix_acl_create() argument
131 *default_acl = *acl = NULL; in posix_acl_create()
/linux-6.12.1/fs/xfs/
Dxfs_iops.c152 struct posix_acl *default_acl, in xfs_create_need_xattr() argument
157 if (default_acl) in xfs_create_need_xattr()
184 struct posix_acl *default_acl, *acl; in xfs_generic_create() local
200 error = posix_acl_create(dir, &args.mode, &default_acl, &acl); in xfs_generic_create()
210 if (xfs_create_need_xattr(dir, default_acl, acl)) in xfs_generic_create()
235 if (default_acl) { in xfs_generic_create()
236 error = __xfs_set_acl(inode, default_acl, ACL_TYPE_DEFAULT); in xfs_generic_create()
265 posix_acl_release(default_acl); in xfs_generic_create()
/linux-6.12.1/fs/ntfs3/
Dxattr.c679 struct posix_acl *default_acl, *acl; in ntfs_init_acl() local
682 err = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in ntfs_init_acl()
686 if (default_acl) { in ntfs_init_acl()
687 err = ntfs_set_acl_ex(idmap, inode, default_acl, in ntfs_init_acl()
689 posix_acl_release(default_acl); in ntfs_init_acl()
/linux-6.12.1/fs/orangefs/
Dinode.c1091 struct posix_acl *acl = NULL, *default_acl = NULL; in orangefs_new_inode() local
1108 error = posix_acl_create(dir, &mode, &default_acl, &acl); in orangefs_new_inode()
1122 if (default_acl) { in orangefs_new_inode()
1123 error = __orangefs_set_acl(inode, default_acl, in orangefs_new_inode()
1152 posix_acl_release(default_acl); in orangefs_new_inode()
1158 posix_acl_release(default_acl); in orangefs_new_inode()
/linux-6.12.1/fs/bcachefs/
Dfs-common.c25 struct posix_acl *default_acl, in bch2_create_trans() argument
135 if (default_acl) { in bch2_create_trans()
137 default_acl, ACL_TYPE_DEFAULT); in bch2_create_trans()
Dfs.c487 struct posix_acl *default_acl = NULL, *acl = NULL; in __bch2_create() local
500 ret = posix_acl_create(&dir->v, &mode, &default_acl, &acl); in __bch2_create()
529 default_acl, acl, snapshot_src, flags) ?: in __bch2_create()
559 set_cached_acl(&inode->v, ACL_TYPE_DEFAULT, default_acl); in __bch2_create()
577 posix_acl_release(default_acl); in __bch2_create()
/linux-6.12.1/fs/gfs2/
Dinode.c626 struct posix_acl *default_acl, *acl; in gfs2_create_inode() local
689 error = posix_acl_create(dir, &mode, &default_acl, &acl); in gfs2_create_inode()
736 if (default_acl || acl) in gfs2_create_inode()
783 if (default_acl) { in gfs2_create_inode()
784 error = __gfs2_set_acl(inode, default_acl, ACL_TYPE_DEFAULT); in gfs2_create_inode()
787 posix_acl_release(default_acl); in gfs2_create_inode()
788 default_acl = NULL; in gfs2_create_inode()
838 posix_acl_release(default_acl); in gfs2_create_inode()
/linux-6.12.1/fs/overlayfs/
Ddir.c457 struct posix_acl *acl, *default_acl; in ovl_create_over_whiteout() local
465 &cattr->mode, &default_acl, &acl); in ovl_create_over_whiteout()
512 XATTR_NAME_POSIX_ACL_DEFAULT, default_acl); in ovl_create_over_whiteout()
546 posix_acl_release(default_acl); in ovl_create_over_whiteout()
/linux-6.12.1/fs/btrfs/
Dbtrfs_inode.h560 struct posix_acl *default_acl; member
Dinode.c466 if (args->default_acl) { in btrfs_init_inode_security()
467 err = __btrfs_set_acl(trans, args->inode, args->default_acl, in btrfs_init_inode_security()
477 if (!args->default_acl && !args->acl) in btrfs_init_inode_security()
6150 ret = posix_acl_create(dir, &inode->i_mode, &args->default_acl, &args->acl); in btrfs_new_inode_prepare()
6162 if (args->default_acl) in btrfs_new_inode_prepare()
6193 posix_acl_release(args->default_acl); in btrfs_new_inode_args_destroy()