/Linux-v6.6/fs/ |
D | attr.c | 108 ns_capable(inode->i_sb->s_user_ns, CAP_CHOWN)) in chown_ok() 139 ns_capable(inode->i_sb->s_user_ns, CAP_CHOWN)) in chgrp_ok() 473 !vfsuid_has_fsmapping(idmap, inode->i_sb->s_user_ns, in notify_change() 477 !vfsgid_has_fsmapping(idmap, inode->i_sb->s_user_ns, in notify_change()
|
D | mnt_idmapping.c | 38 return idmap->owner != sb->s_user_ns; in check_fsmapping()
|
D | super.c | 307 put_user_ns(s->s_user_ns); in destroy_unused_super() 334 s->s_user_ns = get_user_ns(user_ns); in alloc_super() 365 if (s->s_user_ns != &init_user_ns) in alloc_super() 417 put_user_ns(s->s_user_ns); in __put_super() 825 if (user_ns != old->s_user_ns || fc->exclusive) { in sget_fc() 873 if (user_ns != old->s_user_ns) { in sget()
|
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()
|
D | ioctl.c | 391 if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN)) in ioctl_fsfreeze() 408 if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN)) in ioctl_fsthaw()
|
D | fsopen.c | 261 if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN)) { in vfs_cmd_reconfigure()
|
D | namespace.c | 1159 if (mountpoint->d_sb->s_user_ns != &init_user_ns) in vfs_submount() 1770 if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN)) in do_umount() 2881 if (ns_capable(sb->s_user_ns, CAP_SYS_ADMIN)) { in do_remount() 4280 struct user_namespace *fs_userns = m->mnt_sb->s_user_ns; in can_idmap_mount() 4919 current_in_userns(mnt->mnt_sb->s_user_ns); in mnt_may_suid()
|
D | posix_acl.c | 952 int ret = posix_acl_valid(inode->i_sb->s_user_ns, acl); in set_posix_acl()
|
/Linux-v6.6/security/ |
D | commoncap.c | 408 fs_ns = inode->i_sb->s_user_ns; in cap_inode_getsecurity() 538 *fs_ns = inode->i_sb->s_user_ns; in cap_convert_nscap() 550 if (ns_capable(inode->i_sb->s_user_ns, CAP_SETFCAP)) in cap_convert_nscap() 653 fs_ns = inode->i_sb->s_user_ns; in get_vfs_caps_from_disk() 742 if (!current_in_userns(file->f_path.mnt->mnt_sb->s_user_ns)) in get_file_caps() 992 struct user_namespace *user_ns = dentry->d_sb->s_user_ns; in cap_inode_setxattr() 1033 struct user_namespace *user_ns = dentry->d_sb->s_user_ns; in cap_inode_removexattr()
|
/Linux-v6.6/fs/quota/ |
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()
|
D | dquot.c | 935 if (!qid_has_mapping(sb->s_user_ns, qid)) in dqget() 2393 if (sb->s_user_ns != &init_user_ns) { in dquot_load_quota_sb()
|
/Linux-v6.6/drivers/android/ |
D | binderfs.c | 689 info->root_gid = make_kgid(sb->s_user_ns, 0); in binderfs_fill_super() 692 info->root_uid = make_kuid(sb->s_user_ns, 0); in binderfs_fill_super()
|
/Linux-v6.6/fs/9p/ |
D | acl.c | 165 retval = posix_acl_valid(inode->i_sb->s_user_ns, acl); in v9fs_iop_set_acl()
|
/Linux-v6.6/security/integrity/evm/ |
D | evm_crypto.c | 236 inode->i_sb->s_user_ns != &init_user_ns) in evm_calc_hmac_or_hash()
|
/Linux-v6.6/fs/xfs/ |
D | xfs_itable.c | 63 struct user_namespace *sb_userns = mp->m_super->s_user_ns; in xfs_bulkstat_one_int()
|
D | xfs_icache.c | 1539 icw.icw_uid = make_kuid(mp->m_super->s_user_ns, udqp->q_id); in xfs_blockgc_free_dquots() 1545 icw.icw_gid = make_kgid(mp->m_super->s_user_ns, gdqp->q_id); in xfs_blockgc_free_dquots()
|
D | xfs_qm.c | 1674 struct user_namespace *user_ns = inode->i_sb->s_user_ns; in xfs_qm_vop_dqalloc()
|
D | xfs_trace.h | 4265 __entry->uid = icw ? from_kuid(mp->m_super->s_user_ns, 4267 __entry->gid = icw ? from_kgid(mp->m_super->s_user_ns,
|
/Linux-v6.6/fs/f2fs/ |
D | recovery.c | 258 attr.ia_vfsuid = VFSUIDT_INIT(make_kuid(inode->i_sb->s_user_ns, i_uid)); in recover_quota_data() 259 attr.ia_vfsgid = VFSGIDT_INIT(make_kgid(inode->i_sb->s_user_ns, i_gid)); in recover_quota_data()
|
/Linux-v6.6/include/linux/ |
D | fs.h | 1294 struct user_namespace *s_user_ns; member 1323 return inode->i_sb->s_user_ns; in i_user_ns() 1497 struct user_namespace *fs_userns = sb->s_user_ns; in fsuidgid_has_mapping()
|
/Linux-v6.6/fs/fuse/ |
D | inode.c | 1456 if (sb->s_user_ns != &init_user_ns) in fuse_sb_defaults() 1664 (ctx->file->f_cred->user_ns != sb->s_user_ns)) in fuse_fill_super()
|
/Linux-v6.6/security/smack/ |
D | smack_lsm.c | 828 if (sb->s_user_ns != &init_user_ns && in smack_set_mnt_opts()
|
/Linux-v6.6/Documentation/filesystems/ |
D | idmappings.rst | 381 - filesystem's idmapping (``sb->s_user_ns``)
|
/Linux-v6.6/security/selinux/ |
D | hooks.c | 756 if (sb->s_user_ns != &init_user_ns && in selinux_set_mnt_opts()
|