Home
last modified time | relevance | path

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

12345678910>>...46

/dports/multimedia/libv4l/linux-5.13-rc2/include/linux/
H A Duser_namespace.h60 struct user_namespace { struct
64 struct user_namespace *parent; argument
100 struct user_namespace *ns; argument
106 extern struct user_namespace init_user_ns;
108 bool setup_userns_sysctls(struct user_namespace *ns);
109 void retire_userns_sysctls(struct user_namespace *ns);
115 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
124 extern void __put_user_ns(struct user_namespace *ns);
143 const struct user_namespace *child);
148 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
[all …]
H 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 …]
H 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 …]
H 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()
H 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,
H 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,
H A Dposix_acl.h18 struct user_namespace;
72 extern int set_posix_acl(struct user_namespace *, struct inode *, int,
76 int posix_acl_chmod(struct user_namespace *, struct inode *, umode_t);
79 int posix_acl_update_mode(struct user_namespace *, struct inode *, umode_t *,
82 extern int simple_set_acl(struct user_namespace *, struct inode *,
91 int posix_acl_valid(struct user_namespace *, const struct posix_acl *);
92 int posix_acl_permission(struct user_namespace *, struct inode *,
101 static inline int posix_acl_chmod(struct user_namespace *mnt_userns, in posix_acl_chmod()
/dports/multimedia/v4l_compat/linux-5.13-rc2/include/linux/
H A Duser_namespace.h60 struct user_namespace { struct
64 struct user_namespace *parent; argument
100 struct user_namespace *ns; argument
106 extern struct user_namespace init_user_ns;
108 bool setup_userns_sysctls(struct user_namespace *ns);
109 void retire_userns_sysctls(struct user_namespace *ns);
115 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
124 extern void __put_user_ns(struct user_namespace *ns);
143 const struct user_namespace *child);
148 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
[all …]
H 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 …]
H 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 …]
H 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()
H 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,
H 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,
H A Dposix_acl.h18 struct user_namespace;
72 extern int set_posix_acl(struct user_namespace *, struct inode *, int,
76 int posix_acl_chmod(struct user_namespace *, struct inode *, umode_t);
79 int posix_acl_update_mode(struct user_namespace *, struct inode *, umode_t *,
82 extern int simple_set_acl(struct user_namespace *, struct inode *,
91 int posix_acl_valid(struct user_namespace *, const struct posix_acl *);
92 int posix_acl_permission(struct user_namespace *, struct inode *,
101 static inline int posix_acl_chmod(struct user_namespace *mnt_userns, in posix_acl_chmod()
/dports/multimedia/v4l-utils/linux-5.13-rc2/include/linux/
H A Duser_namespace.h60 struct user_namespace { struct
64 struct user_namespace *parent; argument
100 struct user_namespace *ns; argument
106 extern struct user_namespace init_user_ns;
108 bool setup_userns_sysctls(struct user_namespace *ns);
109 void retire_userns_sysctls(struct user_namespace *ns);
115 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
124 extern void __put_user_ns(struct user_namespace *ns);
143 const struct user_namespace *child);
148 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
[all …]
H 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 …]
H 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 …]
H 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()
H 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,
H 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,
H A Dposix_acl.h18 struct user_namespace;
72 extern int set_posix_acl(struct user_namespace *, struct inode *, int,
76 int posix_acl_chmod(struct user_namespace *, struct inode *, umode_t);
79 int posix_acl_update_mode(struct user_namespace *, struct inode *, umode_t *,
82 extern int simple_set_acl(struct user_namespace *, struct inode *,
91 int posix_acl_valid(struct user_namespace *, const struct posix_acl *);
92 int posix_acl_permission(struct user_namespace *, struct inode *,
101 static inline int posix_acl_chmod(struct user_namespace *mnt_userns, in posix_acl_chmod()
/dports/multimedia/v4l_compat/linux-5.13-rc2/kernel/
H A Duser_namespace.c28 struct user_namespace *ns, int cap_setid,
177 struct user_namespace *parent, *ns = in free_user_ns()
580 struct user_namespace *ns = seq->private; in uid_m_show()
582 struct user_namespace *lower_ns; in uid_m_show()
601 struct user_namespace *ns = seq->private; in gid_m_show()
603 struct user_namespace *lower_ns; in gid_m_show()
624 struct user_namespace *lower_ns; in projid_m_show()
858 struct user_namespace *map_ns, in verify_root_map()
1282 const struct user_namespace *ns; in in_userns()
1301 struct user_namespace *user_ns; in userns_get()
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/kernel/
H A Duser_namespace.c28 struct user_namespace *ns, int cap_setid,
177 struct user_namespace *parent, *ns = in free_user_ns()
580 struct user_namespace *ns = seq->private; in uid_m_show()
582 struct user_namespace *lower_ns; in uid_m_show()
601 struct user_namespace *ns = seq->private; in gid_m_show()
603 struct user_namespace *lower_ns; in gid_m_show()
624 struct user_namespace *lower_ns; in projid_m_show()
858 struct user_namespace *map_ns, in verify_root_map()
1282 const struct user_namespace *ns; in in_userns()
1301 struct user_namespace *user_ns; in userns_get()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/kernel/
H A Duser_namespace.c28 struct user_namespace *ns, int cap_setid,
177 struct user_namespace *parent, *ns = in free_user_ns()
580 struct user_namespace *ns = seq->private; in uid_m_show()
582 struct user_namespace *lower_ns; in uid_m_show()
601 struct user_namespace *ns = seq->private; in gid_m_show()
603 struct user_namespace *lower_ns; in gid_m_show()
624 struct user_namespace *lower_ns; in projid_m_show()
858 struct user_namespace *map_ns, in verify_root_map()
1282 const struct user_namespace *ns; in in_userns()
1301 struct user_namespace *user_ns; in userns_get()
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/fs/
H 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()

12345678910>>...46