Home
last modified time | relevance | path

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

12345678910>>...53

/linux/include/linux/
A 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);
142 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
151 extern void __put_user_ns(struct user_namespace *ns);
170 const struct user_namespace *child);
175 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
[all …]
A 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);
143 static inline kuid_t make_kuid(struct user_namespace *from, uid_t uid) in make_kuid()
153 static inline uid_t from_kuid(struct user_namespace *to, kuid_t kuid) in from_kuid()
[all …]
A 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);
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()
250 bool privileged_wrt_inode_uidgid(struct user_namespace *ns,
251 struct user_namespace *mnt_userns,
253 bool capable_wrt_inode_uidgid(struct user_namespace *mnt_userns,
[all …]
A 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()
A 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,
A 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()
A 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,
A 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()
A 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()
A Dfs.h1575 struct user_namespace *s_user_ns;
1754 struct user_namespace *mnt_userns) in inode_fsuid_set()
1768 struct user_namespace *mnt_userns) in inode_fsgid_set()
1785 struct user_namespace *mnt_userns) in fsuidgid_has_mapping()
1787 struct user_namespace *s_user_ns = sb->s_user_ns; in fsuidgid_has_mapping()
1941 int vfs_create(struct user_namespace *, struct inode *,
1943 int vfs_mkdir(struct user_namespace *, struct inode *,
1947 int vfs_symlink(struct user_namespace *, struct inode *,
1967 struct user_namespace *old_mnt_userns;
1970 struct user_namespace *new_mnt_userns;
[all …]
A 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()
A 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()
A Dipc_namespace.h14 struct user_namespace;
67 struct user_namespace *user_ns;
125 struct user_namespace *user_ns, struct ipc_namespace *ns);
147 struct user_namespace *user_ns, struct ipc_namespace *ns) in copy_ipcs()
A 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/fs/ksmbd/
A Dvfs.h74 int ksmbd_vfs_query_maximal_access(struct user_namespace *user_ns,
102 ssize_t ksmbd_vfs_getxattr(struct user_namespace *user_ns,
106 ssize_t ksmbd_vfs_casexattr_len(struct user_namespace *user_ns,
109 int ksmbd_vfs_setxattr(struct user_namespace *user_ns,
114 int ksmbd_vfs_remove_xattr(struct user_namespace *user_ns,
131 int ksmbd_vfs_unlink(struct user_namespace *user_ns,
135 struct user_namespace *user_ns,
141 int ksmbd_vfs_remove_acl_xattrs(struct user_namespace *user_ns,
143 int ksmbd_vfs_remove_sd_xattrs(struct user_namespace *user_ns,
146 struct user_namespace *user_ns,
[all …]
A Dvfs.c100 int ksmbd_vfs_may_delete(struct user_namespace *user_ns, in ksmbd_vfs_may_delete()
203 struct user_namespace *user_ns; in ksmbd_vfs_mkdir()
591 struct user_namespace *user_ns; in ksmbd_vfs_remove_file()
719 struct user_namespace *src_user_ns, in __ksmbd_vfs_rename()
722 struct user_namespace *dst_user_ns, in __ksmbd_vfs_rename()
780 struct user_namespace *user_ns; in ksmbd_vfs_fp_rename()
967 int ksmbd_vfs_setxattr(struct user_namespace *user_ns, in ksmbd_vfs_setxattr()
1087 int ksmbd_vfs_unlink(struct user_namespace *user_ns, in ksmbd_vfs_unlink()
1423 struct user_namespace *user_ns, in ksmbd_vfs_set_sd_xattr()
1497 struct user_namespace *user_ns, in ksmbd_vfs_get_sd_xattr()
[all …]
/linux/kernel/
A Duser_namespace.c28 struct user_namespace *ns, int cap_setid,
181 struct user_namespace *parent, *ns = in free_user_ns()
584 struct user_namespace *ns = seq->private; in uid_m_show()
586 struct user_namespace *lower_ns; in uid_m_show()
605 struct user_namespace *ns = seq->private; in gid_m_show()
607 struct user_namespace *lower_ns; in gid_m_show()
628 struct user_namespace *lower_ns; in projid_m_show()
862 struct user_namespace *map_ns, in verify_root_map()
1286 const struct user_namespace *ns; in in_userns()
1305 struct user_namespace *user_ns; in userns_get()
[all …]
A 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 …]
A 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()
168 struct ucounts *alloc_ucounts(struct user_namespace *ns, kuid_t uid) in alloc_ucounts()
231 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, in inc_ucount()
235 struct user_namespace *tns; in inc_ucount()
/linux/fs/
A 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()
A Dposix_acl.c585 posix_acl_chmod(struct user_namespace *mnt_userns, struct inode *inode, in posix_acl_chmod()
685 int posix_acl_update_mode(struct user_namespace *mnt_userns, in posix_acl_update_mode()
709 struct user_namespace *to, struct user_namespace *from, in posix_acl_fix_xattr_userns()
710 struct user_namespace *mnt_userns, in posix_acl_fix_xattr_userns()
756 void posix_acl_fix_xattr_from_user(struct user_namespace *mnt_userns, in posix_acl_fix_xattr_from_user()
759 struct user_namespace *user_ns = current_user_ns(); in posix_acl_fix_xattr_from_user()
766 void posix_acl_fix_xattr_to_user(struct user_namespace *mnt_userns, in posix_acl_fix_xattr_to_user()
769 struct user_namespace *user_ns = current_user_ns(); in posix_acl_fix_xattr_to_user()
780 posix_acl_from_xattr(struct user_namespace *user_ns, in posix_acl_from_xattr()
913 set_posix_acl(struct user_namespace *mnt_userns, struct inode *inode, in set_posix_acl()
[all …]
/linux/fs/cifs/
A 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/fs/minix/
A 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()
/linux/security/
A Dcommoncap.c68 struct user_namespace *ns = targ_ns; in cap_capable()
332 struct user_namespace *ns; in rootid_owns_currentns()
377 int cap_inode_getsecurity(struct user_namespace *mnt_userns, in cap_inode_getsecurity()
389 struct user_namespace *fs_ns; in cap_inode_getsecurity()
499 struct user_namespace *task_ns, in rootid_from_xattr()
500 struct user_namespace *mnt_userns) in rootid_from_xattr()
545 struct user_namespace *task_ns = current_user_ns(), in cap_convert_nscap()
655 struct user_namespace *fs_ns; in get_vfs_caps_from_disk()
995 struct user_namespace *user_ns = dentry->d_sb->s_user_ns; in cap_inode_setxattr()
1033 int cap_inode_removexattr(struct user_namespace *mnt_userns, in cap_inode_removexattr()
[all …]
/linux/security/keys/
A 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()

Completed in 47 milliseconds

12345678910>>...53