fd.o bug #12429 Reverse check to setpcap and only init audit if we were root
authorJohn (J5) Palmieri <johnp@redhat.com>
Wed, 3 Oct 2007 21:29:45 +0000 (17:29 -0400)
committerJohn (J5) Palmieri <johnp@redhat.com>
Wed, 3 Oct 2007 21:29:45 +0000 (17:29 -0400)
commit09aa69e0153e66326c6746ec7e4841567d44ccdb
treed15ece4f82530245aa08975e9089ae247b5ff6ed
parenta295b2e66c9db7e7687e22414f93e171c29e495d
fd.o bug #12429 Reverse check to setpcap and only init audit if we were root

* patch by Dan Walsh <dwalsh@redhat.com>
* https://bugs.freedesktop.org/show_bug.cgi?id=12429
* Reverse we_were_root check to setpcap if we were root.  Also only init
  audit if we were root.  So error dbus message will not show up when policy
  reload happens.  dbus -session will no longer try to send audit message,
  only system will.
bus/selinux.c
dbus/dbus-sysdeps-util-unix.c