1 /* selinux.h SELinux security check headers for D-BUS
3 * Author: Matthew Rickard <mjricka@epoch.ncsc.mil>
5 * Licensed under the Academic Free License version 2.1
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 #include <dbus/dbus-hash.h>
27 #include <dbus/dbus-connection.h>
30 dbus_bool_t bus_selinux_init (void);
31 void bus_selinux_shutdown (void);
33 dbus_bool_t bus_selinux_enabled (void);
35 void bus_selinux_id_ref (BusSELinuxID *sid);
36 void bus_selinux_id_unref (BusSELinuxID *sid);
38 DBusHashTable* bus_selinux_id_table_new (void);
39 BusSELinuxID* bus_selinux_id_table_lookup (DBusHashTable *service_table,
40 const DBusString *service_name);
41 dbus_bool_t bus_selinux_id_table_insert (DBusHashTable *service_table,
42 const char *service_name,
43 const char *service_context);
44 DBusHashTable* bus_selinux_id_table_union (DBusHashTable *base,
45 DBusHashTable *override);
46 void bus_selinux_id_table_print (DBusHashTable *service_table);
47 const char* bus_selinux_get_policy_root (void);
50 dbus_bool_t bus_selinux_allows_acquire_service (DBusConnection *connection,
51 BusSELinuxID *service_sid);
52 dbus_bool_t bus_selinux_allows_send (DBusConnection *sender,
53 DBusConnection *proposed_recipient);
57 BusSELinuxID* bus_selinux_init_connection_id (DBusConnection *connection,
62 #endif /* BUS_SELINUX_H */