Feature #137
Updated by Igor Pashev over 11 years ago
<pre>
$ pkexec ls
**
ERROR:pkexec.c:678:main: assertion failed: (polkit_unix_process_get_start_time (POLKIT_UNIX_PROCESS (subject)) > 0)
Abort
</pre>
Adopt PolKit RBAC backend.
The idea is mapping desktop privileges to RBAC, e. g.:
"hal-storage-removable-mount" -> "solaris.device.mount.removable"
and use chkauthattr()
Since HAL is obsolete, it need to be ported to Udisks and Upower.
http://cgit.osdyson.org/illumos-gate.git/tree/usr/src/lib/policykit/libpolkit/common/libpolkit-rbac.c
Do it in aproper way here:
http://cgit.osdyson.org/port/polkit.git/