Bug 463906 - duplicate declaration of type/attribute
Summary: duplicate declaration of type/attribute
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-09-25 09:30 UTC by Dominick Grift
Modified: 2008-10-07 01:50 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-10-07 01:50:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dominick Grift 2008-09-25 09:30:38 UTC
Description of problem:
libsepol.scope_copy_callback: sepostgresql: Duplicate declaration in module: type/attribute sepgsql_unconfined_type

on installation

Version-Release number of selected component (if applicable):
selinux-policy-targeted-3.3.1-91.fc9.noarch

How reproducible:
install sepostgresql/selinux-policy

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Daniel Walsh 2008-09-25 19:28:39 UTC
Is this happening with the default install or when it is compiling in a separate module.

I do not see this here.

Comment 2 Dominick Grift 2008-09-25 21:09:38 UTC
This happens when i update selinux-policy. Upon installation. (yum update)
I do not recall me having modified anything regarding sepostgresql manually here.

This is not my own compilation. i just updated my system.

sh-3.2# /usr/sbin/semodule -l | grep sep
sepostgresql	2.869

Here is an example with packages i downloaded straight from koji:

sh-3.2# rpm -Uvh selinux-policy-3.3.1-94.fc9.noarch.rpm selinux-policy-devel-3.3.1-94.fc9.noarch.rpm selinux-policy-targeted-3.3.1-94.fc9.noarch.rpm
Preparing...                ########################################### [100%]
   1:selinux-policy         ########################################### [ 33%]
   2:selinux-policy-devel   ########################################### [ 67%]
   3:selinux-policy-targeted########################################### [100%]
libsepol.scope_copy_callback: sepostgresql: Duplicate declaration in module: type/attribute sepgsql_unconfined_type
libsemanage.semanage_link_sandbox: Link packages failed
semodule:  Failed!

Comment 3 Dominick Grift 2008-09-26 08:58:43 UTC
I think this may be the real issue:

sh-3.2# rpm -q --scripts sepostgresql
preinstall scriptlet (using /bin/sh):
getent group  sepgsql >/dev/null || groupadd -r sepgsql
getent passwd sepgsql >/dev/null || \
    useradd -r -g sepgsql -d /var/lib/sepgsql -s /bin/bash \
            -c "SE-PostgreSQL server" sepgsql
exit 0
postinstall scriptlet (using /bin/sh):
/sbin/chkconfig --add sepostgresql
/sbin/ldconfig

for selinuxvariant in mls strict targeted
do
    /usr/sbin/semodule -s ${selinuxvariant} -l >& /dev/null || continue;

    /usr/sbin/semodule -s ${selinuxvariant} -l | egrep -q '^sepostgresql' && \
        /usr/sbin/semodule -s ${selinuxvariant} -r sepostgresql >& /dev/null || :
    /usr/sbin/semodule -s ${selinuxvariant} -i /usr/share/selinux/${selinuxvariant}/sepostgresql.pp >& /dev/null || :
done

# Fix up non-standard file contexts
/sbin/fixfiles -R sepostgresql restore || :
/sbin/restorecon -R /var/lib/sepgsql || :
preuninstall scriptlet (using /bin/sh):
if [ $1 -eq 0 ]; then           # rpm -e case
    /sbin/service sepostgresql condstop >/dev/null 2>&1
    /sbin/chkconfig --del sepostgresql
fi
postuninstall scriptlet (using /bin/sh):
/sbin/ldconfig
if [ $1 -ge 1 ]; then           # rpm -U case
    /sbin/service sepostgresql condrestart >/dev/null 2>&1 || :
fi
if [ $1 -eq 0 ]; then           # rpm -e case
    for selinuxvariant in mls strict targeted
    do
        /usr/sbin/semodule -s ${selinuxvariant} -l >& /dev/null || continue;

        /usr/sbin/semodule -s ${selinuxvariant} -l | egrep -q '^sepostgresql' && \
            /usr/sbin/semodule -s ${selinuxvariant} -r sepostgresql >& /dev/null || :
    done
    /sbin/fixfiles -R sepostgresql restore || :
    test -d /var/lib/sepgsql && /sbin/restorecon -R /var/lib/sepgsql || :
fi

Comment 4 KaiGai Kohei 2008-10-07 01:50:35 UTC
sepostgresql-8.3.4-2.1077.fc9 fixes this issue, and now in queue to update.

- https://admin.fedoraproject.org/updates/sepostgresql-8.3.4-2.1077.fc9

Please install the package on selinux-policy-3.3.1-96.fc9 or later.

Thanks,


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