• Home
  • Raw
  • Download

Lines Matching refs:cred

122 	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()
249 who = cred->uid; in SYSCALL_DEFINE2()
250 else if ((who != cred->uid) && in SYSCALL_DEFINE2()
261 if (who != cred->uid) in SYSCALL_DEFINE2()
484 const struct cred *old; in SYSCALL_DEFINE2()
485 struct cred *new; in SYSCALL_DEFINE2()
535 const struct cred *old; in SYSCALL_DEFINE1()
536 struct cred *new; in SYSCALL_DEFINE1()
566 static int set_user(struct cred *new) in set_user()
608 const struct cred *old; in SYSCALL_DEFINE2()
609 struct cred *new; in SYSCALL_DEFINE2()
673 const struct cred *old; in SYSCALL_DEFINE1()
674 struct cred *new; in SYSCALL_DEFINE1()
718 const struct cred *old; in SYSCALL_DEFINE3()
719 struct cred *new; in SYSCALL_DEFINE3()
771 const struct cred *cred = current_cred(); in SYSCALL_DEFINE3() local
774 if (!(retval = put_user(cred->uid, ruid)) && in SYSCALL_DEFINE3()
775 !(retval = put_user(cred->euid, euid))) in SYSCALL_DEFINE3()
776 retval = put_user(cred->suid, suid); in SYSCALL_DEFINE3()
786 const struct cred *old; in SYSCALL_DEFINE3()
787 struct cred *new; in SYSCALL_DEFINE3()
829 const struct cred *cred = current_cred(); in SYSCALL_DEFINE3() local
832 if (!(retval = put_user(cred->gid, rgid)) && in SYSCALL_DEFINE3()
833 !(retval = put_user(cred->egid, egid))) in SYSCALL_DEFINE3()
834 retval = put_user(cred->sgid, sgid); in SYSCALL_DEFINE3()
848 const struct cred *old; in SYSCALL_DEFINE1()
849 struct cred *new; in SYSCALL_DEFINE1()
885 const struct cred *old; in SYSCALL_DEFINE1()
886 struct cred *new; in SYSCALL_DEFINE1()
1280 int set_groups(struct cred *new, struct group_info *group_info) in set_groups()
1306 struct cred *new; in set_current_groups()
1326 const struct cred *cred = current_cred(); in SYSCALL_DEFINE2() local
1333 i = cred->group_info->ngroups; in SYSCALL_DEFINE2()
1339 if (groups_to_user(grouplist, cred->group_info)) { in SYSCALL_DEFINE2()
1383 const struct cred *cred = current_cred(); in in_group_p() local
1386 if (grp != cred->fsgid) in in_group_p()
1387 retval = groups_search(cred->group_info, grp); in in_group_p()
1395 const struct cred *cred = current_cred(); in in_egroup_p() local
1398 if (grp != cred->egid) in in_egroup_p()
1399 retval = groups_search(cred->group_info, grp); in in_egroup_p()