Home
last modified time | relevance | path

Searched refs:init_user_ns (Results 1 – 25 of 184) sorted by relevance

12345678

/linux/security/tomoyo/
H A Daudit.c171 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 …]
H A Dcondition.c841 value = from_kuid(&init_user_ns, current_uid()); in tomoyo_condition()
844 value = from_kuid(&init_user_ns, current_euid()); in tomoyo_condition()
847 value = from_kuid(&init_user_ns, current_suid()); in tomoyo_condition()
850 value = from_kuid(&init_user_ns, current_fsuid()); in tomoyo_condition()
853 value = from_kgid(&init_user_ns, current_gid()); in tomoyo_condition()
856 value = from_kgid(&init_user_ns, current_egid()); in tomoyo_condition()
859 value = from_kgid(&init_user_ns, current_sgid()); in tomoyo_condition()
862 value = from_kgid(&init_user_ns, current_fsgid()); in tomoyo_condition()
999 value = from_kuid(&init_user_ns, stat->uid); in tomoyo_condition()
1005 value = from_kgid(&init_user_ns, stat->gid); in tomoyo_condition()
/linux/fs/smb/server/
H A Dsmbacl.h111 vfsuid = make_vfsuid(idmap, &init_user_ns, pace->e_uid); in posix_acl_uid_translate()
114 return from_kuid(&init_user_ns, vfsuid_into_kuid(vfsuid)); in posix_acl_uid_translate()
123 vfsgid = make_vfsgid(idmap, &init_user_ns, pace->e_gid); in posix_acl_gid_translate()
126 return from_kgid(&init_user_ns, vfsgid_into_kgid(vfsgid)); in posix_acl_gid_translate()
/linux/fs/nfs_common/
H A Dnfsacl.c62 *p++ = htonl(from_kuid(&init_user_ns, nfsacl_desc->uid)); in xdr_nfsace_encode()
65 *p++ = htonl(from_kgid(&init_user_ns, nfsacl_desc->gid)); in xdr_nfsace_encode()
68 *p++ = htonl(from_kuid(&init_user_ns, entry->e_uid)); in xdr_nfsace_encode()
71 *p++ = htonl(from_kgid(&init_user_ns, entry->e_gid)); in xdr_nfsace_encode()
242 entry->e_uid = make_kuid(&init_user_ns, id); in xdr_nfsace_decode()
247 entry->e_gid = make_kgid(&init_user_ns, id); in xdr_nfsace_decode()
/linux/fs/coda/
H A Dcoda_linux.c116 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()
190 vattr->va_uid = (vuid_t) from_kuid(&init_user_ns, iattr->ia_uid); in coda_iattr_to_vattr()
193 vattr->va_gid = (vgid_t) from_kgid(&init_user_ns, iattr->ia_gid); in coda_iattr_to_vattr()
/linux/kernel/
H A Duser.c37 struct user_namespace init_user_ns = { variable
77 .keyring_name_list = LIST_HEAD_INIT(init_user_ns.keyring_name_list),
78 .keyring_sem = __RWSEM_INITIALIZER(init_user_ns.keyring_sem),
84 EXPORT_SYMBOL_GPL(init_user_ns);
H A Daudit.c1045 if (current_user_ns() != &init_user_ns) in audit_netlink_ok()
1089 uid_t uid = from_kuid(&init_user_ns, current_uid()); in audit_log_common_recv_msg()
1488 sig_data->uid = from_kuid(&init_user_ns, audit_sig_uid); in audit_receive_msg()
1617 from_kuid(&init_user_ns, cred->uid), in audit_log_multicast()
1618 from_kuid(&init_user_ns, audit_get_loginuid(current)), in audit_log_multicast()
2166 uid_t auid = from_kuid(&init_user_ns, audit_get_loginuid(current)); in audit_log_session_info()
2261 from_kuid(&init_user_ns, audit_get_loginuid(current)), in audit_log_task_info()
2262 from_kuid(&init_user_ns, cred->uid), in audit_log_task_info()
2263 from_kgid(&init_user_ns, cred->gid), in audit_log_task_info()
2264 from_kuid(&init_user_ns, cred->euid), in audit_log_task_info()
[all …]
H A Dcapability.c304 return has_ns_capability(t, &init_user_ns, cap); in has_capability()
347 return has_ns_capability_noaudit(t, &init_user_ns, cap); in has_capability_noaudit()
436 return ns_capable(&init_user_ns, cap); in capable()
/linux/fs/ext2/
H A Dacl.c63 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()
/linux/fs/ceph/
H A Dacl.c73 acl = posix_acl_from_xattr(&init_user_ns, value, size); in ceph_get_acl()
136 ret = posix_acl_to_xattr(&init_user_ns, acl, value, size); in ceph_set_acl()
221 err = posix_acl_to_xattr(&init_user_ns, acl, in ceph_pre_init_acls()
235 err = posix_acl_to_xattr(&init_user_ns, default_acl, in ceph_pre_init_acls()
/linux/security/ipe/
H A Dfs.c38 if (!file_ns_capable(f, &init_user_ns, CAP_MAC_ADMIN)) in setaudit()
86 if (!file_ns_capable(f, &init_user_ns, CAP_MAC_ADMIN)) in setenforce()
144 if (!file_ns_capable(f, &init_user_ns, CAP_MAC_ADMIN)) in new_policy()
H A Daudit.c244 from_kuid(&init_user_ns, audit_get_loginuid(current)), in ipe_audit_policy_activation()
265 from_kuid(&init_user_ns, audit_get_loginuid(current)), in ipe_audit_policy_load()
288 from_kuid(&init_user_ns, audit_get_loginuid(current)), in ipe_audit_enforce()
/linux/fs/ext4/
H A Dacl.c62 make_kuid(&init_user_ns, in ext4_acl_from_disk()
70 make_kgid(&init_user_ns, in ext4_acl_from_disk()
112 from_kuid(&init_user_ns, acl_e->e_uid)); in ext4_acl_to_disk()
117 from_kgid(&init_user_ns, acl_e->e_gid)); in ext4_acl_to_disk()
/linux/security/integrity/
H A Dintegrity_audit.c52 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()
/linux/fs/jffs2/
H A Dacl.c104 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()
/linux/fs/quota/
H A Dnetlink.c67 from_kqid_munged(&init_user_ns, qid), in quota_send_warning()
81 from_kuid_munged(&init_user_ns, current_uid()), in quota_send_warning()
/linux/mm/
H A Dshmem_quota.c118 qid_t id = from_kqid(&init_user_ns, *qid); in shmem_get_next_id()
154 *qid = make_kqid(&init_user_ns, qid->type, entry->id); in shmem_get_next_id()
171 qid_t id = from_kqid(&init_user_ns, dquot->dq_id); in shmem_acquire_dquot()
269 qid_t id = from_kqid(&init_user_ns, dquot->dq_id); in shmem_release_dquot()
/linux/fs/orangefs/
H A Dorangefs-utils.c145 attrs->owner = from_kuid(&init_user_ns, inode->i_uid); in copy_attributes_from_inode()
150 attrs->group = from_kgid(&init_user_ns, inode->i_gid); in copy_attributes_from_inode()
356 inode->i_uid = make_kuid(&init_user_ns, new_op-> in orangefs_inode_getattr()
358 inode->i_gid = make_kgid(&init_user_ns, new_op-> in orangefs_inode_getattr()
428 new_op->upcall.uid = from_kuid(&init_user_ns, orangefs_inode->attr_uid); in orangefs_inode_setattr()
429 new_op->upcall.gid = from_kgid(&init_user_ns, orangefs_inode->attr_gid); in orangefs_inode_setattr()
H A Dorangefs-cache.c142 new_op->upcall.uid = from_kuid(&init_user_ns, in op_alloc()
145 new_op->upcall.gid = from_kgid(&init_user_ns, in op_alloc()
H A Dacl.c53 acl = posix_acl_from_xattr(&init_user_ns, value, ret); in orangefs_get_acl()
98 error = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __orangefs_set_acl()
/linux/fs/ocfs2/
H A Dquota_global.c101 d->dqb_id = cpu_to_le32(from_kqid(&init_user_ns, dquot->dq_id)); in ocfs2_global_mem2diskdqb()
123 return qid_eq(make_kqid(&init_user_ns, dquot->dq_id.type, in ocfs2_global_is_id()
523 trace_ocfs2_sync_dquot(from_kqid(&init_user_ns, dquot->dq_id), in __ocfs2_sync_dquot()
576 (unsigned)from_kqid(&init_user_ns, dquot->dq_id)); in __ocfs2_sync_dquot()
612 trace_ocfs2_sync_dquot_helper(from_kqid(&init_user_ns, dquot->dq_id), in ocfs2_sync_dquot_helper()
676 trace_ocfs2_write_dquot(from_kqid(&init_user_ns, dquot->dq_id), in ocfs2_write_dquot()
738 trace_ocfs2_release_dquot(from_kqid(&init_user_ns, dquot->dq_id), in ocfs2_release_dquot()
816 trace_ocfs2_acquire_dquot(from_kqid(&init_user_ns, dquot->dq_id), in ocfs2_acquire_dquot()
895 trace_ocfs2_get_next_id(from_kqid(&init_user_ns, *qid), type); in ocfs2_get_next_id()
937 trace_ocfs2_mark_dquot_dirty(from_kqid(&init_user_ns, dquot->dq_id), in ocfs2_mark_dquot_dirty()
H A Dacl.c57 make_kuid(&init_user_ns, in ocfs2_acl_from_xattr()
62 make_kgid(&init_user_ns, in ocfs2_acl_from_xattr()
96 from_kuid(&init_user_ns, in ocfs2_acl_to_xattr()
101 from_kgid(&init_user_ns, in ocfs2_acl_to_xattr()
/linux/fs/btrfs/
H A Dacl.c47 acl = posix_acl_from_xattr(&init_user_ns, value, size); in btrfs_get_acl()
93 ret = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __btrfs_set_acl()
/linux/fs/nfsd/
H A Dflexfilelayout.c54 u = from_kuid(&init_user_ns, inode->i_uid) + 1; in nfsd4_ff_proc_layoutget()
55 fl->uid = make_kuid(&init_user_ns, u); in nfsd4_ff_proc_layoutget()
H A Dflexfilelayoutxdr.c35 uid.len = sprintf(uid.buf, "%u", from_kuid(&init_user_ns, fl->uid)); in nfsd4_ff_encode_layoutget()
36 gid.len = sprintf(gid.buf, "%u", from_kgid(&init_user_ns, fl->gid)); in nfsd4_ff_encode_layoutget()

12345678