Bug 1545218
| Summary: | make semodule behaviour consistent through all operation if applying to multiple modules | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Dalibor Pospíšil <dapospis> |
| Component: | policycoreutils | Assignee: | Petr Lautrbach <plautrba> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 28 | CC: | dwalsh, mgrepl, plautrba, pmoore, vmojzis |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-08-08 19:49:59 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle. Changing version to '28'. |
Description of problem: semodule -i, -r, and -u can work with more module at the same time as described in man page synopsis. Options -d and -e does not work this way. This is at first against the documentation and second inconsistent behaviour. Version-Release number of selected component (if applicable): policycoreutils-2.7-4.fc27 How reproducible: 100% Steps to Reproduce: 1. # semodule -d zabbix zarafa Actual results: # semodule -d zabbix zarafa unknown additional arguments: zarafa usage: semodule [options]... MODE [MODES]... Manage SELinux policy modules. MODES: -R, --reload reload policy -B, --build build and reload policy -i,--install=MODULE_PKG install a new module -r,--remove=MODULE_NAME remove existing module -l[KIND],--list-modules[=KIND] display list of installed modules KIND: standard list highest priority, enabled modules full list all modules -X,--priority=PRIORITY set priority for following operations (1-999) -e,--enable=MODULE_NAME enable module -d,--disable=MODULE_NAME disable module -E,--extract=MODULE_NAME extract module Other options: -s,--store name of the store to operate on -N,-n,--noreload do not reload policy after commit -h,--help print this message and quit -v,--verbose be verbose -D,--disable_dontaudit Remove dontaudits from policy -P,--preserve_tunables Preserve tunables in policy -C,--ignore-module-cache Rebuild CIL modules compiled from HLL files -p,--path use an alternate path for the policy root -S,--store-path use an alternate path for the policy store root -c, --cil extract module as cil. This only affects module extraction. -H, --hll extract module as hll. This only affects module extraction. Expected results: # semodule -d zabbix zarafa .. both modules are disabled at once Additional info: there's a workaround 'semodule -d zabbix -d zarafa' which is not obvious from the documentation The documentation might be also updated so it says that options -i, -r, -u, -d, and -e can be used multiple times. Regarding to the man page, there is MOD(S) used in synopsis which should be probably MODULE(S).