associate parameters (key/value pairs) with the Action class
authorDavid Zeuthen <davidz@redhat.com>
Mon, 9 Apr 2007 19:20:04 +0000 (15:20 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Mon, 9 Apr 2007 19:20:04 +0000 (15:20 -0400)
commit02a4c5101ca4751963f76a0e016d3308389dc2a5
tree2389a9f7a718ac15988af55277e7e4bba58ecedd
parent7222fca16e15c86d17bbca4e3bc56bb0a807cbbb
associate parameters (key/value pairs) with the Action class

This is useful for letting mechanisms convey information which may be
useful in making a decision whether an action is OK. For example,
NetworkManager could use this to provide the phone-number parameter
with a hypothetical "nm-dialup" action. Then a site or vendor can
provide insert

 mandatory polkit-run-program.so program="/usr/lib/check-dialup-number.sh" privilege="nm-dialup"

into /etc/PolicyKit/PolicyKit.conf and have said program check

 $POLKIT_ACTION_PARAM_PHONE_NUMBER

in that program.
doc/man/polkit-check-caller.1.in
doc/man/polkit-check-session.1.in
doc/man/polkit-module-run-program.8.in
libpolkit/libpolkit-action.c
libpolkit/libpolkit-action.h
modules/run-program/polkit-module-run-program.c
tools/polkit-check-caller.c
tools/polkit-check-session.c