diff options
author | dnovotny <danny@rawhide.localdomain> | 2009-09-16 11:28:53 -0400 |
---|---|---|
committer | dnovotny <danny@rawhide.localdomain> | 2009-09-16 11:28:53 -0400 |
commit | bb586580bee93c67f2b7b40c99d0a38ea02593c4 (patch) | |
tree | 138b3af7f784aeef104ca10062d1dc32e6475fa3 | |
parent | f9711824064a68384575d559cfb3e86068b605b4 (diff) | |
download | abrt-bb586580bee93c67f2b7b40c99d0a38ea02593c4.tar.gz abrt-bb586580bee93c67f2b7b40c99d0a38ea02593c4.tar.xz abrt-bb586580bee93c67f2b7b40c99d0a38ea02593c4.zip |
new polkit action for installing debuginfo, default "yes"
-rw-r--r-- | lib/Plugins/CCpp.cpp | 2 | ||||
-rw-r--r-- | src/Daemon/org.fedoraproject.abrt.policy | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp index 6c341cea..19b48952 100644 --- a/lib/Plugins/CCpp.cpp +++ b/lib/Plugins/CCpp.cpp @@ -526,7 +526,7 @@ static bool DebuginfoCheckPolkit(int uid) //child setuid(uid); result = polkit_check_authorization(getpid(), - "org.fedoraproject.abrt.change-daemon-settings"); + "org.fedoraproject.abrt.install-debuginfos"); if (result == PolkitYes) { exit(0); //authentication OK diff --git a/src/Daemon/org.fedoraproject.abrt.policy b/src/Daemon/org.fedoraproject.abrt.policy index 2cfa8c6e..40b09fc7 100644 --- a/src/Daemon/org.fedoraproject.abrt.policy +++ b/src/Daemon/org.fedoraproject.abrt.policy @@ -24,4 +24,15 @@ Copyright (c) 2009 Red Hat inc. <allow_inactive>no</allow_inactive> </defaults> </action> + + <!-- install-debuginfos: default yes, administrator can change this --> + <action id="org.fedoraproject.abrt.install-debuginfos"> + <description>Manage settings</description> + <message>Changing the global settings requires authentication</message> + <defaults> + <allow_any>no</allow_any> + <allow_active>yes</allow_active> + <allow_inactive>no</allow_inactive> + </defaults> + </action> </policyconfig> |