Bug 980411

Summary: sepolgen --dbus generate policy that doesn't compile
Product: [Fedora] Fedora Reporter: Michael S. <misc>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: 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: 2013-07-02 10:06:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael S. 2013-07-02 10:02:17 UTC
Description of problem:

sepolgen --dbus create a policy with errors :

/tmp/test $ sepolgen --dbus /usr/libexec/telepathy-gabble
Modules complémentaires chargés : auto-update-debuginfo, langpacks, refresh-
                                : packagekit
Created the following files:
/tmp/test/telepathy_gabble.te # Fichier d'application de type
/tmp/test/telepathy_gabble.if # Fichier interface
/tmp/test/telepathy_gabble.fc # Fichier de contexte fichier
/tmp/test/telepathy_gabble_selinux.spec # Fichier de spécification
/tmp/test/telepathy_gabble.sh # Script de configuration

/tmp/test $ sudo ./telepathy_gabble.sh                   
[sudo] password for misc: 
Building and Loading Policy
+ make -f /usr/share/selinux/devel/Makefile telepathy_gabble.pp
telepathy_gabble.if:34: Error: duplicate definition of telepathy_gabble_dbus_chat(). Original definition on 119.
Compiling targeted telepathy_gabble module
/usr/bin/checkmodule:  loading policy configuration from tmp/telepathy_gabble.tmp
/usr/bin/checkmodule:  policy configuration loaded
/usr/bin/checkmodule:  writing binary representation (version 17) to tmp/telepathy_gabble.mod
Creating targeted telepathy_gabble.pp policy package
rm tmp/telepathy_gabble.mod.fc tmp/telepathy_gabble.mod
+ /usr/sbin/semodule -i telepathy_gabble.pp
libsepol.scope_copy_callback: telepathy_gabble: Duplicate declaration in module: type/attribute telepathy_gabble_t (No such file or directory).
libsemanage.semanage_link_sandbox: Link packages failed (No such file or directory).
/usr/sbin/semodule:  Failed!


I guess it would be better to have it working out of the box.

Comment 1 Michael S. 2013-07-02 10:06:15 UTC
Ok, wrong bug, didn't see that a telepathy module already exist :/