implement <allow_any> to specify default answer for any user
authorDavid Zeuthen <davidz@redhat.com>
Thu, 27 Sep 2007 16:08:19 +0000 (12:08 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Thu, 27 Sep 2007 16:08:19 +0000 (12:08 -0400)
commit4714fe721988d533a912ac62df5088f24f5bc699
tree0dcecaed6cfa6465e7b2cb885740f94b49dcf207
parent60d85b947457940978a9c153a59a80c87d46ab4e
implement <allow_any> to specify default answer for any user

This is useful in instances where the OS vendor wants to allow any
user, even remote users logging in via ssh etc., but recognize that
some sites may want to lock this down to a limited set of users.

Suggested by Daniel P. Berrange <berrange@redhat.com>:

<danpb>  my specific use case is that in libvirt we don't mind any user
         querying for VM status info by default
<danpb>  but some admins may wish to lock that ability down
<danpb>  so only designated users can query VM status
<davidz> right
<davidz> it makes sense
<davidz> without having giving it too much thought; adding another stanza to
         the .policy file might make sense
<davidz> <allow_non_session>yes</allow_non_session>
<davidz> danpb: would that work?
<danpb>  yeah, that'd do the trick
<davidz> cool
<davidz> I'll add it then
doc/spec/polkit-spec-configuration.xml
polkit/polkit-policy-default.c
polkit/polkit-policy-default.h
polkit/polkit-policy-file-entry.c
polkit/polkit-policy-file.c