Lines Matching refs:sid
59 #define BUS_SID_FROM_SELINUX(sid) ((BusSELinuxID*) (sid)) argument
60 #define SELINUX_SID_FROM_BUS(sid) ((security_id_t) (sid)) argument
387 bus_selinux_id_unref (BusSELinuxID *sid) in bus_selinux_id_unref() argument
393 _dbus_assert (sid != NULL); in bus_selinux_id_unref()
395 sidput (SELINUX_SID_FROM_BUS (sid)); in bus_selinux_id_unref()
400 bus_selinux_id_ref (BusSELinuxID *sid) in bus_selinux_id_ref() argument
406 _dbus_assert (sid != NULL); in bus_selinux_id_ref()
408 sidget (SELINUX_SID_FROM_BUS (sid)); in bus_selinux_id_ref()
655 BusSELinuxID *sid, in bus_selinux_append_context() argument
661 if (avc_sid_to_context (SELINUX_SID_FROM_BUS (sid), &context) < 0) in bus_selinux_append_context()
738 security_id_t sid; in bus_selinux_init_connection_id() local
753 if (avc_context_to_sid (con, &sid) < 0) in bus_selinux_init_connection_id()
770 return BUS_SID_FROM_SELINUX (sid); in bus_selinux_init_connection_id()
782 bus_selinux_id_table_free_value (BusSELinuxID *sid) in bus_selinux_id_table_free_value() argument
786 if (sid) in bus_selinux_id_table_free_value()
787 bus_selinux_id_unref (sid); in bus_selinux_id_table_free_value()
822 security_id_t sid; in bus_selinux_id_table_insert() local
828 sid = SECSID_WILD; in bus_selinux_id_table_insert()
835 if (avc_context_to_sid ((char *) service_context, &sid) < 0) in bus_selinux_id_table_insert()
851 BUS_SID_FROM_SELINUX (sid))) in bus_selinux_id_table_insert()
856 sid->ctx); in bus_selinux_id_table_insert()
860 sid = SECSID_WILD; in bus_selinux_id_table_insert()
865 if (sid != SECSID_WILD) in bus_selinux_id_table_insert()
866 sidput (sid); in bus_selinux_id_table_insert()
894 security_id_t sid; in bus_selinux_id_table_lookup() local
896 sid = SECSID_WILD; /* default context */ in bus_selinux_id_table_lookup()
904 sid = _dbus_hash_table_lookup_string (service_table, in bus_selinux_id_table_lookup()
907 if (sid == SECSID_WILD) in bus_selinux_id_table_lookup()
914 return BUS_SID_FROM_SELINUX (sid); in bus_selinux_id_table_lookup()
951 security_id_t sid = _dbus_hash_iter_get_value (&iter); in bus_selinux_id_table_print() local
953 _dbus_verbose ("The context is %s\n", sid->ctx); in bus_selinux_id_table_print()
954 _dbus_verbose ("The refcount is %d\n", sid->refcnt); in bus_selinux_id_table_print()