Home
last modified time | relevance | path

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

/security/smack/
Dsmack_lsm.c160 struct smk_audit_info ad; in smack_ptrace_access_check() local
168 smk_ad_init(&ad, __func__, LSM_AUDIT_DATA_TASK); in smack_ptrace_access_check()
169 smk_ad_setfield_u_tsk(&ad, ctp); in smack_ptrace_access_check()
171 rc = smk_curacc(tsp, MAY_READWRITE, &ad); in smack_ptrace_access_check()
186 struct smk_audit_info ad; in smack_ptrace_traceme() local
194 smk_ad_init(&ad, __func__, LSM_AUDIT_DATA_TASK); in smack_ptrace_traceme()
195 smk_ad_setfield_u_tsk(&ad, ptp); in smack_ptrace_traceme()
197 rc = smk_curacc(tsp, MAY_READWRITE, &ad); in smack_ptrace_traceme()
389 struct smk_audit_info ad; in smack_sb_statfs() local
391 smk_ad_init(&ad, __func__, LSM_AUDIT_DATA_DENTRY); in smack_sb_statfs()
[all …]
Dsmack_access.c277 struct common_audit_data *ad = a; in smack_log_callback() local
278 struct smack_audit_data *sad = ad->smack_audit_data; in smack_log_callback()
280 ad->smack_audit_data->function, in smack_log_callback()
301 int result, struct smk_audit_info *ad) in smack_log() argument
305 struct common_audit_data *a = &ad->a; in smack_log()
329 int result, struct smk_audit_info *ad) in smack_log() argument
/security/selinux/
Dhooks.c1460 struct common_audit_data ad; in cred_has_capability() local
1468 COMMON_AUDIT_DATA_INIT(&ad, CAP); in cred_has_capability()
1469 ad.selinux_audit_data = &sad; in cred_has_capability()
1470 ad.tsk = current; in cred_has_capability()
1471 ad.u.cap = cap; in cred_has_capability()
1489 int rc2 = avc_audit(sid, sid, sclass, av, &avd, rc, &ad, 0); in cred_has_capability()
1534 struct common_audit_data ad; in inode_has_perm_noadp() local
1537 COMMON_AUDIT_DATA_INIT(&ad, INODE); in inode_has_perm_noadp()
1538 ad.u.inode = inode; in inode_has_perm_noadp()
1539 ad.selinux_audit_data = &sad; in inode_has_perm_noadp()
[all …]
Davc.c707 struct common_audit_data *ad = a; in avc_audit_pre_callback() local
709 ad->selinux_audit_data->slad->denied ? "denied" : "granted"); in avc_audit_pre_callback()
710 avc_dump_av(ab, ad->selinux_audit_data->slad->tclass, in avc_audit_pre_callback()
711 ad->selinux_audit_data->slad->audited); in avc_audit_pre_callback()
723 struct common_audit_data *ad = a; in avc_audit_post_callback() local
725 avc_dump_query(ab, ad->selinux_audit_data->slad->ssid, in avc_audit_post_callback()
726 ad->selinux_audit_data->slad->tsid, in avc_audit_post_callback()
727 ad->selinux_audit_data->slad->tclass); in avc_audit_post_callback()
728 if (ad->selinux_audit_data->slad->denied) { in avc_audit_post_callback()
730 ad->selinux_audit_data->slad->result ? 0 : 1); in avc_audit_post_callback()
[all …]
Dxfrm.c405 struct common_audit_data *ad) in selinux_xfrm_sock_rcv_skb() argument
433 ASSOCIATION__RECVFROM, ad); in selinux_xfrm_sock_rcv_skb()
446 struct common_audit_data *ad, u8 proto) in selinux_xfrm_postroute_last() argument
487 ASSOCIATION__SENDTO, ad); in selinux_xfrm_postroute_last()
Dnetlabel.c346 struct common_audit_data *ad) in selinux_netlbl_sock_rcv_skb() argument
377 rc = avc_has_perm(sksec->sid, nlbl_sid, sksec->sclass, perm, ad); in selinux_netlbl_sock_rcv_skb()
/security/
Dlsm_audit.c43 struct common_audit_data *ad, u8 *proto) in ipv4_skb_to_auditdata() argument
52 ad->u.net->v4info.saddr = ih->saddr; in ipv4_skb_to_auditdata()
53 ad->u.net->v4info.daddr = ih->daddr; in ipv4_skb_to_auditdata()
67 ad->u.net->sport = th->source; in ipv4_skb_to_auditdata()
68 ad->u.net->dport = th->dest; in ipv4_skb_to_auditdata()
76 ad->u.net->sport = uh->source; in ipv4_skb_to_auditdata()
77 ad->u.net->dport = uh->dest; in ipv4_skb_to_auditdata()
85 ad->u.net->sport = dh->dccph_sport; in ipv4_skb_to_auditdata()
86 ad->u.net->dport = dh->dccph_dport; in ipv4_skb_to_auditdata()
93 ad->u.net->sport = sh->source; in ipv4_skb_to_auditdata()
[all …]
/security/selinux/include/
Dxfrm.h46 struct common_audit_data *ad);
48 struct common_audit_data *ad, u8 proto);
62 struct common_audit_data *ad) in selinux_xfrm_sock_rcv_skb() argument
68 struct common_audit_data *ad, u8 proto) in selinux_xfrm_postroute_last() argument
Dnetlabel.h62 struct common_audit_data *ad);
132 struct common_audit_data *ad) in selinux_netlbl_sock_rcv_skb() argument
Davc.h106 u8 driver, u8 perm, struct common_audit_data *ad);