Home
last modified time | relevance | path

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

123456789

/linux-6.12.1/security/tomoyo/
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 …]
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-6.12.1/fs/smb/server/
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-6.12.1/fs/nfs_common/
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-6.12.1/fs/coda/
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-6.12.1/kernel/
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);
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()
1487 sig_data->uid = from_kuid(&init_user_ns, audit_sig_uid); in audit_receive_msg()
1616 from_kuid(&init_user_ns, cred->uid), in audit_log_multicast()
1617 from_kuid(&init_user_ns, audit_get_loginuid(current)), in audit_log_multicast()
2165 uid_t auid = from_kuid(&init_user_ns, audit_get_loginuid(current)); in audit_log_session_info()
2260 from_kuid(&init_user_ns, audit_get_loginuid(current)), in audit_log_task_info()
2261 from_kuid(&init_user_ns, cred->uid), in audit_log_task_info()
2262 from_kgid(&init_user_ns, cred->gid), in audit_log_task_info()
2263 from_kuid(&init_user_ns, cred->euid), in audit_log_task_info()
[all …]
/linux-6.12.1/fs/ext2/
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-6.12.1/fs/xfs/
Dxfs_acl.c74 acl_e->e_uid = make_kuid(&init_user_ns, in xfs_acl_from_disk()
78 acl_e->e_gid = make_kgid(&init_user_ns, in xfs_acl_from_disk()
113 from_kuid(&init_user_ns, acl_e->e_uid)); in xfs_acl_to_disk()
117 from_kgid(&init_user_ns, acl_e->e_gid)); in xfs_acl_to_disk()
/linux-6.12.1/fs/ceph/
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-6.12.1/security/integrity/
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-6.12.1/security/ipe/
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()
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-6.12.1/fs/ext4/
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-6.12.1/fs/jffs2/
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-6.12.1/fs/quota/
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-6.12.1/fs/reiserfs/
Dxattr_acl.c110 make_kuid(&init_user_ns, in reiserfs_posix_acl_from_disk()
118 make_kgid(&init_user_ns, in reiserfs_posix_acl_from_disk()
161 from_kuid(&init_user_ns, acl_e->e_uid)); in reiserfs_posix_acl_to_disk()
166 from_kgid(&init_user_ns, acl_e->e_gid)); in reiserfs_posix_acl_to_disk()
/linux-6.12.1/mm/
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-6.12.1/fs/orangefs/
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()
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()
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-6.12.1/fs/btrfs/
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-6.12.1/fs/ocfs2/
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()
/linux-6.12.1/fs/nfsd/
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()
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()

123456789