Fix compilation in --disable-selinux case
authorColin Walters <walters@verbum.org>
Wed, 3 Feb 2010 07:36:38 +0000 (08:36 +0100)
committerRalf Habacker <ralf@winkde.(none)>
Wed, 3 Feb 2010 07:36:38 +0000 (08:36 +0100)
commit15109202a98b0a117f54308d58de4f2034334f92
treef9ea524830c724215fb380f6bb189922597a623f
parent19d48c3344fa0b43d960c2f0b8b5fbb2f9f8cb86
Fix compilation in --disable-selinux case

_dbus_change_to_daemon_user moved into selinux.c for the --with-selinux
(and audit) case because that's where all of the relevant libcap headers
were being used.  However in the --disable-selinux case this didn't
compile and wasn't very clean.

If we don't have libaudit, use the legacy direct setgid/setuid bits
we had before in dbus-sysdeps-util-unix.c.
bus/selinux.c
dbus/dbus-sysdeps-util-unix.c