Lines Matching refs:cred
378 const struct cred *cred, in audit_field_compare() argument
386 return audit_compare_uid(cred->uid, name, f, ctx); in audit_field_compare()
388 return audit_compare_gid(cred->gid, name, f, ctx); in audit_field_compare()
390 return audit_compare_uid(cred->euid, name, f, ctx); in audit_field_compare()
392 return audit_compare_gid(cred->egid, name, f, ctx); in audit_field_compare()
396 return audit_compare_uid(cred->suid, name, f, ctx); in audit_field_compare()
398 return audit_compare_gid(cred->sgid, name, f, ctx); in audit_field_compare()
400 return audit_compare_uid(cred->fsuid, name, f, ctx); in audit_field_compare()
402 return audit_compare_gid(cred->fsgid, name, f, ctx); in audit_field_compare()
405 return audit_uid_comparator(cred->uid, f->op, in audit_field_compare()
408 return audit_uid_comparator(cred->uid, f->op, cred->euid); in audit_field_compare()
410 return audit_uid_comparator(cred->uid, f->op, cred->suid); in audit_field_compare()
412 return audit_uid_comparator(cred->uid, f->op, cred->fsuid); in audit_field_compare()
416 cred->euid); in audit_field_compare()
419 cred->suid); in audit_field_compare()
422 cred->fsuid); in audit_field_compare()
425 return audit_uid_comparator(cred->euid, f->op, cred->suid); in audit_field_compare()
427 return audit_uid_comparator(cred->euid, f->op, cred->fsuid); in audit_field_compare()
430 return audit_uid_comparator(cred->suid, f->op, cred->fsuid); in audit_field_compare()
433 return audit_gid_comparator(cred->gid, f->op, cred->egid); in audit_field_compare()
435 return audit_gid_comparator(cred->gid, f->op, cred->sgid); in audit_field_compare()
437 return audit_gid_comparator(cred->gid, f->op, cred->fsgid); in audit_field_compare()
440 return audit_gid_comparator(cred->egid, f->op, cred->sgid); in audit_field_compare()
442 return audit_gid_comparator(cred->egid, f->op, cred->fsgid); in audit_field_compare()
445 return audit_gid_comparator(cred->sgid, f->op, cred->fsgid); in audit_field_compare()
468 const struct cred *cred; in audit_filter_rules() local
476 cred = rcu_dereference_check(tsk->cred, tsk == current || task_creation); in audit_filter_rules()
502 result = audit_uid_comparator(cred->uid, f->op, f->uid); in audit_filter_rules()
505 result = audit_uid_comparator(cred->euid, f->op, f->uid); in audit_filter_rules()
508 result = audit_uid_comparator(cred->suid, f->op, f->uid); in audit_filter_rules()
511 result = audit_uid_comparator(cred->fsuid, f->op, f->uid); in audit_filter_rules()
514 result = audit_gid_comparator(cred->gid, f->op, f->gid); in audit_filter_rules()
517 result = groups_search(cred->group_info, f->gid); in audit_filter_rules()
520 result = !groups_search(cred->group_info, f->gid); in audit_filter_rules()
524 result = audit_gid_comparator(cred->egid, f->op, f->gid); in audit_filter_rules()
527 result = groups_search(cred->group_info, f->gid); in audit_filter_rules()
530 result = !groups_search(cred->group_info, f->gid); in audit_filter_rules()
534 result = audit_gid_comparator(cred->sgid, f->op, f->gid); in audit_filter_rules()
537 result = audit_gid_comparator(cred->fsgid, f->op, f->gid); in audit_filter_rules()
744 result = audit_field_compare(tsk, cred, f, ctx, name); in audit_filter_rules()
1643 const struct cred *cred; in audit_log_uring() local
1648 cred = current_cred(); in audit_log_uring()
1661 from_kuid(&init_user_ns, cred->uid), in audit_log_uring()
1662 from_kgid(&init_user_ns, cred->gid), in audit_log_uring()
1663 from_kuid(&init_user_ns, cred->euid), in audit_log_uring()
1664 from_kuid(&init_user_ns, cred->suid), in audit_log_uring()
1665 from_kuid(&init_user_ns, cred->fsuid), in audit_log_uring()
1666 from_kgid(&init_user_ns, cred->egid), in audit_log_uring()
1667 from_kgid(&init_user_ns, cred->sgid), in audit_log_uring()
1668 from_kgid(&init_user_ns, cred->fsgid)); in audit_log_uring()
2795 const struct cred *new, const struct cred *old) in __audit_log_bprm_fcaps()
2838 void __audit_log_capset(const struct cred *new, const struct cred *old) in __audit_log_capset()