/linux-5.19.10/security/tomoyo/ ! |
D | audit.c | 171 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() 178 from_kgid(&init_user_ns, current_fsgid())); 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() [all …]
|
/linux-5.19.10/security/integrity/evm/ ! |
D | evm_crypto.c | 169 hmac_misc.uid = from_kuid(&init_user_ns, inode->i_uid); in hmac_add_misc() 170 hmac_misc.gid = from_kgid(&init_user_ns, inode->i_gid); in hmac_add_misc() 226 inode->i_sb->s_user_ns != &init_user_ns) in evm_calc_hmac_or_hash() 268 size = vfs_getxattr_alloc(&init_user_ns, dentry, xattr->name, in evm_calc_hmac_or_hash() 277 user_space_size = vfs_getxattr(&init_user_ns, dentry, in evm_calc_hmac_or_hash() 334 rc = vfs_getxattr_alloc(&init_user_ns, dentry, XATTR_NAME_EVM, in evm_is_immutable() 378 rc = __vfs_setxattr_noperm(&init_user_ns, dentry, in evm_update_evmxattr() 383 rc = __vfs_removexattr(&init_user_ns, dentry, XATTR_NAME_EVM); in evm_update_evmxattr()
|
/linux-5.19.10/fs/9p/ ! |
D | acl.c | 33 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-5.19.10/fs/ecryptfs/ ! |
D | inode.c | 140 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() 435 rc = vfs_link(lower_old_dentry, &init_user_ns, lower_dir, in ecryptfs_link() 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() 534 rc = vfs_rmdir(&init_user_ns, lower_dir, lower_dentry); in ecryptfs_rmdir() 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() [all …]
|
/linux-5.19.10/fs/ ! |
D | posix_acl.c | 742 uid = mapped_kuid_user(mnt_userns, &init_user_ns, uid); in posix_acl_fix_xattr_userns() 744 uid = mapped_kuid_fs(mnt_userns, &init_user_ns, uid); in posix_acl_fix_xattr_userns() 750 gid = mapped_kgid_user(mnt_userns, &init_user_ns, gid); in posix_acl_fix_xattr_userns() 752 gid = mapped_kgid_fs(mnt_userns, &init_user_ns, gid); in posix_acl_fix_xattr_userns() 769 mnt_userns = &init_user_ns; in posix_acl_fix_xattr_from_user() 770 if ((user_ns == &init_user_ns) && (mnt_userns == &init_user_ns)) in posix_acl_fix_xattr_from_user() 772 posix_acl_fix_xattr_userns(&init_user_ns, user_ns, mnt_userns, value, in posix_acl_fix_xattr_from_user() 784 mnt_userns = &init_user_ns; in posix_acl_fix_xattr_to_user() 785 if ((user_ns == &init_user_ns) && (mnt_userns == &init_user_ns)) in posix_acl_fix_xattr_to_user() 787 posix_acl_fix_xattr_userns(user_ns, &init_user_ns, mnt_userns, value, in posix_acl_fix_xattr_to_user() [all …]
|
/linux-5.19.10/fs/ext2/ ! |
D | acl.c | 63 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-5.19.10/kernel/ ! |
D | user.c | 27 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);
|
D | cred.c | 61 .user_ns = &init_user_ns, 424 for (;subset_ns != &init_user_ns; subset_ns = subset_ns->parent) { in cred_cap_issubset() 850 from_kuid_munged(&init_user_ns, cred->uid), in dump_invalid_creds() 851 from_kuid_munged(&init_user_ns, cred->euid), in dump_invalid_creds() 852 from_kuid_munged(&init_user_ns, cred->suid), in dump_invalid_creds() 853 from_kuid_munged(&init_user_ns, cred->fsuid)); in dump_invalid_creds() 855 from_kgid_munged(&init_user_ns, cred->gid), in dump_invalid_creds() 856 from_kgid_munged(&init_user_ns, cred->egid), in dump_invalid_creds() 857 from_kgid_munged(&init_user_ns, cred->sgid), in dump_invalid_creds() 858 from_kgid_munged(&init_user_ns, cred->fsgid)); in dump_invalid_creds()
|
/linux-5.19.10/fs/ksmbd/ ! |
D | smbacl.h | 220 kuid = mapped_kuid_fs(mnt_userns, &init_user_ns, pace->e_uid); in posix_acl_uid_translate() 223 return from_kuid(&init_user_ns, kuid); in posix_acl_uid_translate() 232 kgid = mapped_kgid_fs(mnt_userns, &init_user_ns, pace->e_gid); in posix_acl_gid_translate() 235 return from_kgid(&init_user_ns, kgid); in posix_acl_gid_translate()
|
/linux-5.19.10/fs/coda/ ! |
D | coda_linux.c | 116 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-5.19.10/fs/ceph/ ! |
D | acl.c | 71 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-5.19.10/fs/nfs_common/ ! |
D | nfsacl.c | 61 *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-5.19.10/fs/reiserfs/ ! |
D | xattr_acl.c | 44 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-5.19.10/fs/cachefiles/ ! |
D | xattr.c | 68 ret = vfs_setxattr(&init_user_ns, dentry, cachefiles_xattr_cache, in cachefiles_set_object_xattr() 111 xlen = vfs_getxattr(&init_user_ns, dentry, cachefiles_xattr_cache, buf, tlen); in cachefiles_check_auxdata() 153 ret = vfs_removexattr(&init_user_ns, dentry, cachefiles_xattr_cache); in cachefiles_remove_object_xattr() 210 ret = vfs_setxattr(&init_user_ns, dentry, cachefiles_xattr_cache, in cachefiles_set_volume_xattr() 252 xlen = vfs_getxattr(&init_user_ns, dentry, cachefiles_xattr_cache, buf, len); in cachefiles_check_volume_xattr()
|
/linux-5.19.10/fs/jffs2/ ! |
D | acl.c | 104 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-5.19.10/fs/minix/ ! |
D | file.c | 31 error = setattr_prepare(&init_user_ns, dentry, attr); in minix_setattr() 45 setattr_copy(&init_user_ns, inode, attr); in minix_setattr()
|
/linux-5.19.10/fs/sysv/ ! |
D | file.c | 38 error = setattr_prepare(&init_user_ns, dentry, attr); in sysv_setattr() 51 setattr_copy(&init_user_ns, inode, attr); in sysv_setattr()
|
/linux-5.19.10/fs/gfs2/ ! |
D | acl.c | 55 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-5.19.10/drivers/base/ ! |
D | devtmpfs.c | 176 err = vfs_mkdir(&init_user_ns, d_inode(path.dentry), dentry, mode); in dev_mkdir() 226 err = vfs_mknod(&init_user_ns, d_inode(path.dentry), dentry, mode, in handle_create() 236 notify_change(&init_user_ns, dentry, &newattrs, NULL); in handle_create() 257 err = vfs_rmdir(&init_user_ns, d_inode(parent.dentry), in dev_rmdir() 344 notify_change(&init_user_ns, dentry, &newattrs, NULL); in handle_remove() 346 err = vfs_unlink(&init_user_ns, d_inode(parent.dentry), in handle_remove()
|
/linux-5.19.10/fs/jfs/ ! |
D | acl.c | 53 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()
|
D | file.c | 94 rc = setattr_prepare(&init_user_ns, dentry, iattr); in jfs_setattr() 122 setattr_copy(&init_user_ns, inode, iattr); in jfs_setattr() 126 rc = posix_acl_chmod(&init_user_ns, inode, inode->i_mode); in jfs_setattr()
|
/linux-5.19.10/fs/orangefs/ ! |
D | acl.c | 53 acl = posix_acl_from_xattr(&init_user_ns, value, ret); in orangefs_get_acl() 99 error = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __orangefs_set_acl() 139 error = posix_acl_update_mode(&init_user_ns, inode, in orangefs_set_acl()
|
/linux-5.19.10/fs/xfs/ ! |
D | xfs_acl.c | 74 acl_e->e_uid = make_kuid(&init_user_ns, in xfs_acl_from_disk() 78 acl_e->e_gid = make_kgid(&init_user_ns, in xfs_acl_from_disk() 113 from_kuid(&init_user_ns, acl_e->e_uid)); in xfs_acl_to_disk() 117 from_kgid(&init_user_ns, acl_e->e_gid)); in xfs_acl_to_disk()
|
/linux-5.19.10/drivers/connector/ ! |
D | cn_proc.c | 142 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-5.19.10/security/integrity/ ! |
D | integrity_audit.c | 52 from_kuid(&init_user_ns, current_uid()), in integrity_audit_message() 53 from_kuid(&init_user_ns, audit_get_loginuid(current)), in integrity_audit_message()
|