summaryrefslogtreecommitdiffstats
path: root/bus/selinux.h
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2005-04-13 14:27:11 +0000
committerDavid Zeuthen <davidz@redhat.com>2005-04-13 14:27:11 +0000
commit44656f538f69e8f8709ddb6ab285db29f65f62dd (patch)
tree7481890277faf957d3130bd1a9b32e128f786537 /bus/selinux.h
parent893f5b7bf561922dafae9d8397b82ee9ee35ad49 (diff)
2005-04-13 David Zeuthen <davidz@redhat.com>
* bus/selinux.c: Add c-file-style to top of file (log_audit_callback): Don't free the data here anymore (bus_selinux_check): Don't take spid and tpid since appending that to auxdata may OOM. (bus_selinux_allows_acquire_service): Handle OOM and signal back to the caller if we are OOM by taking an error object. (bus_selinux_allows_send): -do- * bus/selinux.h: Fix prototypes for bus_selinux_allows_acquire_service and bus_selinux_allows_send * bus/bus.c (bus_context_check_security_policy): Pass error and pass on OOM thrown by bus_selinux_allows_send() * bus/services.c (bus_registry_acquire_service): Pass error and pass on OOM thrown by bus_selinux_allows_acquire_service()
Diffstat (limited to 'bus/selinux.h')
-rw-r--r--bus/selinux.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/bus/selinux.h b/bus/selinux.h
index 3627126c..4424fa82 100644
--- a/bus/selinux.h
+++ b/bus/selinux.h
@@ -48,14 +48,17 @@ const char* bus_selinux_get_policy_root (void);
dbus_bool_t bus_selinux_allows_acquire_service (DBusConnection *connection,
BusSELinuxID *service_sid,
- const char *service_name);
+ const char *service_name,
+ DBusError *error);
+
dbus_bool_t bus_selinux_allows_send (DBusConnection *sender,
DBusConnection *proposed_recipient,
const char *msgtype, /* Supplementary audit data */
const char *interface,
const char *member,
const char *error_name,
- const char *destination);
+ const char *destination,
+ DBusError *error);
BusSELinuxID* bus_selinux_init_connection_id (DBusConnection *connection,
DBusError *error);