mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-24 01:40:22 +01:00
2005-07-15 Colin Walters <walters@verbum.org>
* bus/selinux.c (bus_selinux_append_context): Wrap in HAVE_SELINUX.
This commit is contained in:
parent
dc4d80e567
commit
6be5b25a71
2 changed files with 9 additions and 0 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2005-07-15 Colin Walters <walters@verbum.org>
|
||||
|
||||
* bus/selinux.c (bus_selinux_append_context): Wrap in
|
||||
HAVE_SELINUX.
|
||||
|
||||
2005-07-14 John (J5) Palmieri <johnp@redhat.com>
|
||||
|
||||
* python/_dbus.py (Bus::remove_signal_receiver):
|
||||
|
|
|
|||
|
|
@ -571,6 +571,7 @@ dbus_bool_t
|
|||
bus_selinux_append_context (DBusMessage *message,
|
||||
BusSELinuxID *context)
|
||||
{
|
||||
#ifdef HAVE_SELINUX
|
||||
/* Note if you change how the context is marshalled (e.g. to ay),
|
||||
* you also need to change driver.c for the appropriate return value.
|
||||
*/
|
||||
|
|
@ -578,6 +579,9 @@ bus_selinux_append_context (DBusMessage *message,
|
|||
DBUS_TYPE_STRING,
|
||||
SELINUX_SID_FROM_BUS (context),
|
||||
DBUS_TYPE_INVALID);
|
||||
#else
|
||||
return FALSE;
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue