Bug 1294228 - audit2allow suggest I run "semange" instead of "semanage"
Summary: audit2allow suggest I run "semange" instead of "semanage"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: 23
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Lautrbach
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-25 15:35 UTC by Daniel
Modified: 2016-02-23 19:21 UTC (History)
4 users (show)

Fixed In Version: policycoreutils-2.4-20.fc23
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-23 19:21:53 UTC


Attachments (Terms of Use)

Description Daniel 2015-12-25 15:35:56 UTC
Run audit2allow, and it’ll suggest you run the non-existing "semange" command rather than "semanage".

# cat /var/log/audit/autid.log | audit2allow
#============= httpd_t ==============

#!!!! WARNING 'httpd_t' is not allowed to write or create to lib_t.  Change the label to httpd_var_lib_t.
#!!!! $ semange fcontext -a -t httpd_var_lib_t /usr/share/nginx/sites/example.com/data/   
#!!!! $ restorecon -R -v /usr/share/nginx/sites/example.com/data/
allow httpd_t lib_t:file write;
# semange fcontext -a -t httpd_var_lib_t /usr/share/nginx/sites/example.com/data/
-bash: semange: command not found
# semanage fcontext -a -t httpd_var_lib_t /usr/share/nginx/sites/example.com/data/

Comment 3 Fedora Update System 2016-02-21 13:31:16 UTC
policycoreutils-2.4-20.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-a7b86cd38e

Comment 4 Fedora Update System 2016-02-22 04:21:37 UTC
policycoreutils-2.4-20.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-a7b86cd38e

Comment 5 Fedora Update System 2016-02-23 19:21:45 UTC
policycoreutils-2.4-20.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.