Home
last modified time | relevance | path

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

/security/smack/
Dsmack_lsm.c420 struct smk_audit_info ad, *saip = NULL; in smk_ptrace_rule_check() local
425 smk_ad_init(&ad, func, LSM_AUDIT_DATA_TASK); in smk_ptrace_rule_check()
426 smk_ad_setfield_u_tsk(&ad, tracer); in smk_ptrace_rule_check()
427 saip = &ad; in smk_ptrace_rule_check()
892 struct smk_audit_info ad; in smack_sb_statfs() local
894 smk_ad_init(&ad, __func__, LSM_AUDIT_DATA_DENTRY); in smack_sb_statfs()
895 smk_ad_setfield_u_fs_path_dentry(&ad, dentry); in smack_sb_statfs()
897 rc = smk_curacc(sbp->smk_floor, MAY_READ, &ad); in smack_sb_statfs()
1081 struct smk_audit_info ad; in smack_inode_link() local
1084 smk_ad_init(&ad, __func__, LSM_AUDIT_DATA_DENTRY); in smack_inode_link()
[all …]
Dsmack_access.c318 struct common_audit_data *ad = a; in smack_log_callback() local
319 struct smack_audit_data *sad = ad->smack_audit_data; in smack_log_callback()
321 ad->smack_audit_data->function, in smack_log_callback()
345 int result, struct smk_audit_info *ad) in smack_log() argument
353 struct common_audit_data *a = &ad->a; in smack_log()
392 int result, struct smk_audit_info *ad) in smack_log() argument
/security/selinux/
Dhooks.c1744 struct common_audit_data ad; in cred_has_capability() local
1751 ad.type = LSM_AUDIT_DATA_CAP; in cred_has_capability()
1752 ad.u.cap = cap; in cred_has_capability()
1770 int rc2 = avc_audit(sid, sid, sclass, av, &avd, rc, &ad, 0); in cred_has_capability()
1807 struct common_audit_data ad; in dentry_has_perm() local
1809 ad.type = LSM_AUDIT_DATA_DENTRY; in dentry_has_perm()
1810 ad.u.dentry = dentry; in dentry_has_perm()
1812 return inode_has_perm(cred, inode, av, &ad); in dentry_has_perm()
1823 struct common_audit_data ad; in path_has_perm() local
1825 ad.type = LSM_AUDIT_DATA_PATH; in path_has_perm()
[all …]
Davc.c469 struct common_audit_data *ad) in avc_xperms_audit() argument
478 audited, denied, result, ad, 0); in avc_xperms_audit()
709 struct common_audit_data *ad = a; in avc_audit_pre_callback() local
711 ad->selinux_audit_data->denied ? "denied" : "granted"); in avc_audit_pre_callback()
712 avc_dump_av(ab, ad->selinux_audit_data->tclass, in avc_audit_pre_callback()
713 ad->selinux_audit_data->audited); in avc_audit_pre_callback()
725 struct common_audit_data *ad = a; in avc_audit_post_callback() local
727 avc_dump_query(ab, ad->selinux_audit_data->ssid, in avc_audit_post_callback()
728 ad->selinux_audit_data->tsid, in avc_audit_post_callback()
729 ad->selinux_audit_data->tclass); in avc_audit_post_callback()
[all …]
Dxfrm.c402 struct common_audit_data *ad) in selinux_xfrm_sock_rcv_skb() argument
424 SECCLASS_ASSOCIATION, ASSOCIATION__RECVFROM, ad); in selinux_xfrm_sock_rcv_skb()
435 struct common_audit_data *ad, u8 proto) in selinux_xfrm_postroute_last() argument
467 SECCLASS_ASSOCIATION, ASSOCIATION__SENDTO, ad); in selinux_xfrm_postroute_last()
Dnetlabel.c374 struct common_audit_data *ad) in selinux_netlbl_sock_rcv_skb() argument
406 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.h40 struct common_audit_data *ad);
42 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, in selinux_xfrm_postroute_last() argument
Dnetlabel.h63 struct common_audit_data *ad);
134 struct common_audit_data *ad) in selinux_netlbl_sock_rcv_skb() argument
Davc.h162 u8 driver, u8 perm, struct common_audit_data *ad);