Searched refs:s_user_ns (Results 1 – 14 of 14) sorted by relevance
/fs/ |
D | attr.c | 88 ns_capable(inode->i_sb->s_user_ns, CAP_CHOWN)) in chown_ok() 101 ns_capable(inode->i_sb->s_user_ns, CAP_CHOWN)) in chgrp_ok() 388 !kuid_has_mapping(inode->i_sb->s_user_ns, attr->ia_uid)) in notify_change() 391 !kgid_has_mapping(inode->i_sb->s_user_ns, attr->ia_gid)) in notify_change()
|
D | super.c | 184 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() 557 if (user_ns != old->s_user_ns) { in sget_fc() 601 if (user_ns != old->s_user_ns) { in sget()
|
D | fs_context.c | 253 fc->user_ns = get_user_ns(reference->d_sb->s_user_ns); in alloc_fs_context() 257 fc->user_ns = get_user_ns(reference->d_sb->s_user_ns); in alloc_fs_context()
|
D | ioctl.c | 594 if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN)) in ioctl_fsfreeze() 611 if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN)) in ioctl_fsthaw()
|
D | namei.c | 2828 struct user_namespace *s_user_ns; in may_create() local 2834 s_user_ns = dir->i_sb->s_user_ns; in may_create() 2835 if (!kuid_has_mapping(s_user_ns, current_fsuid()) || in may_create() 2836 !kgid_has_mapping(s_user_ns, current_fsgid())) in may_create() 3071 struct user_namespace *s_user_ns; in may_o_create() local 3076 s_user_ns = dir->dentry->d_sb->s_user_ns; in may_o_create() 3077 if (!kuid_has_mapping(s_user_ns, current_fsuid()) || in may_o_create() 3078 !kgid_has_mapping(s_user_ns, current_fsgid())) in may_o_create()
|
D | fsopen.c | 249 if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN)) { in vfs_fsconfig_locked()
|
D | namespace.c | 1025 if (mountpoint->d_sb->s_user_ns != &init_user_ns) in vfs_submount() 1622 if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN)) in do_umount() 2640 if (ns_capable(sb->s_user_ns, CAP_SYS_ADMIN)) { in do_remount() 4062 current_in_userns(mnt->mnt_sb->s_user_ns); in mnt_may_suid()
|
D | posix_acl.c | 874 int ret = posix_acl_valid(inode->i_sb->s_user_ns, acl); in set_posix_acl()
|
/fs/quota/ |
D | quota.c | 209 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_getquota() 245 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_getnextquota() 304 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_setquota() 632 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_setxquota() 635 if (from_kqid(sb->s_user_ns, qid) == 0 && in quota_setxquota() 712 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_getxquota() 739 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_getnextxquota()
|
D | dquot.c | 937 if (!qid_has_mapping(sb->s_user_ns, qid)) in dqget() 2455 if (sb->s_user_ns != &init_user_ns) { in dquot_load_quota_sb()
|
/fs/fuse/ |
D | inode.c | 1298 if (sb->s_user_ns != &init_user_ns) in fuse_sb_defaults() 1306 if (sb->s_user_ns != &init_user_ns) in fuse_sb_defaults() 1467 (file->f_cred->user_ns != sb->s_user_ns)) in fuse_fill_super() 1482 fuse_conn_init(fc, fm, sb->s_user_ns, &fuse_dev_fiq_ops, NULL); in fuse_fill_super()
|
/fs/9p/ |
D | acl.c | 270 retval = posix_acl_valid(inode->i_sb->s_user_ns, acl); in v9fs_xattr_set_acl()
|
/fs/f2fs/ |
D | recovery.c | 252 attr.ia_uid = make_kuid(inode->i_sb->s_user_ns, i_uid); in recover_quota_data() 253 attr.ia_gid = make_kgid(inode->i_sb->s_user_ns, i_gid); in recover_quota_data()
|
/fs/xfs/ |
D | xfs_qm.c | 1643 struct user_namespace *user_ns = inode->i_sb->s_user_ns; in xfs_qm_vop_dqalloc()
|