Bug 366571 - Error occurs on every upgrade
Summary: Error occurs on every upgrade
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 7
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-11-05 10:59 UTC by David Anderson
Modified: 2008-01-30 19:05 UTC (History)
0 users

Fixed In Version: Current
Clone Of:
Environment:
Last Closed: 2008-01-30 19:05:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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