From 5ce97e6f22fd25279793fbc75211d2e86413ae73 Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Tue, 22 Jan 2008 17:03:46 -0500 Subject: initial stop/restart support Add Stop and Restart methods to the Manager object. We'll rename the Manager object to System in the near future. Use libpolkit to determine authorization. --- data/ConsoleKit.policy | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ data/Makefile.am | 4 ++++ 2 files changed, 52 insertions(+) create mode 100644 data/ConsoleKit.policy (limited to 'data') diff --git a/data/ConsoleKit.policy b/data/ConsoleKit.policy new file mode 100644 index 0000000..fea8737 --- /dev/null +++ b/data/ConsoleKit.policy @@ -0,0 +1,48 @@ + + + + + + + + + Stop the system + System policy prevents stopping the system + + no + yes + + + + + Stop the system when multiple users are logged in + System policy prevents stopping the when other users are logged in + + no + auth_admin + + + + + Restart the system + System policy prevents restarting the system + + no + yes + + + + + Restart the system when multiple users are logged in + System policy prevents restarting the system when other users are logged in + + no + auth_admin + + + + diff --git a/data/Makefile.am b/data/Makefile.am index e2a237b..dc1bf1a 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -6,6 +6,10 @@ dbusconf_DATA = ConsoleKit.conf seatdir = $(sysconfdir)/ConsoleKit/seats.d seat_DATA = 00-primary.seat +polkit_policydir = $(datadir)/PolicyKit/policy +dist_polkit_policy_DATA = \ + ConsoleKit.policy \ + $(NULL) servicedir = $(datadir)/dbus-1/system-services service_in_files = org.freedesktop.ConsoleKit.service.in -- cgit