/security/smack/ |
D | smack_lsm.c | 333 struct smk_audit_info ad, *saip = NULL; in smk_ptrace_rule_check() local 338 smk_ad_init(&ad, func, LSM_AUDIT_DATA_TASK); in smk_ptrace_rule_check() 339 smk_ad_setfield_u_tsk(&ad, tracer); in smk_ptrace_rule_check() 340 saip = &ad; in smk_ptrace_rule_check() 649 struct smk_audit_info ad; in smack_sb_statfs() local 651 smk_ad_init(&ad, __func__, LSM_AUDIT_DATA_DENTRY); in smack_sb_statfs() 652 smk_ad_setfield_u_fs_path_dentry(&ad, dentry); in smack_sb_statfs() 654 rc = smk_curacc(sbp->smk_floor, MAY_READ, &ad); in smack_sb_statfs() 839 struct smk_audit_info ad; in smack_inode_link() local 842 smk_ad_init(&ad, __func__, LSM_AUDIT_DATA_DENTRY); in smack_inode_link() [all …]
|
D | smack_access.c | 312 struct common_audit_data *ad = a; in smack_log_callback() local 313 struct smack_audit_data *sad = ad->smack_audit_data; in smack_log_callback() 315 ad->smack_audit_data->function, in smack_log_callback() 339 int result, struct smk_audit_info *ad) in smack_log() argument 343 struct common_audit_data *a = &ad->a; in smack_log() 374 int result, struct smk_audit_info *ad) in smack_log() argument
|
/security/ |
D | lsm_audit.c | 43 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/ |
D | hooks.c | 1552 struct common_audit_data ad; in cred_has_capability() local 1559 ad.type = LSM_AUDIT_DATA_CAP; in cred_has_capability() 1560 ad.u.cap = cap; in cred_has_capability() 1578 int rc2 = avc_audit(sid, sid, sclass, av, &avd, rc, &ad); in cred_has_capability() 1625 struct common_audit_data ad; in dentry_has_perm() local 1627 ad.type = LSM_AUDIT_DATA_DENTRY; in dentry_has_perm() 1628 ad.u.dentry = dentry; in dentry_has_perm() 1629 return inode_has_perm(cred, inode, av, &ad); in dentry_has_perm() 1640 struct common_audit_data ad; in path_has_perm() local 1642 ad.type = LSM_AUDIT_DATA_PATH; in path_has_perm() [all …]
|
D | avc.c | 472 struct common_audit_data *ad) in avc_xperms_audit() argument 481 audited, denied, result, ad, 0); in avc_xperms_audit() 712 struct common_audit_data *ad = a; in avc_audit_pre_callback() local 714 ad->selinux_audit_data->denied ? "denied" : "granted"); in avc_audit_pre_callback() 715 avc_dump_av(ab, ad->selinux_audit_data->tclass, in avc_audit_pre_callback() 716 ad->selinux_audit_data->audited); in avc_audit_pre_callback() 728 struct common_audit_data *ad = a; in avc_audit_post_callback() local 730 avc_dump_query(ab, ad->selinux_audit_data->ssid, in avc_audit_post_callback() 731 ad->selinux_audit_data->tsid, in avc_audit_post_callback() 732 ad->selinux_audit_data->tclass); in avc_audit_post_callback() [all …]
|
D | xfrm.c | 405 struct common_audit_data *ad) in selinux_xfrm_sock_rcv_skb() argument 427 SECCLASS_ASSOCIATION, ASSOCIATION__RECVFROM, ad); in selinux_xfrm_sock_rcv_skb() 438 struct common_audit_data *ad, u8 proto) in selinux_xfrm_postroute_last() argument 470 SECCLASS_ASSOCIATION, ASSOCIATION__SENDTO, ad); in selinux_xfrm_postroute_last()
|
D | netlabel.c | 372 struct common_audit_data *ad) in selinux_netlbl_sock_rcv_skb() argument 403 rc = avc_has_perm(sksec->sid, nlbl_sid, sksec->sclass, perm, ad); in selinux_netlbl_sock_rcv_skb()
|
/security/selinux/include/ |
D | xfrm.h | 39 struct common_audit_data *ad); 41 struct common_audit_data *ad, u8 proto); 63 struct common_audit_data *ad) in selinux_xfrm_sock_rcv_skb() argument 69 struct common_audit_data *ad, in selinux_xfrm_postroute_last() argument
|
D | netlabel.h | 62 struct common_audit_data *ad); 132 struct common_audit_data *ad) in selinux_netlbl_sock_rcv_skb() argument
|
D | avc.h | 156 u8 driver, u8 perm, struct common_audit_data *ad);
|