Bug 765227

Summary: sysconfig security calls wrong script to set the default policy
Product: [openSUSE] openSUSE 12.2 Reporter: Manuel Stol <ManuelStol>
Component: YaST2Assignee: Ludwig Nussel <lnussel>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: meissner
Version: Factory   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 12.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Manuel Stol 2012-06-03 09:36:26 UTC
User-Agent:       Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.10.229 Version/11.64

YaST sysconfig editor calls 'polkit_default_privs' instead of 'set_polkit_default_privs', when a default policy setting has been changed.

In /etc/sysconfig/security line 5 is:
## Config:      polkit_default_privs
This should be:
## Config:      set_polkit_default_privs

I think the name of the script has changed sometime in the past
without updating the sysconfig script.
So earlier SuSE versions may be affected as well.





Reproducible: Always

Steps to Reproduce:
1. Start YaST
2. Start: System > /etc/sysconfig Editor
3. Select: System > Security > PolicyKit
4. Change a '*_PRIVS' setting
5. Click [Ok]
Actual Results:  
The sysconfig Editor tries to call the script 'polkit_default_privs',
which does not exist.


Expected Results:  
The script '/sbin/set_polkit_default_privs' should be called to set the changes.


The 'Config:' argument in the sysconfig scripts is used in
/usr/lib/YaST2/bin/parse_configs.pl
Comment 1 Marcus Meissner 2012-06-03 20:09:27 UTC
comes from permissions package
Comment 2 Ludwig Nussel 2012-06-05 12:49:18 UTC
sr#123680
Comment 3 Bernhard Wiedemann 2012-06-05 13:00:08 UTC
This is an autogenerated message for OBS integration:
This bug (765227) was mentioned in
https://build.opensuse.org/request/show/123680 Factory / polkit-default-privs