Bug 733453
Summary: | semange reports incorrect boolean value when default value changes | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Garrett Holmstrom <gholms> | ||||
Component: | policycoreutils | Assignee: | Daniel Walsh <dwalsh> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | rawhide | CC: | dwalsh, mgrepl | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2011-09-06 20:33: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: | |||||||
Attachments: |
|
Description
Garrett Holmstrom
2011-08-25 18:17:25 UTC
I am not sure I believe you, I will have to check, but the command is currently broken in that it shows you the default state as written in policy and not the current state of the system. # setsebool git_system_use_cifs on # getsebool git_system_use_cifs git_system_use_cifs --> on # semanage boolean -l | grep git_system_use_cifs git_system_use_cifs -> off Allow Git daemon system to access cifs file systems. Which looks semanage is actually reading the policy as stored on disk. The tool should be changed to show the current state versus the default state Could you attach your policy? Created attachment 519972 [details] Minimal test policy for bug #733453 The policy I used to test, when first loaded, has only a tunable that defaults to on: > policy_module(test_policy, 1.0.0) > gen_tunable(test_policy_bool, true) At that point semanage reports it as on: semanage boolean -l | grep test_policy test_policy_bool -> on test_policy_bool The edited policy changes the default and bumps the policy version: > policy_module(test_policy, 1.1.0) > gen_tunable(test_policy_bool, false) And then semanage and getsebool disagree: # semanage boolean -l | grep test_policy test_policy_bool -> off test_policy_bool # getsebool test_policy_bool test_policy_bool --> on Of course if semanage is *supposed* to report only the state on disk then this probably isn't a bug at all. Correct the code is working correctly, but the semanage command should be changed to report the current state as well as the default state, (state on disk. Fixed in policycoreutils-2.1.5-2.fc17.x86_64 |