summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Plugins/CCpp.cpp2
-rw-r--r--src/Daemon/org.fedoraproject.abrt.policy11
2 files changed, 12 insertions, 1 deletions
diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp
index 6c341ce..19b4895 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 2cfa8c6..40b09fc 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>