Project

General

Profile

Feature #137

Port polkit

Added by Igor Pashev over 6 years ago. Updated almost 6 years ago.

Status:
New
Priority:
Low
Assignee:
-
Start date:
2013-06-22
Due date:
% Done:

0%

Estimated time:

Description

$ pkexec ls                                                                                                                           
**                                                                                                                                                          
ERROR:pkexec.c:678:main: assertion failed: (polkit_unix_process_get_start_time (POLKIT_UNIX_PROCESS (subject)) > 0)                                         
Abort

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 a proper way here:
http://cgit.osdyson.org/port/polkit.git/


Files

dyson-pkexec-fdwalk.patch (806 Bytes) dyson-pkexec-fdwalk.patch Igor Pashev, 2013-06-23 10:53 AM
dyson-polkitunixprocess.c.patch (4.25 KB) dyson-polkitunixprocess.c.patch don't do that ;-) Igor Pashev, 2013-06-23 10:53 AM
dyson-test-mocklibc-netdb.c.patch (492 Bytes) dyson-test-mocklibc-netdb.c.patch Igor Pashev, 2013-06-23 10:53 AM

Related issues

Related to Dyson - Feature #136: Port upowerNew2013-06-20

Actions
Related to Dyson - Feature #129: Port udisksNew2013-06-07

Actions

History

#1

Updated by Igor Pashev over 6 years ago

  • Subject changed from pkexec does not work to Port polkit
#2

Updated by Igor Pashev over 6 years ago

  • Description updated (diff)
#4

Updated by Igor Pashev over 6 years ago

  • Description updated (diff)
#5

Updated by Igor Pashev over 6 years ago

  • Description updated (diff)
#6

Updated by Igor Pashev over 6 years ago

  • Description updated (diff)
#7

Updated by Igor Pashev about 6 years ago

  • Priority changed from High to Low
#8

Updated by Igor Pashev almost 6 years ago

  • Tracker changed from Bug to Feature

Also available in: Atom PDF