Home
last modified time | relevance | path

Searched refs:cred (Results 1 – 18 of 18) sorted by relevance

/kernel/
Dcred.c37 struct cred init_cred = {
71 static void release_tgcred(struct cred *cred) in release_tgcred() argument
74 struct thread_group_cred *tgcred = cred->tgcred; in release_tgcred()
86 struct cred *cred = container_of(rcu, struct cred, rcu); in put_cred_rcu() local
88 if (atomic_read(&cred->usage) != 0) in put_cred_rcu()
90 cred, atomic_read(&cred->usage)); in put_cred_rcu()
92 security_cred_free(cred); in put_cred_rcu()
93 key_put(cred->thread_keyring); in put_cred_rcu()
94 key_put(cred->request_key_auth); in put_cred_rcu()
95 release_tgcred(cred); in put_cred_rcu()
[all …]
Duid16.c87 const struct cred *cred = current_cred(); in SYSCALL_DEFINE3() local
90 if (!(retval = put_user(high2lowuid(cred->uid), ruid)) && in SYSCALL_DEFINE3()
91 !(retval = put_user(high2lowuid(cred->euid), euid))) in SYSCALL_DEFINE3()
92 retval = put_user(high2lowuid(cred->suid), suid); in SYSCALL_DEFINE3()
109 const struct cred *cred = current_cred(); in SYSCALL_DEFINE3() local
112 if (!(retval = put_user(high2lowgid(cred->gid), rgid)) && in SYSCALL_DEFINE3()
113 !(retval = put_user(high2lowgid(cred->egid), egid))) in SYSCALL_DEFINE3()
114 retval = put_user(high2lowgid(cred->sgid), sgid); in SYSCALL_DEFINE3()
167 const struct cred *cred = current_cred(); in SYSCALL_DEFINE2() local
173 i = cred->group_info->ngroups; in SYSCALL_DEFINE2()
[all …]
Dsys.c122 const struct cred *cred = current_cred(), *pcred = __task_cred(p); in set_one_prio() local
125 if (pcred->uid != cred->euid && in set_one_prio()
126 pcred->euid != cred->euid && !capable(CAP_SYS_NICE)) { in set_one_prio()
150 const struct cred *cred = current_cred(); in SYSCALL_DEFINE3() local
184 user = (struct user_struct *) cred->user; in SYSCALL_DEFINE3()
186 who = cred->uid; in SYSCALL_DEFINE3()
187 else if ((who != cred->uid) && in SYSCALL_DEFINE3()
195 if (who != cred->uid) in SYSCALL_DEFINE3()
215 const struct cred *cred = current_cred(); in SYSCALL_DEFINE2() local
247 user = (struct user_struct *) cred->user; in SYSCALL_DEFINE2()
[all …]
Dkmod.c121 struct cred *cred; member
139 BUG_ON(atomic_read(&sub_info->cred->usage) != 1); in ____call_usermodehelper()
149 commit_creds(sub_info->cred); in ____call_usermodehelper()
150 sub_info->cred = NULL; in ____call_usermodehelper()
189 if (info->cred) in call_usermodehelper_freeinfo()
190 put_cred(info->cred); in call_usermodehelper_freeinfo()
246 BUG_ON(atomic_read(&sub_info->cred->usage) != 1); in __call_usermodehelper()
370 sub_info->cred = prepare_usermodehelper_creds(); in call_usermodehelper_setup()
371 if (!sub_info->cred) in call_usermodehelper_setup()
388 struct thread_group_cred *tgcred = info->cred->tgcred; in call_usermodehelper_setkeys()
[all …]
Dfutex_compat.c138 const struct cred *cred = current_cred(), *pcred; in compat_sys_get_robust_list() local
155 if (cred->euid != pcred->euid && in compat_sys_get_robust_list()
156 cred->euid != pcred->uid && in compat_sys_get_robust_list()
Dptrace.c130 const struct cred *cred = current_cred(), *tcred; in __ptrace_may_access() local
146 if ((cred->uid != tcred->euid || in __ptrace_may_access()
147 cred->uid != tcred->suid || in __ptrace_may_access()
148 cred->uid != tcred->uid || in __ptrace_may_access()
149 cred->gid != tcred->egid || in __ptrace_may_access()
150 cred->gid != tcred->sgid || in __ptrace_may_access()
151 cred->gid != tcred->gid) && in __ptrace_may_access()
Dauditsc.c440 const struct cred *cred = get_task_cred(tsk); in audit_filter_rules() local
460 result = audit_comparator(cred->uid, f->op, f->val); in audit_filter_rules()
463 result = audit_comparator(cred->euid, f->op, f->val); in audit_filter_rules()
466 result = audit_comparator(cred->suid, f->op, f->val); in audit_filter_rules()
469 result = audit_comparator(cred->fsuid, f->op, f->val); in audit_filter_rules()
472 result = audit_comparator(cred->gid, f->op, f->val); in audit_filter_rules()
475 result = audit_comparator(cred->egid, f->op, f->val); in audit_filter_rules()
478 result = audit_comparator(cred->sgid, f->op, f->val); in audit_filter_rules()
481 result = audit_comparator(cred->fsgid, f->op, f->val); in audit_filter_rules()
629 put_cred(cred); in audit_filter_rules()
[all …]
Dcgroup_freezer.c167 const struct cred *cred = current_cred(), *tcred; in freezer_can_attach() local
170 if (cred->euid != tcred->uid && cred->euid != tcred->suid) in freezer_can_attach()
Dfutex.c444 const struct cred *cred = current_cred(), *pcred; in futex_find_get_task() local
452 if (cred->euid != pcred->euid && in futex_find_get_task()
453 cred->euid != pcred->uid) in futex_find_get_task()
1799 const struct cred *cred = current_cred(), *pcred; in SYSCALL_DEFINE3() local
1816 if (cred->euid != pcred->euid && in SYSCALL_DEFINE3()
1817 cred->euid != pcred->uid && in SYSCALL_DEFINE3()
Duser_namespace.c22 int create_user_ns(struct cred *new) in create_user_ns()
Dsignal.c580 const struct cred *cred = current_cred(), *tcred; in check_kill_permission() local
595 if ((cred->euid ^ tcred->suid) && in check_kill_permission()
596 (cred->euid ^ tcred->uid) && in check_kill_permission()
597 (cred->uid ^ tcred->suid) && in check_kill_permission()
598 (cred->uid ^ tcred->uid) && in check_kill_permission()
1111 const struct cred *pcred; in kill_pid_info_as_uid()
Dcapability.c243 struct cred *new; in SYSCALL_DEFINE2()
Dtsacct.c30 const struct cred *tcred; in bacct_add_tsk()
Dcpuset.c1361 const struct cred *cred = current_cred(), *tcred; in cpuset_can_attach() local
1363 if (cred->euid != tcred->uid && cred->euid != tcred->suid) in cpuset_can_attach()
DMakefile12 notifier.o ksysfs.o pm_qos_params.o sched_clock.o cred.o \
Dfork.c155 put_cred(tsk->cred); in __put_task_struct()
1315 atomic_dec(&p->cred->user->processes); in copy_process()
1317 put_cred(p->cred); in copy_process()
Dcgroup.c1244 const struct cred *cred = current_cred(), *tcred; in cgroup_attach_task() local
1248 if (cred->euid != tcred->uid && in cgroup_attach_task()
1249 cred->euid != tcred->suid) { in cgroup_attach_task()
Dsched.c5306 const struct cred *cred = current_cred(), *pcred; in check_same_owner() local
5311 match = (cred->euid == pcred->euid || in check_same_owner()
5312 cred->euid == pcred->uid); in check_same_owner()
9398 const struct cred *cred = current_cred(), *tcred; in cpu_cgroup_can_attach() local
9402 if (cred->euid != tcred->uid && cred->euid != tcred->suid) in cpu_cgroup_can_attach()