Home
last modified time | relevance | path

Searched refs:avd (Results 1 – 8 of 8) sorted by relevance

/security/selinux/
Davc.c51 struct av_decision avd; member
439 struct av_decision *avd, in avc_xperms_audit_required() argument
447 denied = requested & ~avd->allowed; in avc_xperms_audit_required()
449 audited = denied & avd->auditdeny; in avc_xperms_audit_required()
457 audited = requested & avd->auditallow; in avc_xperms_audit_required()
469 u32 requested, struct av_decision *avd, in avc_xperms_audit() argument
477 requested, avd, xpd, perm, result, &denied); in avc_xperms_audit()
566 …d avc_node_populate(struct avc_node *node, u32 ssid, u32 tsid, u16 tclass, struct av_decision *avd) in avc_node_populate() argument
571 memcpy(&node->ae.avd, avd, sizeof(node->ae.avd)); in avc_node_populate()
661 struct av_decision *avd, in avc_insert() argument
[all …]
Dselinuxfs.c713 struct av_decision avd; in sel_write_access() local
742 security_compute_av_user(ssid, tsid, tclass, &avd); in sel_write_access()
746 avd.allowed, 0xffffffff, in sel_write_access()
747 avd.auditallow, avd.auditdeny, in sel_write_access()
748 avd.seqno, avd.flags); in sel_write_access()
Dhooks.c1575 struct av_decision avd; in cred_has_capability() local
1598 rc = avc_has_perm_noaudit(sid, sid, sclass, av, 0, &avd); in cred_has_capability()
1600 int rc2 = avc_audit(sid, sid, sclass, av, &avd, rc, &ad, 0); in cred_has_capability()
2898 struct av_decision avd; in selinux_inode_permission() local
2919 rc = avc_has_perm_noaudit(sid, isec->sid, isec->sclass, perms, 0, &avd); in selinux_inode_permission()
2920 audited = avc_audit_required(perms, &avd, rc, in selinux_inode_permission()
/security/selinux/include/
Davc.h69 struct av_decision *avd, in avc_audit_required() argument
75 denied = requested & ~avd->allowed; in avc_audit_required()
77 audited = denied & avd->auditdeny; in avc_audit_required()
94 if (auditdeny && !(auditdeny & avd->auditdeny)) in avc_audit_required()
99 audited = requested & avd->auditallow; in avc_audit_required()
131 struct av_decision *avd, in avc_audit() argument
137 audited = avc_audit_required(requested, avd, result, 0, &denied); in avc_audit()
150 struct av_decision *avd);
Dsecurity.h141 u16 tclass, struct av_decision *avd,
148 u16 tclass, struct av_decision *avd);
/security/selinux/ss/
Dservices.c99 struct av_decision *avd,
220 static void map_decision(u16 tclass, struct av_decision *avd, in map_decision() argument
228 if (avd->allowed & current_mapping[tclass].perms[i]) in map_decision()
233 avd->allowed = result; in map_decision()
236 if (avd->auditallow & current_mapping[tclass].perms[i]) in map_decision()
238 avd->auditallow = result; in map_decision()
241 if (avd->auditdeny & current_mapping[tclass].perms[i]) in map_decision()
253 avd->auditdeny = result; in map_decision()
544 struct av_decision *avd) in type_attribute_bounds_av() argument
572 if ((lo_avd.allowed & avd->allowed) == avd->allowed) in type_attribute_bounds_av()
[all …]
Dconditional.c637 struct av_decision *avd, struct extended_perms *xperms) in cond_compute_av() argument
641 if (!ctab || !key || !avd) in cond_compute_av()
648 avd->allowed |= node->datum.u.data; in cond_compute_av()
656 avd->auditdeny &= node->datum.u.data; in cond_compute_av()
659 avd->auditallow |= node->datum.u.data; in cond_compute_av()
Dconditional.h77 struct av_decision *avd, struct extended_perms *xperms);