Home
last modified time | relevance | path

Searched refs:user_namespace (Results 1 – 25 of 367) sorted by relevance

12345678910>>...15

/Linux-v5.15/include/linux/
Duser_namespace.h66 struct user_namespace { struct
70 struct user_namespace *parent; argument
106 struct user_namespace *ns; argument
112 extern struct user_namespace init_user_ns;
115 bool setup_userns_sysctls(struct user_namespace *ns);
116 void retire_userns_sysctls(struct user_namespace *ns);
117 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type);
119 struct ucounts *alloc_ucounts(struct user_namespace *ns, kuid_t uid);
134 static inline void set_rlimit_ucount_max(struct user_namespace *ns, in set_rlimit_ucount_max()
142 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
[all …]
Duidgid.h18 struct user_namespace;
19 extern struct user_namespace init_user_ns;
123 extern kuid_t make_kuid(struct user_namespace *from, uid_t uid);
124 extern kgid_t make_kgid(struct user_namespace *from, gid_t gid);
126 extern uid_t from_kuid(struct user_namespace *to, kuid_t uid);
127 extern gid_t from_kgid(struct user_namespace *to, kgid_t gid);
128 extern uid_t from_kuid_munged(struct user_namespace *to, kuid_t uid);
129 extern gid_t from_kgid_munged(struct user_namespace *to, kgid_t gid);
131 static inline bool kuid_has_mapping(struct user_namespace *ns, kuid_t uid) in kuid_has_mapping()
136 static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid) in kgid_has_mapping()
[all …]
Dcapability.h44 struct user_namespace;
206 struct user_namespace *ns, int cap);
209 struct user_namespace *ns, int cap);
211 extern bool ns_capable(struct user_namespace *ns, int cap);
212 extern bool ns_capable_noaudit(struct user_namespace *ns, int cap);
213 extern bool ns_capable_setid(struct user_namespace *ns, int cap);
220 struct user_namespace *ns, int cap) in has_ns_capability()
229 struct user_namespace *ns, int cap) in has_ns_capability_noaudit()
237 static inline bool ns_capable(struct user_namespace *ns, int cap) in ns_capable()
241 static inline bool ns_capable_noaudit(struct user_namespace *ns, int cap) in ns_capable_noaudit()
[all …]
Dprojid.h17 struct user_namespace;
18 extern struct user_namespace init_user_ns;
53 extern kprojid_t make_kprojid(struct user_namespace *from, projid_t projid);
55 extern projid_t from_kprojid(struct user_namespace *to, kprojid_t projid);
56 extern projid_t from_kprojid_munged(struct user_namespace *to, kprojid_t projid);
58 static inline bool kprojid_has_mapping(struct user_namespace *ns, kprojid_t projid) in kprojid_has_mapping()
65 static inline kprojid_t make_kprojid(struct user_namespace *from, projid_t projid) in make_kprojid()
70 static inline projid_t from_kprojid(struct user_namespace *to, kprojid_t kprojid) in from_kprojid()
75 static inline projid_t from_kprojid_munged(struct user_namespace *to, kprojid_t kprojid) in from_kprojid_munged()
83 static inline bool kprojid_has_mapping(struct user_namespace *ns, kprojid_t projid) in kprojid_has_mapping()
Dxattr.h39 struct user_namespace *mnt_userns, struct dentry *dentry,
53 ssize_t vfs_getxattr(struct user_namespace *, struct dentry *, const char *,
56 int __vfs_setxattr(struct user_namespace *, struct dentry *, struct inode *,
58 int __vfs_setxattr_noperm(struct user_namespace *, struct dentry *,
60 int __vfs_setxattr_locked(struct user_namespace *, struct dentry *,
63 int vfs_setxattr(struct user_namespace *, struct dentry *, const char *,
65 int __vfs_removexattr(struct user_namespace *, struct dentry *, const char *);
66 int __vfs_removexattr_locked(struct user_namespace *, struct dentry *,
68 int vfs_removexattr(struct user_namespace *, struct dentry *, const char *);
71 ssize_t vfs_getxattr_alloc(struct user_namespace *mnt_userns,
Dposix_acl_xattr.h36 void posix_acl_fix_xattr_from_user(struct user_namespace *mnt_userns,
38 void posix_acl_fix_xattr_to_user(struct user_namespace *mnt_userns,
41 static inline void posix_acl_fix_xattr_from_user(struct user_namespace *mnt_userns, in posix_acl_fix_xattr_from_user()
45 static inline void posix_acl_fix_xattr_to_user(struct user_namespace *mnt_userns, in posix_acl_fix_xattr_to_user()
51 struct posix_acl *posix_acl_from_xattr(struct user_namespace *user_ns,
53 int posix_acl_to_xattr(struct user_namespace *user_ns,
Dposix_acl.h18 struct user_namespace;
72 extern int set_posix_acl(struct user_namespace *, struct inode *, int,
78 int posix_acl_chmod(struct user_namespace *, struct inode *, umode_t);
81 int posix_acl_update_mode(struct user_namespace *, struct inode *, umode_t *,
84 extern int simple_set_acl(struct user_namespace *, struct inode *,
92 int posix_acl_valid(struct user_namespace *, const struct posix_acl *);
93 int posix_acl_permission(struct user_namespace *, struct inode *,
102 static inline int posix_acl_chmod(struct user_namespace *mnt_userns, in posix_acl_chmod()
Dutsname.h20 struct user_namespace;
21 extern struct user_namespace init_user_ns;
25 struct user_namespace *user_ns;
38 struct user_namespace *user_ns, struct uts_namespace *old_ns);
58 struct user_namespace *user_ns, struct uts_namespace *old_ns) in copy_utsname()
Dima.h21 extern void ima_post_create_tmpfile(struct user_namespace *mnt_userns,
33 extern void ima_post_path_mknod(struct user_namespace *mnt_userns,
84 static inline void ima_post_create_tmpfile(struct user_namespace *mnt_userns, in ima_post_create_tmpfile()
129 static inline void ima_post_path_mknod(struct user_namespace *mnt_userns, in ima_post_path_mknod()
181 extern void ima_inode_post_setattr(struct user_namespace *mnt_userns,
192 static inline void ima_inode_post_setattr(struct user_namespace *mnt_userns, in ima_inode_post_setattr()
Dipc_namespace.h14 struct user_namespace;
67 struct user_namespace *user_ns;
125 struct user_namespace *user_ns, struct ipc_namespace *ns);
137 struct user_namespace *user_ns, struct ipc_namespace *ns) in copy_ipcs()
Dtime_namespace.h11 struct user_namespace;
12 extern struct user_namespace init_user_ns;
20 struct user_namespace *user_ns;
43 struct user_namespace *user_ns,
129 struct user_namespace *user_ns, in copy_time_ns()
Devm.h26 extern int evm_inode_setxattr(struct user_namespace *mnt_userns,
33 extern int evm_inode_removexattr(struct user_namespace *mnt_userns,
81 static inline int evm_inode_setxattr(struct user_namespace *mnt_userns, in evm_inode_setxattr()
96 static inline int evm_inode_removexattr(struct user_namespace *mnt_userns, in evm_inode_removexattr()
Dfs.h1577 struct user_namespace *s_user_ns;
1637 static inline kuid_t kuid_into_mnt(struct user_namespace *mnt_userns, in kuid_into_mnt()
1651 static inline kgid_t kgid_into_mnt(struct user_namespace *mnt_userns, in kgid_into_mnt()
1665 static inline kuid_t i_uid_into_mnt(struct user_namespace *mnt_userns, in i_uid_into_mnt()
1679 static inline kgid_t i_gid_into_mnt(struct user_namespace *mnt_userns, in i_gid_into_mnt()
1693 static inline kuid_t kuid_from_mnt(struct user_namespace *mnt_userns, in kuid_from_mnt()
1707 static inline kgid_t kgid_from_mnt(struct user_namespace *mnt_userns, in kgid_from_mnt()
1725 static inline kuid_t mapped_fsuid(struct user_namespace *mnt_userns) in mapped_fsuid()
1742 static inline kgid_t mapped_fsgid(struct user_namespace *mnt_userns) in mapped_fsgid()
1756 struct user_namespace *mnt_userns) in inode_fsuid_set()
[all …]
Dpid_namespace.h30 struct user_namespace *user_ns;
49 struct user_namespace *user_ns, struct pid_namespace *ns);
63 struct user_namespace *user_ns, struct pid_namespace *ns) in copy_pid_ns()
/Linux-v5.15/fs/ksmbd/
Dvfs.h110 int ksmbd_vfs_lock_parent(struct user_namespace *user_ns, struct dentry *parent,
112 int ksmbd_vfs_may_delete(struct user_namespace *user_ns, struct dentry *dentry);
113 int ksmbd_vfs_query_maximal_access(struct user_namespace *user_ns,
141 ssize_t ksmbd_vfs_getxattr(struct user_namespace *user_ns,
145 ssize_t ksmbd_vfs_casexattr_len(struct user_namespace *user_ns,
148 int ksmbd_vfs_setxattr(struct user_namespace *user_ns,
153 int ksmbd_vfs_remove_xattr(struct user_namespace *user_ns,
170 int ksmbd_vfs_unlink(struct user_namespace *user_ns,
174 struct user_namespace *user_ns,
180 int ksmbd_vfs_remove_acl_xattrs(struct user_namespace *user_ns,
[all …]
/Linux-v5.15/kernel/
Duser_namespace.c28 struct user_namespace *ns, int cap_setid,
32 static struct ucounts *inc_user_namespaces(struct user_namespace *ns, kuid_t uid) in inc_user_namespaces()
42 static void set_cred_user_ns(struct cred *cred, struct user_namespace *user_ns) in set_cred_user_ns()
71 struct user_namespace *ns, *parent_ns = new->user_ns; in create_user_ns()
181 struct user_namespace *parent, *ns = in free_user_ns()
182 container_of(work, struct user_namespace, work); in free_user_ns()
208 void __put_user_ns(struct user_namespace *ns) in __put_user_ns()
391 kuid_t make_kuid(struct user_namespace *ns, uid_t uid) in make_kuid()
410 uid_t from_kuid(struct user_namespace *targ, kuid_t kuid) in from_kuid()
435 uid_t from_kuid_munged(struct user_namespace *targ, kuid_t kuid) in from_kuid_munged()
[all …]
Dcapability.c295 struct user_namespace *ns, int cap) in has_ns_capability()
336 struct user_namespace *ns, int cap) in has_ns_capability_noaudit()
364 static bool ns_capable_common(struct user_namespace *ns, in ns_capable_common()
394 bool ns_capable(struct user_namespace *ns, int cap) in ns_capable()
412 bool ns_capable_noaudit(struct user_namespace *ns, int cap) in ns_capable_noaudit()
431 bool ns_capable_setid(struct user_namespace *ns, int cap) in ns_capable_setid()
466 bool file_ns_capable(const struct file *file, struct user_namespace *ns, in file_ns_capable()
487 bool privileged_wrt_inode_uidgid(struct user_namespace *ns, in privileged_wrt_inode_uidgid()
488 struct user_namespace *mnt_userns, in privileged_wrt_inode_uidgid()
504 bool capable_wrt_inode_uidgid(struct user_namespace *mnt_userns, in capable_wrt_inode_uidgid()
[all …]
Ducount.c43 struct user_namespace *user_ns = in set_permissions()
44 container_of(head->set, struct user_namespace, set); in set_permissions()
98 bool setup_userns_sysctls(struct user_namespace *ns) in setup_userns_sysctls()
122 void retire_userns_sysctls(struct user_namespace *ns) in retire_userns_sysctls()
134 static struct ucounts *find_ucounts(struct user_namespace *ns, kuid_t uid, struct hlist_head *hashe… in find_ucounts()
162 struct ucounts *alloc_ucounts(struct user_namespace *ns, kuid_t uid) in alloc_ucounts()
225 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, in inc_ucount()
229 struct user_namespace *tns; in inc_ucount()
Dutsname.c20 static struct ucounts *inc_uts_namespaces(struct user_namespace *ns) in inc_uts_namespaces()
45 static struct uts_namespace *clone_uts_ns(struct user_namespace *user_ns, in clone_uts_ns()
90 struct user_namespace *user_ns, struct uts_namespace *old_ns) in copy_utsname()
155 static struct user_namespace *utsns_owner(struct ns_common *ns) in utsns_owner()
/Linux-v5.15/fs/
Dbad_inode.c30 static int bad_inode_create(struct user_namespace *mnt_userns, in bad_inode_create()
54 static int bad_inode_symlink(struct user_namespace *mnt_userns, in bad_inode_symlink()
61 static int bad_inode_mkdir(struct user_namespace *mnt_userns, struct inode *dir, in bad_inode_mkdir()
72 static int bad_inode_mknod(struct user_namespace *mnt_userns, struct inode *dir, in bad_inode_mknod()
78 static int bad_inode_rename2(struct user_namespace *mnt_userns, in bad_inode_rename2()
92 static int bad_inode_permission(struct user_namespace *mnt_userns, in bad_inode_permission()
98 static int bad_inode_getattr(struct user_namespace *mnt_userns, in bad_inode_getattr()
105 static int bad_inode_setattr(struct user_namespace *mnt_userns, in bad_inode_setattr()
149 static int bad_inode_tmpfile(struct user_namespace *mnt_userns, in bad_inode_tmpfile()
156 static int bad_inode_set_acl(struct user_namespace *mnt_userns, in bad_inode_set_acl()
Dposix_acl.c221 posix_acl_valid(struct user_namespace *user_ns, const struct posix_acl *acl) in posix_acl_valid()
359 posix_acl_permission(struct user_namespace *mnt_userns, struct inode *inode, in posix_acl_permission()
586 posix_acl_chmod(struct user_namespace *mnt_userns, struct inode *inode, in posix_acl_chmod()
686 int posix_acl_update_mode(struct user_namespace *mnt_userns, in posix_acl_update_mode()
710 struct user_namespace *to, struct user_namespace *from, in posix_acl_fix_xattr_userns()
711 struct user_namespace *mnt_userns, in posix_acl_fix_xattr_userns()
757 void posix_acl_fix_xattr_from_user(struct user_namespace *mnt_userns, in posix_acl_fix_xattr_from_user()
760 struct user_namespace *user_ns = current_user_ns(); in posix_acl_fix_xattr_from_user()
767 void posix_acl_fix_xattr_to_user(struct user_namespace *mnt_userns, in posix_acl_fix_xattr_to_user()
770 struct user_namespace *user_ns = current_user_ns(); in posix_acl_fix_xattr_to_user()
[all …]
/Linux-v5.15/fs/cifs/
Dcifsfs.h52 extern int cifs_create(struct user_namespace *, struct inode *,
60 extern int cifs_mknod(struct user_namespace *, struct inode *, struct dentry *,
62 extern int cifs_mkdir(struct user_namespace *, struct inode *, struct dentry *,
65 extern int cifs_rename2(struct user_namespace *, struct inode *,
75 extern int cifs_getattr(struct user_namespace *, const struct path *,
77 extern int cifs_setattr(struct user_namespace *, struct dentry *,
127 extern int cifs_symlink(struct user_namespace *mnt_userns, struct inode *inode,
/Linux-v5.15/fs/coda/
Dcoda_linux.h49 int coda_permission(struct user_namespace *mnt_userns, struct inode *inode,
52 int coda_getattr(struct user_namespace *, const struct path *, struct kstat *,
54 int coda_setattr(struct user_namespace *, struct dentry *, struct iattr *);
/Linux-v5.15/security/keys/
Dpersistent.c20 static int key_create_persistent_register(struct user_namespace *ns) in key_create_persistent_register()
40 static key_ref_t key_create_persistent(struct user_namespace *ns, kuid_t uid, in key_create_persistent()
73 static long key_get_persistent(struct user_namespace *ns, kuid_t uid, in key_get_persistent()
131 struct user_namespace *ns = current_user_ns(); in keyctl_get_persistent()
/Linux-v5.15/fs/minix/
Dnamei.c36 static int minix_mknod(struct user_namespace *mnt_userns, struct inode *dir, in minix_mknod()
55 static int minix_tmpfile(struct user_namespace *mnt_userns, struct inode *dir, in minix_tmpfile()
68 static int minix_create(struct user_namespace *mnt_userns, struct inode *dir, in minix_create()
74 static int minix_symlink(struct user_namespace *mnt_userns, struct inode *dir, in minix_symlink()
114 static int minix_mkdir(struct user_namespace *mnt_userns, struct inode *dir, in minix_mkdir()
187 static int minix_rename(struct user_namespace *mnt_userns, in minix_rename()

12345678910>>...15