• Home
  • Raw
  • Download

Lines Matching refs:tclass

290 static char *get_class_info(sepol_security_class_t tclass,  in get_class_info()  argument
344 policydb->p_class_val_to_name[tclass - 1]); in get_class_info()
353 sepol_av_to_string(policydb, tclass, in get_class_info()
389 sepol_security_class_t tclass, in constraint_expr_eval_reason() argument
427 class_buf = get_class_info(tclass, constraint, xcontext); in constraint_expr_eval_reason()
831 sepol_security_class_t tclass,
840 sepol_security_class_t tclass, in type_attribute_bounds_av() argument
871 tclass, in type_attribute_bounds_av()
895 sepol_security_class_t tclass, in context_struct_compute_av() argument
911 if (!tclass || tclass > policydb->p_classes.nprim) { in context_struct_compute_av()
912 ERR(NULL, "unrecognized class %d", tclass); in context_struct_compute_av()
915 tclass_datum = policydb->class_val_to_struct[tclass - 1]; in context_struct_compute_av()
932 avkey.target_class = tclass; in context_struct_compute_av()
974 tclass, constraint, r_buf, flags)) { in context_struct_compute_av()
992 if (tclass == SECCLASS_PROCESS && in context_struct_compute_av()
1011 type_attribute_bounds_av(scontext, tcontext, tclass, requested, avd, in context_struct_compute_av()
1019 sepol_security_class_t tclass) in sepol_validate_transition() argument
1027 if (!tclass || tclass > policydb->p_classes.nprim) { in sepol_validate_transition()
1028 ERR(NULL, "unrecognized class %d", tclass); in sepol_validate_transition()
1031 tclass_datum = policydb->class_val_to_struct[tclass - 1]; in sepol_validate_transition()
1070 sepol_security_class_t tclass, in sepol_validate_transition_reason_buffer() argument
1080 if (!tclass || tclass > policydb->p_classes.nprim) { in sepol_validate_transition_reason_buffer()
1081 ERR(NULL, "unrecognized class %d", tclass); in sepol_validate_transition_reason_buffer()
1084 tclass_datum = policydb->class_val_to_struct[tclass - 1]; in sepol_validate_transition_reason_buffer()
1117 tclass, constraint, reason_buf, flags)) { in sepol_validate_transition_reason_buffer()
1127 sepol_security_class_t tclass, in sepol_compute_av_reason() argument
1148 rc = context_struct_compute_av(scontext, tcontext, tclass, in sepol_compute_av_reason()
1161 sepol_security_class_t tclass, in sepol_compute_av_reason_buffer() argument
1195 rc = context_struct_compute_av(scontext, tcontext, tclass, in sepol_compute_av_reason_buffer()
1203 sepol_security_class_t tclass, in sepol_compute_av() argument
1208 return sepol_compute_av_reason(ssid, tsid, tclass, requested, avd, in sepol_compute_av()
1217 sepol_security_class_t *tclass) in sepol_string_to_security_class() argument
1227 *tclass = tclass_datum->s.value; in sepol_string_to_security_class()
1235 int hidden sepol_string_to_av_perm(sepol_security_class_t tclass, in sepol_string_to_av_perm() argument
1242 if (!tclass || tclass > policydb->p_classes.nprim) { in sepol_string_to_av_perm()
1243 ERR(NULL, "unrecognized class %d", tclass); in sepol_string_to_av_perm()
1246 tclass_datum = policydb->class_val_to_struct[tclass - 1]; in sepol_string_to_av_perm()
1336 tclass, in compute_sid_handle_invalid_context()
1351 n, s, t, policydb->p_class_val_to_name[tclass - 1]); in compute_sid_handle_invalid_context()
1361 sepol_security_class_t tclass, in sepol_compute_sid() argument
1400 switch (tclass) { in sepol_compute_sid()
1416 avkey.target_class = tclass; in sepol_compute_sid()
1438 switch (tclass) { in sepol_compute_sid()
1459 rc = mls_compute_sid(policydb, scontext, tcontext, tclass, specified, in sepol_compute_sid()
1468 tclass, &newcontext); in sepol_compute_sid()
1485 sepol_security_class_t tclass, in sepol_transition_sid() argument
1488 return sepol_compute_sid(ssid, tsid, tclass, AVTAB_TRANSITION, out_sid); in sepol_transition_sid()
1498 sepol_security_class_t tclass, in sepol_member_sid() argument
1501 return sepol_compute_sid(ssid, tsid, tclass, AVTAB_MEMBER, out_sid); in sepol_member_sid()
1510 sepol_security_class_t tclass, in sepol_change_sid() argument
1513 return sepol_compute_sid(ssid, tsid, tclass, AVTAB_CHANGE, out_sid); in sepol_change_sid()