Home
last modified time | relevance | path

Searched refs:s_user_ns (Results 1 – 19 of 19) sorted by relevance

/Linux-v5.4/fs/
Dattr.c29 ns_capable(inode->i_sb->s_user_ns, CAP_CHOWN)) in chown_ok()
42 ns_capable(inode->i_sb->s_user_ns, CAP_CHOWN)) in chgrp_ok()
315 !kuid_has_mapping(inode->i_sb->s_user_ns, attr->ia_uid)) in notify_change()
318 !kgid_has_mapping(inode->i_sb->s_user_ns, attr->ia_gid)) in notify_change()
Dsuper.c184 put_user_ns(s->s_user_ns); in destroy_unused_super()
211 s->s_user_ns = get_user_ns(user_ns); in alloc_super()
243 if (s->s_user_ns != &init_user_ns) in alloc_super()
297 put_user_ns(s->s_user_ns); in __put_super()
554 if (user_ns != old->s_user_ns) { in sget_fc()
598 if (user_ns != old->s_user_ns) { in sget()
Dioctl.c561 if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN)) in ioctl_fsfreeze()
578 if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN)) in ioctl_fsthaw()
Dfs_context.c279 fc->user_ns = get_user_ns(reference->d_sb->s_user_ns); in alloc_fs_context()
283 fc->user_ns = get_user_ns(reference->d_sb->s_user_ns); in alloc_fs_context()
Dnamei.c2831 struct user_namespace *s_user_ns; in may_create() local
2837 s_user_ns = dir->i_sb->s_user_ns; in may_create()
2838 if (!kuid_has_mapping(s_user_ns, current_fsuid()) || in may_create()
2839 !kgid_has_mapping(s_user_ns, current_fsgid())) in may_create()
3015 struct user_namespace *s_user_ns; in may_o_create() local
3020 s_user_ns = dir->dentry->d_sb->s_user_ns; in may_o_create()
3021 if (!kuid_has_mapping(s_user_ns, current_fsuid()) || in may_o_create()
3022 !kgid_has_mapping(s_user_ns, current_fsgid())) in may_o_create()
Dfsopen.c249 if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN)) { in vfs_fsconfig_locked()
Dnamespace.c1009 if (mountpoint->d_sb->s_user_ns != &init_user_ns) in vfs_submount()
1569 if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN)) in do_umount()
2552 if (ns_capable(sb->s_user_ns, CAP_SYS_ADMIN)) { in do_remount()
3940 current_in_userns(mnt->mnt_sb->s_user_ns); in mnt_may_suid()
Dposix_acl.c871 int ret = posix_acl_valid(inode->i_sb->s_user_ns, acl); in set_posix_acl()
/Linux-v5.4/security/
Dcommoncap.c396 fs_ns = inode->i_sb->s_user_ns; in cap_inode_getsecurity()
484 *fs_ns = inode->i_sb->s_user_ns; in cap_convert_nscap()
495 if (ns_capable(inode->i_sb->s_user_ns, CAP_SETFCAP)) in cap_convert_nscap()
587 fs_ns = inode->i_sb->s_user_ns; in get_vfs_caps_from_disk()
668 if (!current_in_userns(bprm->file->f_path.mnt->mnt_sb->s_user_ns)) in get_file_caps()
914 struct user_namespace *user_ns = dentry->d_sb->s_user_ns; in cap_inode_setxattr()
946 struct user_namespace *user_ns = dentry->d_sb->s_user_ns; in cap_inode_removexattr()
/Linux-v5.4/fs/quota/
Dquota.c210 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_getquota()
236 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_getnextquota()
287 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_setquota()
572 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_setxquota()
575 if (from_kqid(sb->s_user_ns, qid) == 0 && in quota_setxquota()
633 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_getxquota()
660 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_getnextxquota()
Ddquot.c852 if (!qid_has_mapping(sb->s_user_ns, qid)) in dqget()
2330 if (sb->s_user_ns != &init_user_ns) { in vfs_load_quota_inode()
/Linux-v5.4/drivers/android/
Dbinderfs.c692 info->root_gid = make_kgid(sb->s_user_ns, 0); in binderfs_fill_super()
695 info->root_uid = make_kuid(sb->s_user_ns, 0); in binderfs_fill_super()
/Linux-v5.4/fs/fuse/
Dinode.c1153 if (sb->s_user_ns != &init_user_ns) in fuse_fill_super_common()
1160 if (sb->s_user_ns != &init_user_ns) in fuse_fill_super_common()
1239 (file->f_cred->user_ns != sb->s_user_ns)) in fuse_fill_super()
1248 fuse_conn_init(fc, sb->s_user_ns, &fuse_dev_fiq_ops, NULL); in fuse_fill_super()
/Linux-v5.4/security/integrity/evm/
Devm_crypto.c202 inode->i_sb->s_user_ns != &init_user_ns) in evm_calc_hmac_or_hash()
/Linux-v5.4/fs/9p/
Dacl.c269 retval = posix_acl_valid(inode->i_sb->s_user_ns, acl); in v9fs_xattr_set_acl()
/Linux-v5.4/fs/f2fs/
Drecovery.c207 attr.ia_uid = make_kuid(inode->i_sb->s_user_ns, i_uid); in recover_quota_data()
208 attr.ia_gid = make_kgid(inode->i_sb->s_user_ns, i_gid); in recover_quota_data()
/Linux-v5.4/include/linux/
Dfs.h1526 struct user_namespace *s_user_ns; member
1560 return from_kuid(inode->i_sb->s_user_ns, inode->i_uid); in i_uid_read()
1565 return from_kgid(inode->i_sb->s_user_ns, inode->i_gid); in i_gid_read()
1570 inode->i_uid = make_kuid(inode->i_sb->s_user_ns, uid); in i_uid_write()
1575 inode->i_gid = make_kgid(inode->i_sb->s_user_ns, gid); in i_gid_write()
/Linux-v5.4/security/smack/
Dsmack_lsm.c817 if (sb->s_user_ns != &init_user_ns && in smack_set_mnt_opts()
/Linux-v5.4/security/selinux/
Dhooks.c781 if (sb->s_user_ns != &init_user_ns && in selinux_set_mnt_opts()