Home | History | Annotate | Download | only in src

Lines Matching full:ssid

20 	security_id_t ssid;
41 int (*callback) (uint32_t event, security_id_t ssid,
46 security_id_t ssid;
63 static inline int avc_hash(security_id_t ssid,
66 return ((uintptr_t) ssid ^ ((uintptr_t) tsid << 2) ^ tclass)
342 static inline struct avc_node *avc_claim_node(security_id_t ssid,
362 hvalue = avc_hash(ssid, tsid, tclass);
365 new->ae.ssid = ssid;
375 static inline struct avc_node *avc_search_node(security_id_t ssid,
384 hvalue = avc_hash(ssid, tsid, tclass);
387 (ssid != cur->ae.ssid ||
410 * @ssid: source security identifier
418 * (@ssid, @tsid), interpreting the permissions
423 static int avc_lookup(security_id_t ssid, security_id_t tsid,
431 node = avc_search_node(ssid, tsid, tclass, &probes);
448 * @ssid: source security identifier
455 * (@ssid, @tsid) and class @tclass.
465 static int avc_insert(security_id_t ssid, security_id_t tsid,
481 node = avc_claim_node(ssid, tsid, tclass);
677 * @ssid: source security identifier
681 static void avc_dump_query(security_id_t ssid, security_id_t tsid,
687 ssid->ctx, tsid->ctx);
694 void avc_audit(security_id_t ssid, security_id_t tsid,
725 avc_dump_query(ssid, tsid, tclass);
744 int avc_has_perm_noaudit(security_id_t ssid,
772 if (ae->ssid == ssid &&
786 rc = avc_lookup(ssid, tsid, tclass, requested, aeref);
788 rc = security_compute_av_flags_raw(ssid->ctx, tsid->ctx,
797 rc = avc_insert(ssid, tsid, tclass, &entry, aeref);
826 int avc_has_perm(security_id_t ssid, security_id_t tsid,
833 rc = avc_has_perm_noaudit(ssid, tsid, tclass, requested, aeref, &avd);
835 avc_audit(ssid, tsid, tclass, requested, &avd, rc, auditdata);
840 int avc_compute_create(security_id_t ssid, security_id_t tsid,
854 rc = avc_lookup(ssid, tsid, tclass, 0, &aeref);
857 rc = security_compute_av_flags_raw(ssid->ctx, tsid->ctx,
861 rc = avc_insert(ssid, tsid, tclass, &entry, &aeref);
869 rc = security_compute_create_raw(ssid->ctx, tsid->ctx, tclass,
890 int avc_compute_member(security_id_t ssid, security_id_t tsid,
900 rc = security_compute_member_raw(ssid->ctx, tsid->ctx, tclass, &ctx);
910 int avc_add_callback(int (*callback) (uint32_t event, security_id_t ssid,
915 uint32_t events, security_id_t ssid,
930 c->ssid = ssid;
971 static int avc_update_cache(uint32_t event, security_id_t ssid,
980 if (ssid == SECSID_WILD || tsid == SECSID_WILD) {
984 if (avc_sidcmp(ssid, node->ae.ssid) &&
993 node = avc_search_node(ssid, tsid, tclass, 0);
1009 static int avc_control(uint32_t event, security_id_t ssid,
1026 avc_update_cache(event, ssid, tsid, tclass, perms);
1030 avc_sidcmp(c->ssid, ssid) &&
1034 ret = c->callback(event, ssid, tsid, tclass,
1048 avc_update_cache(event, ssid, tsid, tclass, perms);
1063 * @ssid: source security identifier or %SECSID_WILD
1069 int avc_ss_grant(security_id_t ssid, security_id_t tsid,
1074 ssid, tsid, tclass, perms, seqno, 0);
1079 * @ssid: source security identifier or %SECSID_WILD
1090 int avc_ss_try_revoke(security_id_t ssid, security_id_t tsid,
1096 ssid, tsid, tclass, perms, seqno, out_retained);
1101 * @ssid: source security identifier or %SECSID_WILD
1110 int avc_ss_revoke(security_id_t ssid, security_id_t tsid,
1115 ssid, tsid, tclass, perms, seqno, 0);
1138 * @ssid: source security identifier or %SECSID_WILD
1145 int avc_ss_set_auditallow(security_id_t ssid, security_id_t tsid,
1151 ssid, tsid, tclass, perms, seqno, 0);
1154 ssid, tsid, tclass, perms, seqno, 0);
1159 * @ssid: source security identifier or %SECSID_WILD
1166 int avc_ss_set_auditdeny(security_id_t ssid, security_id_t tsid,
1172 ssid, tsid, tclass, perms, seqno, 0);
1175 ssid, tsid, tclass, perms, seqno, 0);