Michael Chapman 88ced61bf9 core: pass details to polkit for some unit actions
The following details are passed:

- unit: the primary name of the unit upon which the action was
        invoked (i.e. after resolving any aliases);
- verb: one of 'start', 'stop', 'reload', 'restart', 'try-restart',
        'reload-or-restart', 'reload-or-try-restart', 'kill',
        'reset-failed', or 'set-property', corresponding to the
        systemctl verb used to invoke the action.

Typical use of these details in a polkit policy rule might be:

  // Allow alice to manage example.service;
  // fall back to implicit authorization otherwise.
  polkit.addRule(function(action, subject) {
      if (action.id == "org.freedesktop.systemd1.manage-units" &&
          action.lookup("unit") == "example.service" &&
          subject.user == "alice") {
          return polkit.Result.YES;
      }
  });

We also supply a custom polkit message that includes the unit's name and
the requested operation.
2015-09-06 00:07:17 +10:00
2015-06-15 00:13:43 +03:00
2015-07-06 17:47:38 +02:00
2015-08-09 18:07:55 +02:00
2015-07-27 20:15:34 +02:00
2015-09-04 11:13:32 +02:00
2015-08-31 18:12:37 +02:00
2015-08-05 21:02:41 -04:00
…
2015-06-03 00:22:53 +02:00
…
2014-06-04 15:41:10 -04:00
2015-07-27 20:15:34 +02:00
2015-09-05 11:09:44 +02:00
2015-08-16 21:06:42 +02:00
2015-08-31 13:09:29 +02:00

systemd - System and Service Manager

Build Status
Coverity Scan Status

Details

  • General information about systemd can be found in the systemd Wiki
  • Information about build requirements are provided in the README file
S
Description
systemd patched fork
Readme
409 MiB
Languages
C 88.5%
Shell 5.7%
Python 4.6%
Meson 1.1%