Bug 980411 - sepolgen --dbus generate policy that doesn't compile
Summary: sepolgen --dbus generate policy that doesn't compile
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-02 10:02 UTC by Michael S.
Modified: 2013-07-02 10:06 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-07-02 10:06:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 :/


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