Fix compilation in --disable-selinux case
authorColin Walters <walters@verbum.org>
Tue, 2 Feb 2010 19:57:47 +0000 (14:57 -0500)
committerColin Walters <walters@verbum.org>
Tue, 2 Feb 2010 20:04:58 +0000 (15:04 -0500)
commit3dac125d61ebc4f614a1723580043e2f1c811f59
tree4318cee650e9bebdba9e3f322f58680402033e79
parent90fe96b1875350f86a4a773d4a0a22009950dd4d
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
bus/selinux.h
dbus/dbus-sysdeps-util-unix.c
dbus/dbus-sysdeps.h