Bug 281043 - kcm_polkitactions module doesn't apply or remember changes (System Settings/Actions Policy settings are not written)
Summary: kcm_polkitactions module doesn't apply or remember changes (System Settings/A...
Status: RESOLVED DUPLICATE of bug 266467
Alias: None
Product: policykit-kde-agent-1
Classification: Plasma
Component: kcm_auth (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Dario Freddi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-30 12:31 UTC by youagree
Modified: 2011-11-17 23:48 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description youagree 2011-08-30 12:31:43 UTC
Version:           unspecified (using KDE 4.7.0) 
OS:                Linux

When I wish to change PolicyKit actions in System Settings/Actions Policy, the changes I make are ignored, won't get written and they don't stick.



Reproducible: Always

Steps to Reproduce:
1. Open "System Settings" from the launcher.
2. Start "Actions Policy" control module.
3. Navigate to and select any policy from the tree.If it prompts you for root password (because of another setting) enter root password to access the settings of the policy.[ example: org.freedesktop.udisks.filesystem-mount-system-internal ]
4. On the right side of the window, the current PolicyKit settings will be displayed for the particular policy. Change it to something else using the dropdown menu [ example: change Implicit Authorizations "Active Console" authentication policy "Administrator Authentication (retain)" --> "Yes"]
5. Press Apply. (as settings change is detected by the control module thus Apply button is ungreyed.)


Actual Results:  
6. The policy does not change.

You can check it by either navigating away from the particular policy to the next one, then coming back to view its current status. Or you can close the control module, reopen it and navigate to the policy you attempted to change earlier.
I can see no change from the original setting

[example: Policy org.freedesktop.udisks.filesystem-mount-system-internal implicit authorization for the "Active Console" is still "Administrator Authentication (retain)"]

The changes made are ignored and left unchanged by pressing the Apply button.

Expected Results:  
1. The PolicyKit policy should change according to the change committed in systemsettings control module GUI. 
2. The PolicyKit files containing the policy values should change accordingly.

The changes should apply by pressing the Apply button.

I double checked this with other users. It doesn't work for neither me or them.
Currently the kcm_polkitactions GUI is only useful for viewing the policy settings. For actual policy changes, one must manually edit the .policy files (for me they're stored in /usr/share/polkit-1/actions)
Comment 1 youagree 2011-08-30 12:36:34 UTC
If you want to skip GUI navigation to the Actions Policy kcm module, you can enter in terminal:
kcmshell4 kcm_polkitactions
or
dbus-launch kcmshell4 kcm_polkitactions

Tried as both normal user and root. It doesn't change the situation, the changes I made did not get applied and written.
Comment 2 youagree 2011-09-08 06:33:20 UTC
I think this bug is the same. I checked other users, the Actions Policy module is entirely useless and confusing in its current state. It gives a hard time for new users to realize what the module is intended to do, because it just doesn't work. Users tend to think they're doing something wrong, because the changes have no effect.

I guess this bug describes the same thing (although it may look like a specific one because it talks about a certain policy) but in reality it applies to everything in Actions Policy, i.e. no settings can be saved at all:

https://bugs.kde.org/show_bug.cgi?id=266467

Please test and confirm.
Comment 3 Will Stephenson 2011-11-17 23:41:45 UTC
openSUSE 12.1, 
polkit-kde-agent-1-0.99.0-10.3.1
polkit-kde-kcmmodules-1-0.98.1+git20110929-3.1
polkit-qt-1-0.99.1-16.3.1
polkit-0.102-22.1

I can't confirm this.  I can modify implicit permissions and they take effect, confirmed with pkaction.  I can add explicit permissions to a permission and they are visible upon restarting the module.
Comment 4 Will Stephenson 2011-11-17 23:48:08 UTC
Duh, I am using the fixes mentioned in 266467.

*** This bug has been marked as a duplicate of bug 266467 ***