Home
last modified time | relevance | path

Searched refs:audit_buf (Results 1 – 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/net/netlabel/
Dnetlabel_user.c86 struct audit_buffer *audit_buf; in netlbl_audit_start_common() local
93 audit_buf = audit_log_start(audit_context(), GFP_ATOMIC, type); in netlbl_audit_start_common()
94 if (audit_buf == NULL) in netlbl_audit_start_common()
97 audit_log_format(audit_buf, "netlabel: auid=%u ses=%u", in netlbl_audit_start_common()
105 audit_log_format(audit_buf, " subj=%s", secctx); in netlbl_audit_start_common()
109 return audit_buf; in netlbl_audit_start_common()
Dnetlabel_addrlist.c310 void netlbl_af4list_audit_addr(struct audit_buffer *audit_buf, in netlbl_af4list_audit_addr() argument
318 audit_log_format(audit_buf, " netif=%s", dev); in netlbl_af4list_audit_addr()
319 audit_log_format(audit_buf, " %s=%pI4", dir, &addr); in netlbl_af4list_audit_addr()
326 audit_log_format(audit_buf, " %s_prefixlen=%d", dir, mask_len); in netlbl_af4list_audit_addr()
343 void netlbl_af6list_audit_addr(struct audit_buffer *audit_buf, in netlbl_af6list_audit_addr() argument
352 audit_log_format(audit_buf, " netif=%s", dev); in netlbl_af6list_audit_addr()
353 audit_log_format(audit_buf, " %s=%pI6", dir, addr); in netlbl_af6list_audit_addr()
365 audit_log_format(audit_buf, " %s_prefixlen=%d", dir, mask_len); in netlbl_af6list_audit_addr()
Dnetlabel_unlabeled.c376 struct audit_buffer *audit_buf = NULL; in netlbl_unlhsh_add() local
404 audit_buf = netlbl_audit_start_common(AUDIT_MAC_UNLBL_STCADD, in netlbl_unlhsh_add()
412 if (audit_buf != NULL) in netlbl_unlhsh_add()
413 netlbl_af4list_audit_addr(audit_buf, 1, in netlbl_unlhsh_add()
425 if (audit_buf != NULL) in netlbl_unlhsh_add()
426 netlbl_af6list_audit_addr(audit_buf, 1, in netlbl_unlhsh_add()
440 if (audit_buf != NULL) { in netlbl_unlhsh_add()
444 audit_log_format(audit_buf, " sec_obj=%s", secctx); in netlbl_unlhsh_add()
447 audit_log_format(audit_buf, " res=%u", ret_val == 0 ? 1 : 0); in netlbl_unlhsh_add()
448 audit_log_end(audit_buf); in netlbl_unlhsh_add()
[all …]
Dnetlabel_domainhash.c214 struct audit_buffer *audit_buf; in netlbl_domhsh_audit_add() local
219 audit_buf = netlbl_audit_start_common(AUDIT_MAC_MAP_ADD, audit_info); in netlbl_domhsh_audit_add()
220 if (audit_buf != NULL) { in netlbl_domhsh_audit_add()
221 audit_log_format(audit_buf, " nlbl_domain=%s", in netlbl_domhsh_audit_add()
228 netlbl_af4list_audit_addr(audit_buf, 0, NULL, in netlbl_domhsh_audit_add()
236 netlbl_af6list_audit_addr(audit_buf, 0, NULL, in netlbl_domhsh_audit_add()
246 audit_log_format(audit_buf, " nlbl_protocol=unlbl"); in netlbl_domhsh_audit_add()
250 audit_log_format(audit_buf, in netlbl_domhsh_audit_add()
256 audit_log_format(audit_buf, in netlbl_domhsh_audit_add()
261 audit_log_format(audit_buf, " res=%u", result == 0 ? 1 : 0); in netlbl_domhsh_audit_add()
[all …]
Dnetlabel_addrlist.h110 void netlbl_af4list_audit_addr(struct audit_buffer *audit_buf,
114 static inline void netlbl_af4list_audit_addr(struct audit_buffer *audit_buf, in netlbl_af4list_audit_addr() argument
178 void netlbl_af6list_audit_addr(struct audit_buffer *audit_buf,
184 static inline void netlbl_af6list_audit_addr(struct audit_buffer *audit_buf, in netlbl_af6list_audit_addr() argument
/kernel/linux/linux-5.10/net/xfrm/
Dxfrm_state.c2729 struct audit_buffer *audit_buf) in xfrm_audit_helper_sainfo() argument
2735 audit_log_format(audit_buf, " sec_alg=%u sec_doi=%u sec_obj=%s", in xfrm_audit_helper_sainfo()
2740 audit_log_format(audit_buf, " src=%pI4 dst=%pI4", in xfrm_audit_helper_sainfo()
2744 audit_log_format(audit_buf, " src=%pI6 dst=%pI6", in xfrm_audit_helper_sainfo()
2749 audit_log_format(audit_buf, " spi=%u(0x%x)", spi, spi); in xfrm_audit_helper_sainfo()
2753 struct audit_buffer *audit_buf) in xfrm_audit_helper_pktinfo() argument
2761 audit_log_format(audit_buf, " src=%pI4 dst=%pI4", in xfrm_audit_helper_pktinfo()
2766 audit_log_format(audit_buf, in xfrm_audit_helper_pktinfo()
2778 struct audit_buffer *audit_buf; in xfrm_audit_state_add() local
2780 audit_buf = xfrm_audit_start("SAD-add"); in xfrm_audit_state_add()
[all …]
Dxfrm_policy.c4228 struct audit_buffer *audit_buf) in xfrm_audit_common_policyinfo() argument
4234 audit_log_format(audit_buf, " sec_alg=%u sec_doi=%u sec_obj=%s", in xfrm_audit_common_policyinfo()
4239 audit_log_format(audit_buf, " src=%pI4", &sel->saddr.a4); in xfrm_audit_common_policyinfo()
4241 audit_log_format(audit_buf, " src_prefixlen=%d", in xfrm_audit_common_policyinfo()
4243 audit_log_format(audit_buf, " dst=%pI4", &sel->daddr.a4); in xfrm_audit_common_policyinfo()
4245 audit_log_format(audit_buf, " dst_prefixlen=%d", in xfrm_audit_common_policyinfo()
4249 audit_log_format(audit_buf, " src=%pI6", sel->saddr.a6); in xfrm_audit_common_policyinfo()
4251 audit_log_format(audit_buf, " src_prefixlen=%d", in xfrm_audit_common_policyinfo()
4253 audit_log_format(audit_buf, " dst=%pI6", sel->daddr.a6); in xfrm_audit_common_policyinfo()
4255 audit_log_format(audit_buf, " dst_prefixlen=%d", in xfrm_audit_common_policyinfo()
[all …]
/kernel/linux/linux-5.10/net/ipv6/
Dcalipso.c354 struct audit_buffer *audit_buf; in calipso_doi_add() local
375 audit_buf = netlbl_audit_start(AUDIT_MAC_CALIPSO_ADD, audit_info); in calipso_doi_add()
376 if (audit_buf) { in calipso_doi_add()
386 audit_log_format(audit_buf, in calipso_doi_add()
389 audit_log_end(audit_buf); in calipso_doi_add()
441 struct audit_buffer *audit_buf; in calipso_doi_remove() local
457 audit_buf = netlbl_audit_start(AUDIT_MAC_CALIPSO_DEL, audit_info); in calipso_doi_remove()
458 if (audit_buf) { in calipso_doi_remove()
459 audit_log_format(audit_buf, in calipso_doi_remove()
462 audit_log_end(audit_buf); in calipso_doi_remove()
/kernel/linux/linux-5.10/net/ipv4/
Dcipso_ipv4.c390 struct audit_buffer *audit_buf; in cipso_v4_doi_add() local
432 audit_buf = netlbl_audit_start(AUDIT_MAC_CIPSOV4_ADD, audit_info); in cipso_v4_doi_add()
433 if (audit_buf) { in cipso_v4_doi_add()
448 audit_log_format(audit_buf, in cipso_v4_doi_add()
451 audit_log_end(audit_buf); in cipso_v4_doi_add()
515 struct audit_buffer *audit_buf; in cipso_v4_doi_remove() local
531 audit_buf = netlbl_audit_start(AUDIT_MAC_CIPSOV4_DEL, audit_info); in cipso_v4_doi_remove()
532 if (audit_buf) { in cipso_v4_doi_remove()
533 audit_log_format(audit_buf, in cipso_v4_doi_remove()
536 audit_log_end(audit_buf); in cipso_v4_doi_remove()
/kernel/linux/linux-5.10/include/net/
Dxfrm.h679 struct audit_buffer *audit_buf = NULL; in xfrm_audit_start() local
683 audit_buf = audit_log_start(audit_context(), GFP_ATOMIC, in xfrm_audit_start()
685 if (audit_buf == NULL) in xfrm_audit_start()
687 audit_log_format(audit_buf, "op=%s", op); in xfrm_audit_start()
688 return audit_buf; in xfrm_audit_start()
692 struct audit_buffer *audit_buf) in xfrm_audit_helper_usrinfo() argument
700 audit_log_format(audit_buf, " auid=%u ses=%u", auid, ses); in xfrm_audit_helper_usrinfo()
701 audit_log_task_context(audit_buf); in xfrm_audit_helper_usrinfo()