Home
last modified time | relevance | path

Searched refs:mnt_idmap (Results 1 – 25 of 302) sorted by relevance

12345678910>>...13

/openbmc/linux/fs/
H A Dmnt_idmapping.c12 struct mnt_idmap { struct
22 struct mnt_idmap nop_mnt_idmap = { argument
35 bool check_fsmapping(const struct mnt_idmap *idmap, in check_fsmapping()
96 vfsuid_t make_vfsuid(struct mnt_idmap *idmap, in make_vfsuid()
135 vfsgid_t make_vfsgid(struct mnt_idmap *idmap, in make_vfsgid()
164 kuid_t from_vfsuid(struct mnt_idmap *idmap, in from_vfsuid()
192 kgid_t from_vfsgid(struct mnt_idmap *idmap, in from_vfsgid()
233 struct mnt_idmap *idmap; in alloc_mnt_idmap()
235 idmap = kzalloc(sizeof(struct mnt_idmap), GFP_KERNEL_ACCOUNT); in alloc_mnt_idmap()
252 struct mnt_idmap *mnt_idmap_get(struct mnt_idmap *idmap) in mnt_idmap_get()
[all …]
H A Dinternal.h19 struct mnt_idmap;
58 int may_linkat(struct mnt_idmap *idmap, const struct path *link);
189 bool in_group_or_capable(struct mnt_idmap *idmap,
264 ssize_t do_getxattr(struct mnt_idmap *idmap,
269 int do_setxattr(struct mnt_idmap *idmap, struct dentry *dentry,
271 int may_write_xattr(struct mnt_idmap *idmap, struct inode *inode);
274 int do_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
279 static inline int do_set_acl(struct mnt_idmap *idmap, in do_set_acl()
285 static inline ssize_t do_get_acl(struct mnt_idmap *idmap, in do_get_acl()
299 struct mnt_idmap *mnt_idmap_get(struct mnt_idmap *idmap);
[all …]
H A Dbad_inode.c30 static int bad_inode_create(struct mnt_idmap *idmap, in bad_inode_create()
54 static int bad_inode_symlink(struct mnt_idmap *idmap, in bad_inode_symlink()
61 static int bad_inode_mkdir(struct mnt_idmap *idmap, struct inode *dir, in bad_inode_mkdir()
72 static int bad_inode_mknod(struct mnt_idmap *idmap, struct inode *dir, in bad_inode_mknod()
78 static int bad_inode_rename2(struct mnt_idmap *idmap, in bad_inode_rename2()
92 static int bad_inode_permission(struct mnt_idmap *idmap, in bad_inode_permission()
98 static int bad_inode_getattr(struct mnt_idmap *idmap, in bad_inode_getattr()
105 static int bad_inode_setattr(struct mnt_idmap *idmap, in bad_inode_setattr()
148 static int bad_inode_tmpfile(struct mnt_idmap *idmap, in bad_inode_tmpfile()
155 static int bad_inode_set_acl(struct mnt_idmap *idmap, in bad_inode_set_acl()
H A Dattr.c37 int setattr_should_drop_sgid(struct mnt_idmap *idmap, in setattr_should_drop_sgid()
67 int setattr_should_drop_suidgid(struct mnt_idmap *idmap, in setattr_should_drop_suidgid()
98 static bool chown_ok(struct mnt_idmap *idmap, in chown_ok()
125 static bool chgrp_ok(struct mnt_idmap *idmap, in chgrp_ok()
165 int setattr_prepare(struct mnt_idmap *idmap, struct dentry *dentry, in setattr_prepare()
303 void setattr_copy(struct mnt_idmap *idmap, struct inode *inode, in setattr_copy()
326 int may_setattr(struct mnt_idmap *idmap, struct inode *inode, in may_setattr()
381 int notify_change(struct mnt_idmap *idmap, struct dentry *dentry, in notify_change()
H A Dxattr.c114 xattr_permission(struct mnt_idmap *idmap, struct inode *inode, in xattr_permission()
185 __vfs_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, in __vfs_setxattr()
223 int __vfs_setxattr_noperm(struct mnt_idmap *idmap, in __vfs_setxattr_noperm()
305 vfs_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, in vfs_setxattr()
429 vfs_getxattr(struct mnt_idmap *idmap, struct dentry *dentry, in vfs_getxattr()
535 __vfs_removexattr_locked(struct mnt_idmap *idmap, in __vfs_removexattr_locked()
635 setxattr(struct mnt_idmap *idmap, struct dentry *d, in setxattr()
672 error = setxattr(mnt_idmap(path.mnt), path.dentry, name, in path_setxattr()
722 do_getxattr(struct mnt_idmap *idmap, struct dentry *d, in do_getxattr()
753 getxattr(struct mnt_idmap *idmap, struct dentry *d, in getxattr()
[all …]
/openbmc/linux/include/linux/
H A Devm.h24 extern int evm_inode_setattr(struct mnt_idmap *idmap,
27 extern int evm_inode_setxattr(struct mnt_idmap *idmap,
34 extern int evm_inode_removexattr(struct mnt_idmap *idmap,
38 static inline void evm_inode_post_remove_acl(struct mnt_idmap *idmap, in evm_inode_post_remove_acl()
44 extern int evm_inode_set_acl(struct mnt_idmap *idmap,
47 static inline int evm_inode_remove_acl(struct mnt_idmap *idmap, in evm_inode_remove_acl()
94 static inline int evm_inode_setattr(struct mnt_idmap *idmap, in evm_inode_setattr()
105 static inline int evm_inode_setxattr(struct mnt_idmap *idmap, in evm_inode_setxattr()
120 static inline int evm_inode_removexattr(struct mnt_idmap *idmap, in evm_inode_removexattr()
140 static inline int evm_inode_set_acl(struct mnt_idmap *idmap, in evm_inode_set_acl()
[all …]
H A Dposix_acl.h72 int set_posix_acl(struct mnt_idmap *, struct dentry *, int,
79 int posix_acl_chmod(struct mnt_idmap *, struct dentry *, umode_t);
85 int simple_set_acl(struct mnt_idmap *, struct dentry *,
94 int posix_acl_permission(struct mnt_idmap *, struct inode *,
103 int vfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
105 struct posix_acl *vfs_get_acl(struct mnt_idmap *idmap,
107 int vfs_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry,
112 static inline int posix_acl_chmod(struct mnt_idmap *idmap, in posix_acl_chmod()
139 static inline int vfs_set_acl(struct mnt_idmap *idmap, in vfs_set_acl()
146 static inline struct posix_acl *vfs_get_acl(struct mnt_idmap *idmap, in vfs_get_acl()
[all …]
H A Dxattr.h45 struct mnt_idmap *idmap, struct dentry *dentry,
75 ssize_t vfs_getxattr(struct mnt_idmap *, struct dentry *, const char *,
78 int __vfs_setxattr(struct mnt_idmap *, struct dentry *, struct inode *,
80 int __vfs_setxattr_noperm(struct mnt_idmap *, struct dentry *,
82 int __vfs_setxattr_locked(struct mnt_idmap *, struct dentry *,
85 int vfs_setxattr(struct mnt_idmap *, struct dentry *, const char *,
87 int __vfs_removexattr(struct mnt_idmap *, struct dentry *, const char *);
88 int __vfs_removexattr_locked(struct mnt_idmap *, struct dentry *,
90 int vfs_removexattr(struct mnt_idmap *, struct dentry *, const char *);
93 int vfs_getxattr_alloc(struct mnt_idmap *idmap,
H A Dmnt_idmapping.h8 struct mnt_idmap;
11 extern struct mnt_idmap nop_mnt_idmap;
118 vfsuid_t make_vfsuid(struct mnt_idmap *idmap,
121 vfsgid_t make_vfsgid(struct mnt_idmap *idmap,
124 kuid_t from_vfsuid(struct mnt_idmap *idmap,
127 kgid_t from_vfsgid(struct mnt_idmap *idmap,
142 static inline bool vfsuid_has_fsmapping(struct mnt_idmap *idmap, in vfsuid_has_fsmapping()
180 static inline bool vfsgid_has_fsmapping(struct mnt_idmap *idmap, in vfsgid_has_fsmapping()
219 static inline kuid_t mapped_fsuid(struct mnt_idmap *idmap, in mapped_fsuid()
238 static inline kgid_t mapped_fsgid(struct mnt_idmap *idmap, in mapped_fsgid()
[all …]
H A Dima.h21 extern void ima_post_create_tmpfile(struct mnt_idmap *idmap,
34 extern void ima_post_path_mknod(struct mnt_idmap *idmap,
70 static inline void ima_post_create_tmpfile(struct mnt_idmap *idmap, in ima_post_create_tmpfile()
116 static inline void ima_post_path_mknod(struct mnt_idmap *idmap, in ima_post_path_mknod()
188 extern void ima_inode_post_setattr(struct mnt_idmap *idmap,
192 extern int ima_inode_set_acl(struct mnt_idmap *idmap,
195 static inline int ima_inode_remove_acl(struct mnt_idmap *idmap, in ima_inode_remove_acl()
208 static inline void ima_inode_post_setattr(struct mnt_idmap *idmap, in ima_inode_post_setattr()
222 static inline int ima_inode_set_acl(struct mnt_idmap *idmap, in ima_inode_set_acl()
236 static inline int ima_inode_remove_acl(struct mnt_idmap *idmap, in ima_inode_remove_acl()
H A Dmount.h19 struct mnt_idmap;
74 struct mnt_idmap *mnt_idmap; member
77 static inline struct mnt_idmap *mnt_idmap(const struct vfsmount *mnt) in mnt_idmap() function
80 return smp_load_acquire(&mnt->mnt_idmap); in mnt_idmap()
H A Dfs.h1466 struct mnt_idmap *idmap) in inode_fsuid_set()
1480 struct mnt_idmap *idmap) in inode_fsgid_set()
1497 struct mnt_idmap *idmap) in fsuidgid_has_mapping()
1770 int vfs_mkdir(struct mnt_idmap *, struct inode *,
1794 struct mnt_idmap *old_mnt_idmap;
1797 struct mnt_idmap *new_mnt_idmap;
1843 umode_t mode_strip_sgid(struct mnt_idmap *idmap,
2002 int (*fileattr_set)(struct mnt_idmap *idmap,
2475 return mnt_idmap(file->f_path.mnt); in file_mnt_idmap()
2488 return mnt_idmap(mnt) != &nop_mnt_idmap; in is_idmapped_mnt()
[all …]
H A Dcapability.h42 struct mnt_idmap;
189 struct mnt_idmap *idmap,
191 bool capable_wrt_inode_uidgid(struct mnt_idmap *idmap,
212 int get_vfs_caps_from_disk(struct mnt_idmap *idmap,
216 int cap_convert_nscap(struct mnt_idmap *idmap, struct dentry *dentry,
H A Dnamei.h79 struct dentry *lookup_one(struct mnt_idmap *, const char *, struct dentry *, int);
80 struct dentry *lookup_one_unlocked(struct mnt_idmap *idmap,
83 struct dentry *lookup_one_positive_unlocked(struct mnt_idmap *idmap,
/openbmc/linux/fs/smb/server/
H A Dvfs.h75 void ksmbd_vfs_query_maximal_access(struct mnt_idmap *idmap,
103 ssize_t ksmbd_vfs_getxattr(struct mnt_idmap *idmap,
107 ssize_t ksmbd_vfs_casexattr_len(struct mnt_idmap *idmap,
110 int ksmbd_vfs_setxattr(struct mnt_idmap *idmap,
116 int ksmbd_vfs_remove_xattr(struct mnt_idmap *idmap,
137 struct mnt_idmap *idmap,
143 int ksmbd_vfs_remove_acl_xattrs(struct mnt_idmap *idmap,
147 struct mnt_idmap *idmap,
152 struct mnt_idmap *idmap,
162 int ksmbd_vfs_set_init_posix_acl(struct mnt_idmap *idmap,
[all …]
H A Dsmbacl.h193 int parse_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd,
195 int build_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd,
214 static inline uid_t posix_acl_uid_translate(struct mnt_idmap *idmap, in posix_acl_uid_translate()
226 static inline gid_t posix_acl_gid_translate(struct mnt_idmap *idmap, in posix_acl_gid_translate()
H A Dvfs.c212 struct mnt_idmap *idmap; in ksmbd_vfs_mkdir()
228 idmap = mnt_idmap(path.mnt); in ksmbd_vfs_mkdir()
600 struct mnt_idmap *idmap; in ksmbd_vfs_remove_file()
612 idmap = mnt_idmap(path->mnt); in ksmbd_vfs_remove_file()
773 rd.old_mnt_idmap = mnt_idmap(old_path->mnt), in ksmbd_vfs_rename()
776 rd.new_mnt_idmap = mnt_idmap(new_path.mnt), in ksmbd_vfs_rename()
930 int ksmbd_vfs_setxattr(struct mnt_idmap *idmap, in ksmbd_vfs_setxattr()
1074 struct mnt_idmap *idmap = file_mnt_idmap(filp); in ksmbd_vfs_unlink()
1454 struct mnt_idmap *idmap, in ksmbd_vfs_set_sd_xattr()
1530 struct mnt_idmap *idmap, in ksmbd_vfs_get_sd_xattr()
[all …]
/openbmc/linux/fs/smb/client/
H A Dcifsfs.h52 extern int cifs_create(struct mnt_idmap *, struct inode *,
60 extern int cifs_mknod(struct mnt_idmap *, struct inode *, struct dentry *,
62 extern int cifs_mkdir(struct mnt_idmap *, struct inode *, struct dentry *,
65 extern int cifs_rename2(struct mnt_idmap *, struct inode *,
75 extern int cifs_getattr(struct mnt_idmap *, const struct path *,
77 extern int cifs_setattr(struct mnt_idmap *, struct dentry *,
126 extern int cifs_symlink(struct mnt_idmap *idmap, struct inode *inode,
/openbmc/linux/fs/coda/
H A Dcoda_linux.h49 int coda_permission(struct mnt_idmap *idmap, struct inode *inode,
52 int coda_getattr(struct mnt_idmap *, const struct path *, struct kstat *,
54 int coda_setattr(struct mnt_idmap *, struct dentry *, struct iattr *);
/openbmc/linux/fs/minix/
H A Dnamei.c36 static int minix_mknod(struct mnt_idmap *idmap, struct inode *dir, in minix_mknod()
53 static int minix_tmpfile(struct mnt_idmap *idmap, struct inode *dir, in minix_tmpfile()
66 static int minix_create(struct mnt_idmap *idmap, struct inode *dir, in minix_create()
72 static int minix_symlink(struct mnt_idmap *idmap, struct inode *dir, in minix_symlink()
107 static int minix_mkdir(struct mnt_idmap *idmap, struct inode *dir, in minix_mkdir()
177 static int minix_rename(struct mnt_idmap *idmap, in minix_rename()
/openbmc/linux/fs/ocfs2/
H A Dfile.h52 int ocfs2_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
54 int ocfs2_getattr(struct mnt_idmap *idmap, const struct path *path,
56 int ocfs2_permission(struct mnt_idmap *idmap,
/openbmc/linux/fs/ramfs/
H A Dinode.c98 ramfs_mknod(struct mnt_idmap *idmap, struct inode *dir, in ramfs_mknod()
113 static int ramfs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in ramfs_mkdir()
122 static int ramfs_create(struct mnt_idmap *idmap, struct inode *dir, in ramfs_create()
128 static int ramfs_symlink(struct mnt_idmap *idmap, struct inode *dir, in ramfs_symlink()
148 static int ramfs_tmpfile(struct mnt_idmap *idmap, in ramfs_tmpfile()
/openbmc/linux/fs/sysv/
H A Dnamei.c44 static int sysv_mknod(struct mnt_idmap *idmap, struct inode *dir, in sysv_mknod()
64 static int sysv_create(struct mnt_idmap *idmap, struct inode *dir, in sysv_create()
70 static int sysv_symlink(struct mnt_idmap *idmap, struct inode *dir, in sysv_symlink()
113 static int sysv_mkdir(struct mnt_idmap *idmap, struct inode *dir, in sysv_mkdir()
191 static int sysv_rename(struct mnt_idmap *idmap, struct inode *old_dir, in sysv_rename()
/openbmc/linux/fs/kernfs/
H A Dkernfs-internal.h134 int kernfs_iop_permission(struct mnt_idmap *idmap,
136 int kernfs_iop_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
138 int kernfs_iop_getattr(struct mnt_idmap *idmap,
/openbmc/linux/security/integrity/evm/
H A Devm_main.c450 static int evm_xattr_change(struct mnt_idmap *idmap, in evm_xattr_change()
486 static int evm_protect_xattr(struct mnt_idmap *idmap, in evm_protect_xattr()
569 int evm_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, in evm_inode_setxattr()
601 int evm_inode_removexattr(struct mnt_idmap *idmap, in evm_inode_removexattr()
614 static int evm_inode_set_acl_change(struct mnt_idmap *idmap, in evm_inode_set_acl_change()
633 static inline int evm_inode_set_acl_change(struct mnt_idmap *idmap, in evm_inode_set_acl_change()
653 int evm_inode_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in evm_inode_set_acl()
783 static int evm_attr_change(struct mnt_idmap *idmap, in evm_attr_change()
806 int evm_inode_setattr(struct mnt_idmap *idmap, struct dentry *dentry, in evm_inode_setattr()

12345678910>>...13