Bug 442706 - fixfiles prints out 'broken pipe' error when selinux is disabled
Summary: fixfiles prints out 'broken pipe' error when selinux is disabled
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: glpi
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Remi Collet
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F9Target
TreeView+ depends on / blocked
 
Reported: 2008-04-16 11:26 UTC by Karsten Hopp
Modified: 2008-04-25 18:55 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-04-25 18:55:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Karsten Hopp 2008-04-16 11:26:19 UTC
Description of problem:
Several packages run fixfiles in their %post script and the script failes when
selinux is disabled, p.e.:
  Installier: glpi                         ################### [2891/6284]
semodule: SELinux policy is not managed or store cannot be accessed.
cut: Schreibfehler: Datenübergabe unterbrochen (broken pipe)


Version-Release number of selected component (if applicable):
policycoreutils-2.0.46-2.fc9.i386

Comment 1 Daniel Walsh 2008-04-22 21:13:39 UTC
The problem here is the glpi spec file is not checking if SELinux is installed.

It should be using 

semodule -s targeted glpi.pp

You don't need to install a Policy Package for this either.

semanage fcontext could be used.


/etc/glpi(/.*)?          root:object_r:httpd_sys_content_t:s0
/var/log/glpi(/.*)?   system_u:object_r:httpd_sys_content_t:s0
/var/lib/glpi(/.*)?   system_u:object_r:httpd_sys_content_t:s0


This would be better if you specified.

/etc/glpi(/.*)?       system_u:object_r:httpd_sys_content_t:s0
/var/log/glpi(/.*)?   system_u:object_r:httpd_sys_script_rw_t:s0
Do the php scripts actually read/write this directory or could you label it
httpd_log_t?
/var/lib/glpi(/.*)?   system_u:object_r:httpd_sys_script_rw_t:s0


Comment 2 Remi Collet 2008-04-25 18:54:36 UTC
@daniel, thanks

Next release will use semanage fcontext.



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