Home
last modified time | relevance | path

Searched refs:init_user_ns (Results 1 – 25 of 309) sorted by relevance

12345678910>>...13

/linux/security/tomoyo/
A Daudit.c171 from_kuid(&init_user_ns, current_uid()), in tomoyo_print_header()
172 from_kgid(&init_user_ns, current_gid()), in tomoyo_print_header()
173 from_kuid(&init_user_ns, current_euid()), in tomoyo_print_header()
174 from_kgid(&init_user_ns, current_egid()), in tomoyo_print_header()
175 from_kuid(&init_user_ns, current_suid()), in tomoyo_print_header()
176 from_kgid(&init_user_ns, current_sgid()), in tomoyo_print_header()
177 from_kuid(&init_user_ns, current_fsuid()), in tomoyo_print_header()
200 from_kuid(&init_user_ns, stat->uid), in tomoyo_print_header()
201 from_kgid(&init_user_ns, stat->gid), in tomoyo_print_header()
209 from_kuid(&init_user_ns, stat->uid), in tomoyo_print_header()
[all …]
A Dcondition.c841 value = from_kuid(&init_user_ns, current_uid()); in tomoyo_condition()
844 value = from_kuid(&init_user_ns, current_euid()); in tomoyo_condition()
847 value = from_kuid(&init_user_ns, current_suid()); in tomoyo_condition()
850 value = from_kuid(&init_user_ns, current_fsuid()); in tomoyo_condition()
853 value = from_kgid(&init_user_ns, current_gid()); in tomoyo_condition()
856 value = from_kgid(&init_user_ns, current_egid()); in tomoyo_condition()
859 value = from_kgid(&init_user_ns, current_sgid()); in tomoyo_condition()
862 value = from_kgid(&init_user_ns, current_fsgid()); in tomoyo_condition()
999 value = from_kuid(&init_user_ns, stat->uid); in tomoyo_condition()
1005 value = from_kgid(&init_user_ns, stat->gid); in tomoyo_condition()
/linux/fs/cachefiles/
A Dxattr.c42 ret = vfs_setxattr(&init_user_ns, dentry, cachefiles_xattr_cache, type, in cachefiles_check_object_type()
57 ret = vfs_getxattr(&init_user_ns, dentry, cachefiles_xattr_cache, xtype, in cachefiles_check_object_type()
114 ret = vfs_setxattr(&init_user_ns, dentry, cachefiles_xattr_cache, in cachefiles_set_object_xattr()
143 ret = vfs_setxattr(&init_user_ns, dentry, cachefiles_xattr_cache, in cachefiles_update_object_xattr()
173 xlen = vfs_getxattr(&init_user_ns, dentry, cachefiles_xattr_cache, in cachefiles_check_auxdata()
215 ret = vfs_getxattr(&init_user_ns, dentry, cachefiles_xattr_cache, in cachefiles_check_object_xattr()
272 ret = vfs_setxattr(&init_user_ns, dentry, in cachefiles_check_object_xattr()
311 ret = vfs_removexattr(&init_user_ns, dentry, cachefiles_xattr_cache); in cachefiles_remove_object_xattr()
/linux/fs/overlayfs/
A Doverlayfs.h127 int err = vfs_rmdir(&init_user_ns, dir, dentry); in ovl_do_rmdir()
135 int err = vfs_unlink(&init_user_ns, dir, dentry, NULL); in ovl_do_unlink()
153 int err = vfs_create(&init_user_ns, dir, dentry, mode, true); in ovl_do_create()
162 int err = vfs_mkdir(&init_user_ns, dir, dentry, mode); in ovl_do_mkdir()
170 int err = vfs_mknod(&init_user_ns, dir, dentry, mode, dev); in ovl_do_mknod()
179 int err = vfs_symlink(&init_user_ns, dir, dentry, oldname); in ovl_do_symlink()
190 int err = vfs_getxattr(&init_user_ns, dentry, name, value, size); in ovl_do_getxattr()
213 int err = vfs_removexattr(&init_user_ns, dentry, name); in ovl_do_removexattr()
224 .old_mnt_userns = &init_user_ns, in ovl_do_rename()
227 .new_mnt_userns = &init_user_ns, in ovl_do_rename()
[all …]
/linux/fs/ecryptfs/
A Dinode.c140 rc = vfs_unlink(&init_user_ns, lower_dir, lower_dentry, in ecryptfs_do_unlink()
181 rc = vfs_create(&init_user_ns, lower_dir, in ecryptfs_do_create()
192 vfs_unlink(&init_user_ns, lower_dir, lower_dentry, NULL); in ecryptfs_do_create()
479 rc = vfs_symlink(&init_user_ns, lower_dir, lower_dentry, in ecryptfs_symlink()
505 rc = vfs_mkdir(&init_user_ns, lower_dir, in ecryptfs_mkdir()
558 rc = vfs_mknod(&init_user_ns, lower_dir, in ecryptfs_mknod()
617 rd.old_mnt_userns = &init_user_ns; in ecryptfs_rename()
620 rd.new_mnt_userns = &init_user_ns; in ecryptfs_rename()
857 rc = notify_change(&init_user_ns, lower_dentry, in ecryptfs_truncate()
868 return inode_permission(&init_user_ns, in ecryptfs_permission()
[all …]
/linux/security/integrity/evm/
A Devm_crypto.c172 hmac_misc.uid = from_kuid(&init_user_ns, inode->i_uid); in hmac_add_misc()
173 hmac_misc.gid = from_kgid(&init_user_ns, inode->i_gid); in hmac_add_misc()
229 inode->i_sb->s_user_ns != &init_user_ns) in evm_calc_hmac_or_hash()
271 size = vfs_getxattr_alloc(&init_user_ns, dentry, xattr->name, in evm_calc_hmac_or_hash()
280 user_space_size = vfs_getxattr(&init_user_ns, dentry, in evm_calc_hmac_or_hash()
337 rc = vfs_getxattr_alloc(&init_user_ns, dentry, XATTR_NAME_EVM, in evm_is_immutable()
381 rc = __vfs_setxattr_noperm(&init_user_ns, dentry, in evm_update_evmxattr()
386 rc = __vfs_removexattr(&init_user_ns, dentry, XATTR_NAME_EVM); in evm_update_evmxattr()
/linux/fs/9p/
A Dacl.c33 acl = posix_acl_from_xattr(&init_user_ns, value, size); in __v9fs_get_acl()
127 retval = posix_acl_to_xattr(&init_user_ns, acl, buffer, size); in v9fs_set_acl()
231 error = posix_acl_to_xattr(&init_user_ns, acl, buffer, size); in v9fs_xattr_get_acl()
258 if (!inode_owner_or_capable(&init_user_ns, inode)) in v9fs_xattr_set_acl()
262 acl = posix_acl_from_xattr(&init_user_ns, value, size); in v9fs_xattr_set_acl()
279 retval = posix_acl_update_mode(&init_user_ns, inode, in v9fs_xattr_set_acl()
298 v9fs_vfs_setattr_dotl(&init_user_ns, dentry, &iattr); in v9fs_xattr_set_acl()
/linux/fs/btrfs/
A Dacl.c48 acl = posix_acl_from_xattr(&init_user_ns, value, size); in btrfs_get_acl()
95 ret = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __btrfs_set_acl()
147 ret = __btrfs_set_acl(trans, &init_user_ns, inode, default_acl, in btrfs_init_acl()
154 ret = __btrfs_set_acl(trans, &init_user_ns, inode, acl, in btrfs_init_acl()
/linux/fs/ext2/
A Dacl.c63 make_kuid(&init_user_ns, in ext2_acl_from_disk()
71 make_kgid(&init_user_ns, in ext2_acl_from_disk()
113 from_kuid(&init_user_ns, acl_e->e_uid)); in ext2_acl_to_disk()
118 from_kgid(&init_user_ns, acl_e->e_gid)); in ext2_acl_to_disk()
230 error = posix_acl_update_mode(&init_user_ns, inode, &mode, in ext2_set_acl()
/linux/fs/nfs_common/
A Dnfsacl.c61 *p++ = htonl(from_kuid(&init_user_ns, nfsacl_desc->uid)); in xdr_nfsace_encode()
64 *p++ = htonl(from_kgid(&init_user_ns, nfsacl_desc->gid)); in xdr_nfsace_encode()
67 *p++ = htonl(from_kuid(&init_user_ns, entry->e_uid)); in xdr_nfsace_encode()
70 *p++ = htonl(from_kgid(&init_user_ns, entry->e_gid)); in xdr_nfsace_encode()
241 entry->e_uid = make_kuid(&init_user_ns, id); in xdr_nfsace_decode()
246 entry->e_gid = make_kgid(&init_user_ns, id); in xdr_nfsace_decode()
/linux/fs/reiserfs/
A Dxattr_acl.c44 error = posix_acl_update_mode(&init_user_ns, inode, in reiserfs_set_acl()
109 make_kuid(&init_user_ns, in reiserfs_posix_acl_from_disk()
117 make_kgid(&init_user_ns, in reiserfs_posix_acl_from_disk()
160 from_kuid(&init_user_ns, acl_e->e_uid)); in reiserfs_posix_acl_to_disk()
165 from_kgid(&init_user_ns, acl_e->e_gid)); in reiserfs_posix_acl_to_disk()
407 return posix_acl_chmod(&init_user_ns, inode, inode->i_mode); in reiserfs_acl_chmod()
/linux/kernel/
A Duser.c27 struct user_namespace init_user_ns = { variable
67 .keyring_name_list = LIST_HEAD_INIT(init_user_ns.keyring_name_list),
68 .keyring_sem = __RWSEM_INITIALIZER(init_user_ns.keyring_sem),
71 EXPORT_SYMBOL_GPL(init_user_ns);
A Dcred.c61 .user_ns = &init_user_ns,
424 for (;subset_ns != &init_user_ns; subset_ns = subset_ns->parent) { in cred_cap_issubset()
855 from_kuid_munged(&init_user_ns, cred->uid), in dump_invalid_creds()
856 from_kuid_munged(&init_user_ns, cred->euid), in dump_invalid_creds()
857 from_kuid_munged(&init_user_ns, cred->suid), in dump_invalid_creds()
858 from_kuid_munged(&init_user_ns, cred->fsuid)); in dump_invalid_creds()
860 from_kgid_munged(&init_user_ns, cred->gid), in dump_invalid_creds()
861 from_kgid_munged(&init_user_ns, cred->egid), in dump_invalid_creds()
862 from_kgid_munged(&init_user_ns, cred->sgid), in dump_invalid_creds()
863 from_kgid_munged(&init_user_ns, cred->fsgid)); in dump_invalid_creds()
A Daudit.c1013 if (current_user_ns() != &init_user_ns) in audit_netlink_ok()
1564 from_kuid(&init_user_ns, cred->uid), in audit_log_multicast()
2209 from_kuid(&init_user_ns, cred->uid), in audit_log_task_info()
2210 from_kgid(&init_user_ns, cred->gid), in audit_log_task_info()
2211 from_kuid(&init_user_ns, cred->euid), in audit_log_task_info()
2212 from_kuid(&init_user_ns, cred->suid), in audit_log_task_info()
2213 from_kuid(&init_user_ns, cred->fsuid), in audit_log_task_info()
2214 from_kgid(&init_user_ns, cred->egid), in audit_log_task_info()
2215 from_kgid(&init_user_ns, cred->sgid), in audit_log_task_info()
2216 from_kgid(&init_user_ns, cred->fsgid), in audit_log_task_info()
[all …]
/linux/fs/ceph/
A Dacl.c71 acl = posix_acl_from_xattr(&init_user_ns, value, size); in ceph_get_acl()
107 ret = posix_acl_update_mode(&init_user_ns, inode, in ceph_set_acl()
133 ret = posix_acl_to_xattr(&init_user_ns, acl, value, size); in ceph_set_acl()
218 err = posix_acl_to_xattr(&init_user_ns, acl, in ceph_pre_init_acls()
232 err = posix_acl_to_xattr(&init_user_ns, default_acl, in ceph_pre_init_acls()
/linux/fs/coda/
A Dcoda_linux.c116 inode->i_uid = make_kuid(&init_user_ns, (uid_t) attr->va_uid); in coda_vattr_to_iattr()
118 inode->i_gid = make_kgid(&init_user_ns, (gid_t) attr->va_gid); in coda_vattr_to_iattr()
187 vattr->va_uid = (vuid_t) from_kuid(&init_user_ns, iattr->ia_uid); in coda_iattr_to_vattr()
190 vattr->va_gid = (vgid_t) from_kgid(&init_user_ns, iattr->ia_gid); in coda_iattr_to_vattr()
/linux/fs/jffs2/
A Dacl.c104 make_kuid(&init_user_ns, in jffs2_acl_from_medium()
112 make_kgid(&init_user_ns, in jffs2_acl_from_medium()
150 from_kuid(&init_user_ns, acl_e->e_uid)); in jffs2_acl_to_medium()
155 from_kgid(&init_user_ns, acl_e->e_gid)); in jffs2_acl_to_medium()
243 rc = posix_acl_update_mode(&init_user_ns, inode, &mode, in jffs2_set_acl()
/linux/drivers/base/
A Ddevtmpfs.c165 err = vfs_mkdir(&init_user_ns, d_inode(path.dentry), dentry, mode); in dev_mkdir()
215 err = vfs_mknod(&init_user_ns, d_inode(path.dentry), dentry, mode, in handle_create()
225 notify_change(&init_user_ns, dentry, &newattrs, NULL); in handle_create()
246 err = vfs_rmdir(&init_user_ns, d_inode(parent.dentry), in dev_rmdir()
333 notify_change(&init_user_ns, dentry, &newattrs, NULL); in handle_remove()
335 err = vfs_unlink(&init_user_ns, d_inode(parent.dentry), in handle_remove()
/linux/fs/f2fs/
A Dacl.c89 make_kuid(&init_user_ns, in f2fs_acl_from_disk()
96 make_kgid(&init_user_ns, in f2fs_acl_from_disk()
137 from_kuid(&init_user_ns, in f2fs_acl_to_disk()
144 from_kgid(&init_user_ns, in f2fs_acl_to_disk()
221 if (!in_group_p(i_gid_into_mnt(&init_user_ns, inode)) && in f2fs_acl_update_mode()
222 !capable_wrt_inode_uidgid(&init_user_ns, inode, CAP_FSETID)) in f2fs_acl_update_mode()
/linux/fs/gfs2/
A Dacl.c55 acl = posix_acl_from_xattr(&init_user_ns, data, len); in __gfs2_get_acl()
95 error = posix_acl_to_xattr(&init_user_ns, acl, data, len); in __gfs2_set_acl()
137 ret = posix_acl_update_mode(&init_user_ns, inode, &mode, &acl); in gfs2_set_acl()
/linux/drivers/connector/
A Dcn_proc.c142 ev->event_data.id.r.ruid = from_kuid_munged(&init_user_ns, cred->uid); in proc_id_connector()
143 ev->event_data.id.e.euid = from_kuid_munged(&init_user_ns, cred->euid); in proc_id_connector()
145 ev->event_data.id.r.rgid = from_kgid_munged(&init_user_ns, cred->gid); in proc_id_connector()
146 ev->event_data.id.e.egid = from_kgid_munged(&init_user_ns, cred->egid); in proc_id_connector()
360 if ((current_user_ns() != &init_user_ns) || in cn_proc_mcast_ctl()
365 if (!__netlink_ns_capable(nsp, &init_user_ns, CAP_NET_ADMIN)) { in cn_proc_mcast_ctl()
/linux/fs/jfs/
A Dacl.c53 acl = posix_acl_from_xattr(&init_user_ns, value, size); in jfs_get_acl()
83 rc = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __jfs_set_acl()
108 rc = posix_acl_update_mode(&init_user_ns, inode, &mode, &acl); in jfs_set_acl()
/linux/fs/xfs/
A Dxfs_acl.c73 acl_e->e_uid = make_kuid(&init_user_ns, in xfs_acl_from_disk()
77 acl_e->e_gid = make_kgid(&init_user_ns, in xfs_acl_from_disk()
112 from_kuid(&init_user_ns, acl_e->e_uid)); in xfs_acl_to_disk()
116 from_kgid(&init_user_ns, acl_e->e_gid)); in xfs_acl_to_disk()
/linux/fs/minix/
A Dfile.c31 error = setattr_prepare(&init_user_ns, dentry, attr); in minix_setattr()
45 setattr_copy(&init_user_ns, inode, attr); in minix_setattr()
/linux/fs/sysv/
A Dfile.c38 error = setattr_prepare(&init_user_ns, dentry, attr); in sysv_setattr()
51 setattr_copy(&init_user_ns, inode, attr); in sysv_setattr()

Completed in 60 milliseconds

12345678910>>...13