Bug 680545

Summary: cannot disable a removed module
Product: [Fedora] Fedora Reporter: Eric Paris <eparis>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: 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-02-25 21:19:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Eric Paris 2011-02-25 21:01:04 UTC
I removed the unconfined module:

semodule -r unconfined

And then realized I wanted to disable it, so you didn't put it back

semodule -d unconfined

But it doesn't work:

# semodule -d unconfined
libsemanage.semanage_direct_disable: Module unconfined was not found. (No such file or directory).
semodule:  Failed!

I'd like to be able to disable a module which isn't currently loaded so it won't come back....

Comment 1 Daniel Walsh 2011-02-25 21:19:55 UTC
semodule -i /usr/share/selinux/targeted/unconfined.pp.bz2
semodule -d unconfined