| /linux/fs/ |
| H A D | mnt_idmapping.c | 80 vfsuid_t make_vfsuid(struct mnt_idmap *idmap, in make_vfsuid() argument 86 if (idmap == &nop_mnt_idmap) in make_vfsuid() 88 if (idmap == &invalid_mnt_idmap) in make_vfsuid() 96 return VFSUIDT_INIT_RAW(map_id_down(&idmap->uid_map, uid)); in make_vfsuid() 120 vfsgid_t make_vfsgid(struct mnt_idmap *idmap, in make_vfsgid() argument 125 if (idmap == &nop_mnt_idmap) in make_vfsgid() 127 if (idmap == &invalid_mnt_idmap) in make_vfsgid() 135 return VFSGIDT_INIT_RAW(map_id_down(&idmap->gid_map, gid)); in make_vfsgid() 150 kuid_t from_vfsuid(struct mnt_idmap *idmap, in from_vfsuid() argument 155 if (idmap == &nop_mnt_idmap) in from_vfsuid() [all …]
|
| H A D | posix_acl.c | 114 static struct posix_acl *__get_acl(struct mnt_idmap *idmap, in __get_acl() argument 157 acl = inode->i_op->get_acl(idmap, dentry, type); in __get_acl() 374 posix_acl_permission(struct mnt_idmap *idmap, struct inode *inode, in posix_acl_permission() argument 389 vfsuid = i_uid_into_vfsuid(idmap, inode); in posix_acl_permission() 394 vfsuid = make_vfsuid(idmap, fs_userns, in posix_acl_permission() 400 vfsgid = i_gid_into_vfsgid(idmap, inode); in posix_acl_permission() 408 vfsgid = make_vfsgid(idmap, fs_userns, in posix_acl_permission() 604 posix_acl_chmod(struct mnt_idmap *idmap, struct dentry *dentry, in posix_acl_chmod() argument 626 ret = inode->i_op->set_acl(idmap, dentry, acl, ACL_TYPE_ACCESS); in posix_acl_chmod() 705 int posix_acl_update_mode(struct mnt_idmap *idmap, in posix_acl_update_mode() argument [all …]
|
| H A D | namei.c | 355 * @idmap: idmap of the mount the inode was found from 363 * If the inode has been found through an idmapped mount the idmap of 364 * the vfsmount must be passed through @idmap. This function will then take 365 * care to map the inode according to @idmap before checking permissions. 369 static int check_acl(struct mnt_idmap *idmap, in check_acl() argument 382 return posix_acl_permission(idmap, inode, acl, mask); in check_acl() 389 int error = posix_acl_permission(idmap, inode, acl, mask); in check_acl() 419 * @idmap: idmap o 433 acl_permission_check(struct mnt_idmap * idmap,struct inode * inode,int mask) acl_permission_check() argument 516 generic_permission(struct mnt_idmap * idmap,struct inode * inode,int mask) generic_permission() argument 573 do_inode_permission(struct mnt_idmap * idmap,struct inode * inode,int mask) do_inode_permission() argument 623 inode_permission(struct mnt_idmap * idmap,struct inode * inode,int mask) inode_permission() argument 678 lookup_inode_permission_may_exec(struct mnt_idmap * idmap,struct inode * inode,int mask) lookup_inode_permission_may_exec() argument 1271 struct mnt_idmap *idmap; may_follow_link() local 1312 safe_hardlink_source(struct mnt_idmap * idmap,struct inode * inode) safe_hardlink_source() argument 1355 may_linkat(struct mnt_idmap * idmap,const struct path * link) may_linkat() argument 1405 may_create_in_sticky(struct mnt_idmap * idmap,struct nameidata * nd,struct inode * const inode) may_create_in_sticky() argument 1952 may_lookup(struct mnt_idmap * idmap,struct nameidata * restrict nd) may_lookup() argument 2590 struct mnt_idmap *idmap; link_path_walk() local 3111 lookup_one_common(struct mnt_idmap * idmap,struct qstr * qname,struct dentry * base) lookup_one_common() argument 3184 lookup_one(struct mnt_idmap * idmap,struct qstr * name,struct dentry * base) lookup_one() argument 3212 lookup_one_unlocked(struct mnt_idmap * idmap,struct qstr * name,struct dentry * base) lookup_one_unlocked() argument 3248 lookup_one_positive_killable(struct mnt_idmap * idmap,struct qstr * name,struct dentry * base) lookup_one_positive_killable() argument 3287 lookup_one_positive_unlocked(struct mnt_idmap * idmap,struct qstr * name,struct dentry * base) lookup_one_positive_unlocked() argument 3369 start_creating(struct mnt_idmap * idmap,struct dentry * parent,struct qstr * name) start_creating() argument 3396 start_removing(struct mnt_idmap * idmap,struct dentry * parent,struct qstr * name) start_removing() argument 3424 start_creating_killable(struct mnt_idmap * idmap,struct dentry * parent,struct qstr * name) start_creating_killable() argument 3455 start_removing_killable(struct mnt_idmap * idmap,struct dentry * parent,struct qstr * name) start_removing_killable() argument 3616 __check_sticky(struct mnt_idmap * idmap,struct inode * dir,struct inode * inode) __check_sticky() argument 3649 may_delete_dentry(struct mnt_idmap * idmap,struct inode * dir,struct dentry * victim,bool isdir) may_delete_dentry() argument 3702 may_create_dentry(struct mnt_idmap * idmap,struct inode * dir,struct dentry * child) may_create_dentry() argument 4124 vfs_prepare_mode(struct mnt_idmap * idmap,const struct inode * dir,umode_t mode,umode_t mask_perms,umode_t type) vfs_prepare_mode() argument 4156 vfs_create(struct mnt_idmap * idmap,struct dentry * dentry,umode_t mode,struct delegated_inode * di) vfs_create() argument 4210 may_open(struct mnt_idmap * idmap,const struct path * path,int acc_mode,int flag) may_open() argument 4269 handle_truncate(struct mnt_idmap * idmap,struct file * filp) handle_truncate() argument 4294 may_o_create(struct mnt_idmap * idmap,const struct path * dir,struct dentry * dentry,umode_t mode) may_o_create() argument 4382 struct mnt_idmap *idmap; lookup_open() local 4630 struct mnt_idmap *idmap; do_open() local 4700 vfs_tmpfile(struct mnt_idmap * idmap,const struct path * parentpath,struct file * file,umode_t mode) vfs_tmpfile() argument 4754 kernel_tmpfile_open(struct mnt_idmap * idmap,const struct path * parentpath,umode_t mode,int open_flag,const struct cred * cred) kernel_tmpfile_open() argument 5001 struct mnt_idmap *idmap; dentry_create() local 5062 vfs_mknod(struct mnt_idmap * idmap,struct inode * dir,struct dentry * dentry,umode_t mode,dev_t dev,struct delegated_inode * delegated_inode) vfs_mknod() argument 5120 struct mnt_idmap *idmap; filename_mknodat() local 5204 vfs_mkdir(struct mnt_idmap * idmap,struct inode * dir,struct dentry * dentry,umode_t mode,struct delegated_inode * delegated_inode) vfs_mkdir() argument 5311 vfs_rmdir(struct mnt_idmap * idmap,struct inode * dir,struct dentry * dentry,struct delegated_inode * delegated_inode) vfs_rmdir() argument 5444 vfs_unlink(struct mnt_idmap * idmap,struct inode * dir,struct dentry * dentry,struct delegated_inode * delegated_inode) vfs_unlink() argument 5594 vfs_symlink(struct mnt_idmap * idmap,struct inode * dir,struct dentry * dentry,const char * oldname,struct delegated_inode * delegated_inode) vfs_symlink() argument 5696 vfs_link(struct dentry * old_dentry,struct mnt_idmap * idmap,struct inode * dir,struct dentry * new_dentry,struct delegated_inode * delegated_inode) vfs_link() argument 5773 struct mnt_idmap *idmap; filename_linkat() local [all...] |
| H A D | file_attr.c | 268 int vfs_fileattr_set(struct mnt_idmap *idmap, struct dentry *dentry, in vfs_fileattr_set() argument 278 if (!inode_owner_or_capable(idmap, inode)) in vfs_fileattr_set() 301 err = inode->i_op->fileattr_set(idmap, dentry, fa); in vfs_fileattr_set() 326 struct mnt_idmap *idmap = file_mnt_idmap(file); in ioctl_setflags() local 337 err = vfs_fileattr_set(idmap, dentry, &fa); in ioctl_setflags() 358 struct mnt_idmap *idmap = file_mnt_idmap(file); in ioctl_fssetxattr() local 367 err = vfs_fileattr_set(idmap, dentry, &fa); in ioctl_fssetxattr()
|
| /linux/fs/nfs/ |
| H A D | nfs4idmap.c | 65 struct idmap *idmap; member 68 struct idmap { struct 76 static struct user_namespace *idmap_userns(const struct idmap *idmap) in idmap_userns() argument 78 if (idmap && idmap->user_ns) in idmap_userns() 79 return idmap->user_ns; in idmap_userns() 280 const char *type, struct idmap *idmap) in nfs_idmap_request_key() argument 290 if (!idmap->user_ns || idmap->user_ns == &init_user_ns) in nfs_idmap_request_key() 293 mutex_lock(&idmap->idmap_mutex); in nfs_idmap_request_key() 295 desc, NULL, "", 0, idmap); in nfs_idmap_request_key() 296 mutex_unlock(&idmap->idmap_mutex); in nfs_idmap_request_key() [all …]
|
| /linux/fs/smb/server/ |
| H A D | vfs.c | 122 void ksmbd_vfs_query_maximal_access(struct mnt_idmap *idmap, in ksmbd_vfs_query_maximal_access() argument 127 if (!inode_permission(idmap, d_inode(dentry), MAY_OPEN | MAY_WRITE)) in ksmbd_vfs_query_maximal_access() 133 if (!inode_permission(idmap, d_inode(dentry), MAY_OPEN | MAY_READ)) in ksmbd_vfs_query_maximal_access() 136 if (!inode_permission(idmap, d_inode(dentry), MAY_OPEN | MAY_EXEC)) in ksmbd_vfs_query_maximal_access() 139 if (!inode_permission(idmap, d_inode(dentry->d_parent), MAY_EXEC | MAY_WRITE)) in ksmbd_vfs_query_maximal_access() 190 struct mnt_idmap *idmap; in ksmbd_vfs_mkdir() local 206 idmap = mnt_idmap(path.mnt); in ksmbd_vfs_mkdir() 209 dentry = vfs_mkdir(idmap, d_inode(path.dentry), dentry, mode, NULL); in ksmbd_vfs_mkdir() 223 static ssize_t ksmbd_vfs_getcasexattr(struct mnt_idmap *idmap, in ksmbd_vfs_getcasexattr() argument 240 value_len = ksmbd_vfs_getxattr(idmap, in ksmbd_vfs_getcasexattr() [all …]
|
| H A D | smbacl.h | 84 int parse_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd, 86 int build_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd, 105 static inline uid_t posix_acl_uid_translate(struct mnt_idmap *idmap, in posix_acl_uid_translate() argument 111 vfsuid = make_vfsuid(idmap, &init_user_ns, pace->e_uid); in posix_acl_uid_translate() 117 static inline gid_t posix_acl_gid_translate(struct mnt_idmap *idmap, in posix_acl_gid_translate() argument 123 vfsgid = make_vfsgid(idmap, &init_user_ns, pace->e_gid); in posix_acl_gid_translate()
|
| H A D | smbacl.c | 257 static int sid_to_id(struct mnt_idmap *idmap, in sid_to_id() argument 284 uid = from_vfsuid(idmap, &init_user_ns, VFSUIDT_INIT(uid)); in sid_to_id() 295 gid = from_vfsgid(idmap, &init_user_ns, VFSGIDT_INIT(gid)); in sid_to_id() 370 static void parse_dacl(struct mnt_idmap *idmap, in parse_dacl() argument 503 ret = sid_to_id(idmap, &ppace[i]->sid, SIDOWNER, &temp_fattr); in parse_dacl() 589 static void set_posix_acl_entries_dacl(struct mnt_idmap *idmap, in set_posix_acl_entries_dacl() argument 614 uid = posix_acl_uid_translate(idmap, pace); in set_posix_acl_entries_dacl() 621 gid = posix_acl_gid_translate(idmap, pace); in set_posix_acl_entries_dacl() 680 uid = posix_acl_uid_translate(idmap, pace); in set_posix_acl_entries_dacl() 685 gid = posix_acl_gid_translate(idmap, pace); in set_posix_acl_entries_dacl() [all …]
|
| /linux/Documentation/admin-guide/nfs/ |
| H A D | nfs-idmapper.rst | 9 or by placing a call to the rpc.idmap daemon. 19 legacy rpc.idmap daemon for the id mapping. This result will be stored 20 in a custom NFS idmap cache. 31 ``create id_resolver * * /usr/sbin/nfs.idmap %k %d 600`` 34 This will direct all id_resolver requests to the program /usr/sbin/nfs.idmap. 36 expire. This parameter is optional for /usr/sbin/nfs.idmap. When the timeout 37 is not specified, nfs.idmap will default to 600 seconds. 53 ``create id_resolver * * /usr/sbin/nfs.idmap %k %d 600`` 59 /usr/sbin/nfs.idmap will handle gid, user, and group lookups. 65 nfs.idmap [all …]
|
| /linux/security/integrity/evm/ |
| H A D | evm_main.c | 461 static int evm_xattr_change(struct mnt_idmap *idmap, in evm_xattr_change() argument 497 static int evm_protect_xattr(struct mnt_idmap *idmap, in evm_protect_xattr() argument 559 !evm_xattr_change(idmap, dentry, xattr_name, xattr_value, in evm_protect_xattr() 587 static int evm_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, in evm_inode_setxattr() argument 606 return evm_protect_xattr(idmap, dentry, xattr_name, xattr_value, in evm_inode_setxattr() 619 static int evm_inode_removexattr(struct mnt_idmap *idmap, struct dentry *dentry, in evm_inode_removexattr() argument 628 return evm_protect_xattr(idmap, dentry, xattr_name, NULL, 0); in evm_inode_removexattr() 632 static int evm_inode_set_acl_change(struct mnt_idmap *idmap, in evm_inode_set_acl_change() argument 644 rc = posix_acl_update_mode(idmap, inode, &mode, &kacl); in evm_inode_set_acl_change() 651 static inline int evm_inode_set_acl_change(struct mnt_idmap *idmap, in evm_inode_set_acl_change() argument [all …]
|
| /linux/fs/fuse/ |
| H A D | dir.c | 742 static int get_create_supp_group(struct mnt_idmap *idmap, in get_create_supp_group() argument 750 vfsgid_t vfsgid = make_vfsgid(idmap, fc->user_ns, kgid); in get_create_supp_group() 773 static int get_create_ext(struct mnt_idmap *idmap, in get_create_ext() argument 785 err = get_create_supp_group(idmap, dir, &ext); in get_create_ext() 811 static int fuse_create_open(struct mnt_idmap *idmap, struct inode *dir, in fuse_create_open() argument 871 err = get_create_ext(idmap, &args, dir, entry, mode); in fuse_create_open() 875 err = fuse_simple_idmap_request(idmap, fm, &args); in fuse_create_open() 933 struct mnt_idmap *idmap = file_mnt_idmap(file); in fuse_atomic_open() local 954 err = fuse_create_open(idmap, dir, entry, file, flags, mode, FUSE_CREATE); in fuse_atomic_open() 963 err = fuse_mknod(idmap, dir, entry, mode, 0); in fuse_atomic_open() [all …]
|
| /linux/fs/smb/client/ |
| H A D | cifsfs.h | 52 int cifs_create(struct mnt_idmap *idmap, struct inode *inode, 61 int cifs_mknod(struct mnt_idmap *idmap, struct inode *inode, 63 struct dentry *cifs_mkdir(struct mnt_idmap *idmap, struct inode *inode, 66 int cifs_rename2(struct mnt_idmap *idmap, struct inode *source_dir, 75 int cifs_getattr(struct mnt_idmap *idmap, const struct path *path, 77 int cifs_setattr(struct mnt_idmap *idmap, struct dentry *direntry, 122 int cifs_symlink(struct mnt_idmap *idmap, struct inode *inode,
|
| /linux/fs/efivarfs/ |
| H A D | inode.c | 77 static int efivarfs_create(struct mnt_idmap *idmap, struct inode *dir, in efivarfs_create() argument 153 efivarfs_fileattr_set(struct mnt_idmap *idmap, in efivarfs_fileattr_set() argument 173 static int efivarfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry, in efivarfs_setattr() argument 179 error = setattr_prepare(idmap, dentry, iattr); in efivarfs_setattr() 183 setattr_copy(idmap, inode, iattr); in efivarfs_setattr()
|
| /linux/include/linux/ |
| H A D | security.h | 188 int cap_inode_removexattr(struct mnt_idmap *idmap, 191 int cap_inode_killpriv(struct mnt_idmap *idmap, struct dentry *dentry); 192 int cap_inode_getsecurity(struct mnt_idmap *idmap, 408 void security_inode_post_create_tmpfile(struct mnt_idmap *idmap, 425 int security_inode_setattr(struct mnt_idmap *idmap, 427 void security_inode_post_setattr(struct mnt_idmap *idmap, struct dentry *dentry, 430 int security_inode_setxattr(struct mnt_idmap *idmap, 433 int security_inode_set_acl(struct mnt_idmap *idmap, 438 int security_inode_get_acl(struct mnt_idmap *idmap, 440 int security_inode_remove_acl(struct mnt_idmap *idmap, [all …]
|
| H A D | fs.h | 1446 static inline vfsuid_t i_uid_into_vfsuid(struct mnt_idmap *idmap, in i_uid_into_vfsuid() argument 1449 return make_vfsuid(idmap, i_user_ns(inode), inode->i_uid); in i_uid_into_vfsuid() 1463 static inline bool i_uid_needs_update(struct mnt_idmap *idmap, in i_uid_needs_update() argument 1469 i_uid_into_vfsuid(idmap, inode))); in i_uid_needs_update() 1481 static inline void i_uid_update(struct mnt_idmap *idmap, in i_uid_update() argument 1486 inode->i_uid = from_vfsuid(idmap, i_user_ns(inode), in i_uid_update() 1498 static inline vfsgid_t i_gid_into_vfsgid(struct mnt_idmap *idmap, in i_gid_into_vfsgid() argument 1501 return make_vfsgid(idmap, i_user_ns(inode), inode->i_gid); in i_gid_into_vfsgid() 1515 static inline bool i_gid_needs_update(struct mnt_idmap *idmap, in i_gid_needs_update() argument 1521 i_gid_into_vfsgid(idmap, inode))); in i_gid_needs_update() [all …]
|
| H A D | lsm_hook_defs.h | 97 LSM_HOOK(void, LSM_RET_VOID, path_post_mknod, struct mnt_idmap *idmap, 125 LSM_HOOK(void, LSM_RET_VOID, inode_post_create_tmpfile, struct mnt_idmap *idmap, 143 LSM_HOOK(int, 0, inode_setattr, struct mnt_idmap *idmap, struct dentry *dentry, 145 LSM_HOOK(void, LSM_RET_VOID, inode_post_setattr, struct mnt_idmap *idmap, 149 LSM_HOOK(int, 0, inode_setxattr, struct mnt_idmap *idmap, 156 LSM_HOOK(int, 0, inode_removexattr, struct mnt_idmap *idmap, 162 LSM_HOOK(int, 0, inode_set_acl, struct mnt_idmap *idmap, 166 LSM_HOOK(int, 0, inode_get_acl, struct mnt_idmap *idmap, 168 LSM_HOOK(int, 0, inode_remove_acl, struct mnt_idmap *idmap, 170 LSM_HOOK(void, LSM_RET_VOID, inode_post_remove_acl, struct mnt_idmap *idmap, [all …]
|
| /linux/fs/minix/ |
| H A D | namei.c | 36 static int minix_mknod(struct mnt_idmap *idmap, struct inode *dir, in minix_mknod() argument 53 static int minix_tmpfile(struct mnt_idmap *idmap, struct inode *dir, in minix_tmpfile() argument 66 static int minix_create(struct mnt_idmap *idmap, struct inode *dir, in minix_create() argument 72 static int minix_symlink(struct mnt_idmap *idmap, struct inode *dir, in minix_symlink() argument 107 static struct dentry *minix_mkdir(struct mnt_idmap *idmap, struct inode *dir, in minix_mkdir() argument 190 static int minix_rename(struct mnt_idmap *idmap, in minix_rename() argument
|
| /linux/fs/f2fs/ |
| H A D | acl.c | 208 static int f2fs_acl_update_mode(struct mnt_idmap *idmap, in f2fs_acl_update_mode() argument 223 if (!in_group_or_capable(idmap, inode, i_gid_into_vfsgid(idmap, inode))) in f2fs_acl_update_mode() 229 static int __f2fs_set_acl(struct mnt_idmap *idmap, in __f2fs_set_acl() argument 243 error = f2fs_acl_update_mode(idmap, inode, &mode, &acl); in __f2fs_set_acl() 278 int f2fs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in f2fs_set_acl() argument 286 return __f2fs_set_acl(idmap, inode, type, acl, NULL); in f2fs_set_acl()
|
| /linux/fs/ocfs2/ |
| H A D | file.h | 53 int ocfs2_setattr(struct mnt_idmap *idmap, struct dentry *dentry, 55 int ocfs2_getattr(struct mnt_idmap *idmap, const struct path *path, 57 int ocfs2_permission(struct mnt_idmap *idmap,
|
| /linux/fs/xfs/ |
| H A D | xfs_itable.c | 66 struct mnt_idmap *idmap, in xfs_bulkstat_one_int() argument 102 vfsuid = i_uid_into_vfsuid(idmap, inode); in xfs_bulkstat_one_int() 103 vfsgid = i_gid_into_vfsgid(idmap, inode); in xfs_bulkstat_one_int() 225 if (breq->idmap != &nop_mnt_idmap) { in xfs_bulkstat_one() 243 error = xfs_bulkstat_one_int(breq->mp, breq->idmap, tp, in xfs_bulkstat_one() 268 error = xfs_bulkstat_one_int(mp, bc->breq->idmap, tp, ino, data); in xfs_bulkstat_iwalk() 312 if (breq->idmap != &nop_mnt_idmap) { in xfs_bulkstat()
|
| /linux/fs/ramfs/ |
| H A D | inode.c | 98 ramfs_mknod(struct mnt_idmap *idmap, struct inode *dir, in ramfs_mknod() argument 121 static struct dentry *ramfs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in ramfs_mkdir() argument 130 static int ramfs_create(struct mnt_idmap *idmap, struct inode *dir, in ramfs_create() argument 136 static int ramfs_symlink(struct mnt_idmap *idmap, struct inode *dir, in ramfs_symlink() argument 166 static int ramfs_tmpfile(struct mnt_idmap *idmap, in ramfs_tmpfile() argument
|
| /linux/security/integrity/ima/ |
| H A D | ima_appraise.c | 74 int ima_must_appraise(struct mnt_idmap *idmap, struct inode *inode, in ima_must_appraise() argument 83 return ima_match_policy(idmap, inode, current_cred(), &prop, in ima_must_appraise() 642 * @idmap: idmap of the mount the inode was found from in ima_update_xattr() 651 static void ima_inode_post_setattr(struct mnt_idmap *idmap, 662 action = ima_must_appraise(idmap, inode, MAY_ACCESS, POST_SETATTR); in ima_inode_post_setattr() 774 static int ima_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, in validate_hash_algo() 807 static int ima_inode_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_setxattr() 816 static int ima_inode_removexattr(struct mnt_idmap *idmap, struct dentry *dentry, 832 static int ima_inode_remove_acl(struct mnt_idmap *idmap, struc in ima_inode_removexattr() 661 ima_inode_post_setattr(struct mnt_idmap * idmap,struct dentry * dentry,int ia_valid) ima_inode_post_setattr() argument 784 ima_inode_setxattr(struct mnt_idmap * idmap,struct dentry * dentry,const char * xattr_name,const void * xattr_value,size_t xattr_value_len,int flags) ima_inode_setxattr() argument 817 ima_inode_set_acl(struct mnt_idmap * idmap,struct dentry * dentry,const char * acl_name,struct posix_acl * kacl) ima_inode_set_acl() argument 826 ima_inode_removexattr(struct mnt_idmap * idmap,struct dentry * dentry,const char * xattr_name) ima_inode_removexattr() argument 842 ima_inode_remove_acl(struct mnt_idmap * idmap,struct dentry * dentry,const char * acl_name) ima_inode_remove_acl() argument [all...] |
| /linux/security/ |
| H A D | commoncap.c | 338 * @idmap: idmap of the mount the inode was found from 343 * If the inode has been found through an idmapped mount the idmap of 344 * the vfsmount must be passed through @idmap. This function will then 345 * take care to map the inode according to @idmap before checking 351 int cap_inode_killpriv(struct mnt_idmap *idmap, struct dentry *dentry) in cap_inode_killpriv() argument 355 error = __vfs_removexattr(idmap, dentry, XATTR_NAME_CAPS); in cap_inode_killpriv() 420 int cap_inode_getsecurity(struct mnt_idmap *idmap, in cap_inode_getsecurity() argument 441 size = vfs_getxattr_alloc(idmap, dentry, XATTR_NAME_CAPS, &tmpbuf, in cap_inode_getsecurity() 463 vfsroot = make_vfsuid(idmap, fs_n in cap_inode_getsecurity() 569 cap_convert_nscap(struct mnt_idmap * idmap,struct dentry * dentry,const void ** ivalue,size_t size) cap_convert_nscap() argument 675 get_vfs_caps_from_disk(struct mnt_idmap * idmap,const struct dentry * dentry,struct cpu_vfs_cap_data * cpu_caps) get_vfs_caps_from_disk() argument 1066 cap_inode_removexattr(struct mnt_idmap * idmap,struct dentry * dentry,const char * name) cap_inode_removexattr() argument [all...] |
| H A D | security.c | 1403 void security_path_post_mknod(struct mnt_idmap *idmap, struct dentry *dentry) in security_path_post_mknod() argument 1407 call_void_hook(path_post_mknod, idmap, dentry); in security_path_post_mknod() 1616 void security_inode_post_create_tmpfile(struct mnt_idmap *idmap, in security_inode_post_create_tmpfile() argument 1621 call_void_hook(inode_post_create_tmpfile, idmap, inode); in security_inode_post_create_tmpfile() 1833 int security_inode_setattr(struct mnt_idmap *idmap, in security_inode_setattr() argument 1838 return call_int_hook(inode_setattr, idmap, dentry, attr); in security_inode_setattr() 1850 void security_inode_post_setattr(struct mnt_idmap *idmap, struct dentry *dentry, in security_inode_post_setattr() argument 1855 call_void_hook(inode_post_setattr, idmap, dentry, ia_valid); in security_inode_post_setattr() 1899 int security_inode_setxattr(struct mnt_idmap *idmap, in security_inode_setxattr() argument 1915 return call_int_hook(inode_setxattr, idmap, dentry, name, value, size, in security_inode_setxattr() [all …]
|
| /linux/fs/ecryptfs/ |
| H A D | inode.c | 269 ecryptfs_create(struct mnt_idmap *idmap, in ecryptfs_create() argument 467 static int ecryptfs_symlink(struct mnt_idmap *idmap, in ecryptfs_symlink() argument 508 static struct dentry *ecryptfs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in ecryptfs_mkdir() argument 567 ecryptfs_mknod(struct mnt_idmap *idmap, struct inode *dir, in ecryptfs_mknod() argument 595 ecryptfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, in ecryptfs_rename() argument 866 ecryptfs_permission(struct mnt_idmap *idmap, struct inode *inode, in ecryptfs_permission() argument 886 static int ecryptfs_setattr(struct mnt_idmap *idmap, in ecryptfs_setattr() argument 971 static int ecryptfs_getattr_link(struct mnt_idmap *idmap, in ecryptfs_getattr_link() argument 997 static int ecryptfs_getattr(struct mnt_idmap *idmap, in ecryptfs_getattr() argument 1110 static int ecryptfs_fileattr_set(struct mnt_idmap *idmap, in ecryptfs_fileattr_set() argument [all …]
|