Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 467284

Summary: Revert button doesn't work in system-config-selinux
Product: [Fedora] Fedora Reporter: Christopher D. Stover <quantumburnz>
Component: policycoreutilsAssignee: Christopher Pardy <cpardy>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 10CC: dwalsh, jlaska, mclasen, mgrepl, quantumburnz
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-26 21:03:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 438944, 465130    

Description Christopher D. Stover 2008-10-16 17:22:58 UTC
Description of problem: Checking options under the boolean tab works fine and modified options show up under the custom view.  However, if you click on one of these options in the customized view and click the Revert button, nothing happens.

Version-Release number of selected component (if applicable):
GNOME SELinux Management Tool 5
Version 2.24.1

How reproducible:
Every time.

Steps to Reproduce:
1. Run system-config-selinux
2. Go to the Boolean tab
3. Modify an option by checking the box
4. Click on the Customized view
5. Choose an option to revert
6. Click the revert button
  
Actual results:
Nothing happens.

Expected results:
Option should return to the default value and be removed from the customized display.

Additional info:
Traceback (most recent call last):
  File "/usr/share/system-config-selinux/system-config-selinux.py", line 122, in delete
    self.tabs[self.notebook.get_current_page()].deleteDialog()
  File "/usr/share/system-config-selinux/booleansPage.py", line 164, in deleteDialog
    self.booleansView.get_root_window().set_cursor(cursor)
NameError: global name 'cursor' is not defined

Comment 1 Matthias Clasen 2008-10-19 03:46:08 UTC
Changing that line to 

            self.booleansView.get_root_window().set_cursor(self.ready_cursor)

makes the warning  go away

Comment 2 Bug Zapper 2008-11-26 03:55:50 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Christopher Pardy 2009-06-26 21:03:17 UTC
revert simply changes the system settings to match the default ones, the items will still be displayed in customized and will only change if they are diffrent than the system settings.