diff options
author | Brian Cameron <brian.cameron@sun.com> | 2008-01-28 17:43:05 -0500 |
---|---|---|
committer | William Jon McCann <mccann@jhu.edu> | 2008-01-28 17:43:05 -0500 |
commit | 5895396bc583ae08c5041f5b81f5f9d0a2888e22 (patch) | |
tree | cd7ab3be029f2b0fd6921a4a66c3937e3cb048aa /data/Makefile.am | |
parent | 96d613ee9a4850753e8f93113ab28ed3045f73f3 (diff) | |
download | ConsoleKit2-5895396bc583ae08c5041f5b81f5f9d0a2888e22.tar.gz |
make polkit optional and use RBAC on Solaris
This patch makes polkit an optional dependency. If present
it builds with it. If not, polkit support is disabled.
This patch also adds a --enable-rbac-shutdown=<key> option.
If set, then ConsoleKit will allow shutdown/reboot if the
user has the RBAC key authorization defined. For example,
since the GDM GUI program runs as the "gdm" user, setting
the key for the "gdm" user allows the login program to
shutdown and reboot via ConsoleKit.
Also this patch modifies the tools/solaris/ck-system-restart
and tools/solaris/ck-system-stop scripts to call "/sbin/init 6"
and "/sbin/init 5", which are the right commands for Solaris.
Diffstat (limited to 'data/Makefile.am')
-rw-r--r-- | data/Makefile.am | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index dc1bf1a..ef13d8c 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -6,10 +6,12 @@ dbusconf_DATA = ConsoleKit.conf seatdir = $(sysconfdir)/ConsoleKit/seats.d seat_DATA = 00-primary.seat +if HAVE_POLKIT polkit_policydir = $(datadir)/PolicyKit/policy dist_polkit_policy_DATA = \ ConsoleKit.policy \ $(NULL) +endif servicedir = $(datadir)/dbus-1/system-services service_in_files = org.freedesktop.ConsoleKit.service.in |