Home
last modified time | relevance | path

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

/linux-6.1.9/fs/ceph/
Dacl.c169 struct posix_acl *acl, *default_acl; in ceph_pre_init_acls() local
175 err = posix_acl_create(dir, mode, &default_acl, &acl); in ceph_pre_init_acls()
189 if (!default_acl && !acl) in ceph_pre_init_acls()
194 if (default_acl) in ceph_pre_init_acls()
195 val_size2 = posix_acl_xattr_size(default_acl->a_count); in ceph_pre_init_acls()
209 ceph_pagelist_encode_32(pagelist, acl && default_acl ? 2 : 1); in ceph_pre_init_acls()
225 if (default_acl) { in ceph_pre_init_acls()
232 err = posix_acl_to_xattr(&init_user_ns, default_acl, in ceph_pre_init_acls()
243 as_ctx->default_acl = default_acl; in ceph_pre_init_acls()
249 posix_acl_release(default_acl); in ceph_pre_init_acls()
[all …]
Dsuper.h1070 void *default_acl; member
Dxattr.c1400 posix_acl_release(as_ctx->default_acl); in ceph_release_acl_sec_ctx()
/linux-6.1.9/fs/jfs/
Dacl.c131 struct posix_acl *default_acl, *acl; in jfs_init_acl() local
134 rc = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in jfs_init_acl()
138 if (default_acl) { in jfs_init_acl()
139 rc = __jfs_set_acl(tid, inode, ACL_TYPE_DEFAULT, default_acl); in jfs_init_acl()
140 posix_acl_release(default_acl); in jfs_init_acl()
/linux-6.1.9/fs/orangefs/
Dacl.c163 struct posix_acl *default_acl, *acl; in orangefs_init_acl() local
168 error = posix_acl_create(dir, &mode, &default_acl, &acl); in orangefs_init_acl()
172 if (default_acl) { in orangefs_init_acl()
173 error = __orangefs_set_acl(inode, default_acl, in orangefs_init_acl()
175 posix_acl_release(default_acl); in orangefs_init_acl()
/linux-6.1.9/fs/f2fs/
Dacl.c362 struct posix_acl **default_acl, struct posix_acl **acl, in f2fs_acl_create() argument
370 *default_acl = NULL; in f2fs_acl_create()
401 *default_acl = p; in f2fs_acl_create()
415 struct posix_acl *default_acl = NULL, *acl = NULL; in f2fs_init_acl() local
418 error = f2fs_acl_create(dir, &inode->i_mode, &default_acl, &acl, dpage); in f2fs_init_acl()
424 if (default_acl) { in f2fs_init_acl()
425 error = __f2fs_set_acl(NULL, inode, ACL_TYPE_DEFAULT, default_acl, in f2fs_init_acl()
427 posix_acl_release(default_acl); in f2fs_init_acl()
/linux-6.1.9/fs/ext2/
Dacl.c254 struct posix_acl *default_acl, *acl; in ext2_init_acl() local
257 error = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in ext2_init_acl()
261 if (default_acl) { in ext2_init_acl()
262 error = __ext2_set_acl(inode, default_acl, ACL_TYPE_DEFAULT); in ext2_init_acl()
263 posix_acl_release(default_acl); in ext2_init_acl()
/linux-6.1.9/fs/ext4/
Dacl.c280 struct posix_acl *default_acl, *acl; in ext4_init_acl() local
283 error = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in ext4_init_acl()
287 if (default_acl) { in ext4_init_acl()
289 default_acl, XATTR_CREATE); in ext4_init_acl()
290 posix_acl_release(default_acl); in ext4_init_acl()
/linux-6.1.9/fs/jffs2/
Dacl.c275 struct posix_acl *default_acl, *acl; in jffs2_init_acl_pre() local
280 rc = posix_acl_create(dir_i, i_mode, &default_acl, &acl); in jffs2_init_acl_pre()
284 if (default_acl) { in jffs2_init_acl_pre()
285 set_cached_acl(inode, ACL_TYPE_DEFAULT, default_acl); in jffs2_init_acl_pre()
286 posix_acl_release(default_acl); in jffs2_init_acl_pre()
/linux-6.1.9/fs/reiserfs/
Dxattr_acl.c309 struct posix_acl *default_acl, *acl; in reiserfs_inherit_default_acl() local
331 err = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in reiserfs_inherit_default_acl()
335 if (default_acl) { in reiserfs_inherit_default_acl()
337 default_acl); in reiserfs_inherit_default_acl()
338 posix_acl_release(default_acl); in reiserfs_inherit_default_acl()
/linux-6.1.9/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()
584 struct posix_acl *default_acl, *acl; in nfs3_proc_mkdir() local
595 status = posix_acl_create(dir, &sattr->ia_mode, &default_acl, &acl); in nfs3_proc_mkdir()
614 status = nfs3_proc_setacls(d_inode(dentry), acl, default_acl); in nfs3_proc_mkdir()
619 posix_acl_release(default_acl); in nfs3_proc_mkdir()
715 struct posix_acl *default_acl, *acl; in nfs3_proc_mknod() local
727 status = posix_acl_create(dir, &sattr->ia_mode, &default_acl, &acl); in nfs3_proc_mknod()
[all …]
/linux-6.1.9/include/linux/
Dposix_acl.h120 struct posix_acl **default_acl, struct posix_acl **acl) in posix_acl_create() argument
122 *default_acl = *acl = NULL; in posix_acl_create()
/linux-6.1.9/fs/
Dposix_acl.c620 struct posix_acl **default_acl, struct posix_acl **acl) in posix_acl_create() argument
627 *default_acl = NULL; in posix_acl_create()
657 *default_acl = p; in posix_acl_create()
1239 struct posix_acl *default_acl, *acl; in simple_acl_create() local
1242 error = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in simple_acl_create()
1246 set_cached_acl(inode, ACL_TYPE_DEFAULT, default_acl); in simple_acl_create()
1249 if (default_acl) in simple_acl_create()
1250 posix_acl_release(default_acl); in simple_acl_create()
/linux-6.1.9/fs/xfs/
Dxfs_iops.c148 struct posix_acl *default_acl, in xfs_create_need_xattr() argument
153 if (default_acl) in xfs_create_need_xattr()
174 struct posix_acl *default_acl, *acl; in xfs_generic_create() local
189 error = posix_acl_create(dir, &mode, &default_acl, &acl); in xfs_generic_create()
200 xfs_create_need_xattr(dir, default_acl, acl), in xfs_generic_create()
214 if (default_acl) { in xfs_generic_create()
215 error = __xfs_set_acl(inode, default_acl, ACL_TYPE_DEFAULT); in xfs_generic_create()
244 posix_acl_release(default_acl); in xfs_generic_create()
/linux-6.1.9/fs/ntfs3/
Dxattr.c636 struct posix_acl *default_acl, *acl; in ntfs_init_acl() local
639 err = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in ntfs_init_acl()
643 if (default_acl) { in ntfs_init_acl()
644 err = ntfs_set_acl_ex(mnt_userns, inode, default_acl, in ntfs_init_acl()
646 posix_acl_release(default_acl); in ntfs_init_acl()
/linux-6.1.9/fs/gfs2/
Dinode.c598 struct posix_acl *default_acl, *acl; in gfs2_create_inode() local
660 error = posix_acl_create(dir, &mode, &default_acl, &acl); in gfs2_create_inode()
708 if (default_acl || acl) in gfs2_create_inode()
756 if (default_acl) { in gfs2_create_inode()
757 error = __gfs2_set_acl(inode, default_acl, ACL_TYPE_DEFAULT); in gfs2_create_inode()
760 posix_acl_release(default_acl); in gfs2_create_inode()
761 default_acl = NULL; in gfs2_create_inode()
811 posix_acl_release(default_acl); in gfs2_create_inode()
/linux-6.1.9/fs/overlayfs/
Ddir.c473 struct posix_acl *acl, *default_acl; in ovl_create_over_whiteout() local
481 &cattr->mode, &default_acl, &acl); in ovl_create_over_whiteout()
528 XATTR_NAME_POSIX_ACL_DEFAULT, default_acl); in ovl_create_over_whiteout()
561 posix_acl_release(default_acl); in ovl_create_over_whiteout()
/linux-6.1.9/fs/btrfs/
Dinode.c259 if (args->default_acl) { in btrfs_init_inode_security()
260 err = __btrfs_set_acl(trans, args->inode, args->default_acl, in btrfs_init_inode_security()
270 if (!args->default_acl && !args->acl) in btrfs_init_inode_security()
6223 ret = posix_acl_create(dir, &inode->i_mode, &args->default_acl, &args->acl); in btrfs_new_inode_prepare()
6233 if (args->default_acl) in btrfs_new_inode_prepare()
6264 posix_acl_release(args->default_acl); in btrfs_new_inode_args_destroy()
Dctree.h3402 struct posix_acl *default_acl; member