Bug 366571

Summary: Error occurs on every upgrade
Product: [Fedora] Fedora Reporter: David Anderson <david>
Component: selinux-policy-targetedAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: low Docs Contact:
Priority: low    
Version: 7Keywords: Reopened
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Current Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-30 19:05:50 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:

Description David Anderson 2007-11-05 10:59:20 UTC
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.

Comment 1 Daniel Walsh 2007-11-05 16:59:58 UTC
semanage -r moilscanner

Should fix it.

There was a bad update that you  got a badly named policy.



Comment 2 David Anderson 2007-11-10 11:55:01 UTC
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


Comment 3 Daniel Walsh 2007-11-10 13:17:36 UTC
Sorry should be.

# semodule -r moilscanner

Comment 4 Daniel Walsh 2008-01-30 19:05:50 UTC
Bulk closing a old selinux policy bugs that were in the modified state.  If the
bug is still not fixed.  Please reopen.