SELinux is not enabled on my system. Nevertheless, on every yum upgrade, I get this error: Updating : selinux-policy-targeted ####################### [12/61] libsepol.scope_copy_callback: moilscanner: Duplicate declaration in module: type/attribute mailscanner_spool_t libsemanage.semanage_link_sandbox: Link packages failed semodule: Failed! (Note mOilscanner/mAilscanner - is that something to do with it). I've never touched SELinux on this particular machine - no custom policy, etc. It's never been enabled.
semanage -r moilscanner Should fix it. There was a bad update that you got a badly named policy.
Doesn't fix it: # semanage -r moilscanner semanage {login|user|port|interface|fcontext|translation} -l [-n] semanage login -{a|d|m} [-sr] login_name semanage user -{a|d|m} [-LrRP] selinux_name semanage port -{a|d|m} [-tr] [ -p protocol ] port | port_range semanage interface -{a|d|m} [-tr] interface_spec semanage fcontext -{a|d|m} [-frst] file_spec semanage translation -{a|d|m} [-T] level Primary Options: -a, --add Add a OBJECT record NAME -d, --delete Delete a OBJECT record NAME -m, --modify Modify a OBJECT record NAME -l, --list List the OBJECTS -h, --help Display this message -n, --noheading Do not print heading when listing OBJECTS Object-specific Options (see above): -f, --ftype File Type of OBJECT "" (all files) -- (regular file) -d (directory) -c (character device) -b (block device) -s (socket) -l (symbolic link) -p (named pipe) -p, --proto Port protocol (tcp or udp) -P, --prefix Prefix for home directory labeling -L, --level Default SELinux Level (MLS/MCS Systems only) -R, --roles SELinux Roles (ex: "sysadm_r staff_r") -T, --trans SELinux Level Translation (MLS/MCS Systems only) -s, --seuser SELinux User Name -t, --type SELinux Type for the object -r, --range MLS/MCS Security Range (MLS/MCS Systems only) -r not defined
Sorry should be. # semodule -r moilscanner
Bulk closing a old selinux policy bugs that were in the modified state. If the bug is still not fixed. Please reopen.