/linux/fs/ |
H A D | attr.c | 104 ns_capable(inode->i_sb->s_user_ns, CAP_CHOWN)) in chown_ok() 135 ns_capable(inode->i_sb->s_user_ns, CAP_CHOWN)) in chgrp_ok() 518 !vfsuid_has_fsmapping(idmap, inode->i_sb->s_user_ns, in notify_change() 522 !vfsgid_has_fsmapping(idmap, inode->i_sb->s_user_ns, in notify_change()
|
H A D | super.c | 279 put_user_ns(s->s_user_ns); in destroy_super_work() 326 s->s_user_ns = get_user_ns(user_ns); in alloc_super() 357 if (s->s_user_ns != &init_user_ns) in alloc_super() 791 if (user_ns != old->s_user_ns || fc->exclusive) { in sget_fc() 839 if (user_ns != old->s_user_ns) { in sget()
|
H A D | fs_context.c | 304 fc->user_ns = get_user_ns(reference->d_sb->s_user_ns); in alloc_fs_context() 308 fc->user_ns = get_user_ns(reference->d_sb->s_user_ns); in alloc_fs_context()
|
H A D | ioctl.c | 390 if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN)) in ioctl_fsfreeze() 407 if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN)) in ioctl_fsthaw()
|
H A D | fsopen.c | 256 if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN)) { in vfs_cmd_reconfigure()
|
H A D | posix_acl.c | 950 int ret = posix_acl_valid(inode->i_sb->s_user_ns, acl); in set_posix_acl()
|
/linux/fs/bcachefs/ |
H A D | fs-ioctl.c | 379 struct user_namespace *s_user_ns; in bch2_ioctl_subvolume_create() local 449 s_user_ns = dir->i_sb->s_user_ns; in bch2_ioctl_subvolume_create() 450 if (!kuid_has_mapping(s_user_ns, current_fsuid()) || in bch2_ioctl_subvolume_create() 451 !kgid_has_mapping(s_user_ns, current_fsgid())) { in bch2_ioctl_subvolume_create()
|
/linux/security/ |
H A D | commoncap.c | 409 fs_ns = inode->i_sb->s_user_ns; in cap_inode_getsecurity() 539 *fs_ns = inode->i_sb->s_user_ns; in cap_convert_nscap() 551 if (ns_capable(inode->i_sb->s_user_ns, CAP_SETFCAP)) in cap_convert_nscap() 654 fs_ns = inode->i_sb->s_user_ns; in get_vfs_caps_from_disk() 743 if (!current_in_userns(file->f_path.mnt->mnt_sb->s_user_ns)) in get_file_caps() 993 struct user_namespace *user_ns = dentry->d_sb->s_user_ns; in cap_inode_setxattr() 1034 struct user_namespace *user_ns = dentry->d_sb->s_user_ns; in cap_inode_removexattr()
|
/linux/fs/quota/ |
H A D | quota.c | 212 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_getquota() 248 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_getnextquota() 307 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_setquota() 636 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_setxquota() 639 if (from_kqid(sb->s_user_ns, qid) == 0 && in quota_setxquota() 716 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_getxquota() 743 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_getnextxquota()
|
H A D | dquot.c | 928 if (!qid_has_mapping(sb->s_user_ns, qid)) in dqget() 2426 if (sb->s_user_ns != &init_user_ns) { in dquot_load_quota_sb()
|
/linux/kernel/bpf/ |
H A D | token.c | 138 userns = sb->s_user_ns; in bpf_token_create()
|
/linux/drivers/android/ |
H A D | binderfs.c | 696 info->root_gid = make_kgid(sb->s_user_ns, 0); in binderfs_fill_super() 699 info->root_uid = make_kuid(sb->s_user_ns, 0); in binderfs_fill_super()
|
/linux/fs/9p/ |
H A D | acl.c | 165 retval = posix_acl_valid(inode->i_sb->s_user_ns, acl); in v9fs_iop_set_acl()
|
/linux/security/integrity/evm/ |
H A D | evm_crypto.c | 238 inode->i_sb->s_user_ns != &init_user_ns) in evm_calc_hmac_or_hash()
|
/linux/fs/xfs/ |
H A D | xfs_icache.c | 1645 icw.icw_uid = make_kuid(mp->m_super->s_user_ns, udqp->q_id); in xfs_blockgc_free_dquots() 1651 icw.icw_gid = make_kgid(mp->m_super->s_user_ns, gdqp->q_id); in xfs_blockgc_free_dquots()
|
H A D | xfs_trace.h | 4650 __entry->uid = icw ? from_kuid(mp->m_super->s_user_ns, 4652 __entry->gid = icw ? from_kgid(mp->m_super->s_user_ns,
|
/linux/include/linux/ |
H A D | fs.h | 1370 struct user_namespace *s_user_ns; member 1399 return inode->i_sb->s_user_ns; in i_user_ns() 1573 struct user_namespace *fs_userns = sb->s_user_ns; in fsuidgid_has_mapping()
|
/linux/security/smack/ |
H A D | smack_lsm.c | 830 if (sb->s_user_ns != &init_user_ns && in smack_set_mnt_opts()
|
/linux/Documentation/filesystems/ |
H A D | idmappings.rst | 381 - filesystem's idmapping (``sb->s_user_ns``)
|
/linux/security/selinux/ |
H A D | hooks.c | 763 if (sb->s_user_ns != &init_user_ns && in selinux_set_mnt_opts()
|