Bug 980411 - sepolgen --dbus generate policy that doesn't compile
sepolgen --dbus generate policy that doesn't compile
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: policycoreutils (Show other bugs)
19
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Daniel Walsh
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-02 06:02 EDT by Michael Scherer
Modified: 2013-07-02 06:06 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-07-02 06:06:15 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Michael Scherer 2013-07-02 06:02:17 EDT
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 Scherer 2013-07-02 06:06:15 EDT
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.