Bugzilla – Bug 3865
RPM fails to install on Fedora Core 5 with SELinux
Last modified: 2009-01-29 09:47:13 UTC
+++ This bug was initially created as a clone of Bug #3314 +++ workaround is to create the folder /usr/local/slimserver manually... error message is as follows: useradd: cannot create directory /usr/local/slimserver error: %pre(slimserver-2006_04_24-1.noarch) scriptlet failed, exit status 12 error: install %pre scriptlet failed (2), skipping slimserver-2006_04_24-1 This was marked as fixed in Bug #3314 but I just tried to install 6.3.1-1 on a fresh install of Fedora Core 5 and it didn't work. This is pretty much how it running "yum localinstall" with gpgcheck=0 in /etc/yum.conf: wget http://www.slimdevices.com/downloads/SlimServer_v6.3.1/SlimServer_v6.3.1.noarch.rpm [root@coltrane downloads]# yum localinstall SlimServer_v6.3.1.noarch.rpm Loading "installonlyn" plugin Setting up Local Package Process Examining SlimServer_v6.3.1.noarch.rpm: slimserver - 6.3.1-1.noarch Marking SlimServer_v6.3.1.noarch.rpm to be installed Setting up repositories updates [1/3] updates 100% |=========================| 1.2 kB 00:00 core [2/3] core 100% |=========================| 1.1 kB 00:00 extras [3/3] extras 100% |=========================| 1.1 kB 00:00 Reading repository metadata in from local files primary.xml.gz 100% |=========================| 386 kB 00:01 updates : ################################################## 1080/1080 Added 211 new packages, deleted 186 old in 20.37 seconds Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package slimserver.noarch 0:6.3.1-1 set to be updated --> Running transaction check --> Processing Dependency: perl-XML-Parser for package: slimserver --> Restarting Dependency Resolution with new changes. --> Populating transaction set with selected packages. Please wait. ---> Downloading header for perl-XML-Parser to pack into transaction set. perl-XML-Parser-2.34-6.1. 100% |=========================| 10 kB 00:00 ---> Package perl-XML-Parser.i386 0:2.34-6.1.2.2 set to be updated --> Running transaction check --> Processing Dependency: perl(LWP) for package: perl-XML-Parser --> Restarting Dependency Resolution with new changes. --> Populating transaction set with selected packages. Please wait. ---> Downloading header for perl-libwww-perl to pack into transaction set. perl-libwww-perl-5.805-1. 100% |=========================| 23 kB 00:00 ---> Package perl-libwww-perl.noarch 0:5.805-1.1 set to be updated --> Running transaction check --> Processing Dependency: perl(Compress::Zlib) for package: perl-libwww-perl --> Restarting Dependency Resolution with new changes. --> Populating transaction set with selected packages. Please wait. ---> Downloading header for perl-Compress-Zlib to pack into transaction set. perl-Compress-Zlib-1.41-1 100% |=========================| 5.2 kB 00:00 ---> Package perl-Compress-Zlib.i386 0:1.41-1.2.2 set to be updated --> Running transaction check Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: slimserver noarch 6.3.1-1 SlimServer_v6.3.1.noarch.rpm 28 M Installing for dependencies: perl-Compress-Zlib i386 1.41-1.2.2 core 52 k perl-XML-Parser i386 2.34-6.1.2.2 core 211 k perl-libwww-perl noarch 5.805-1.1 core 379 k Transaction Summary ============================================================================= Install 4 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 29 M Is this ok [y/N]: y Downloading Packages: (1/3): perl-Compress-Zlib 100% |=========================| 52 kB 00:00 (2/3): perl-XML-Parser-2. 100% |=========================| 211 kB 00:00 (3/3): perl-libwww-perl-5 100% |=========================| 379 kB 00:01 Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: perl-Compress-Zlib ######################### [1/4] Installing: perl-libwww-perl ######################### [2/4] Installing: perl-XML-Parser ######################### [3/4] useradd: cannot create directory /usr/local/slimserver error: %pre(slimserver-6.3.1-1.noarch) scriptlet failed, exit status 12 error: install: %pre scriptlet failed (2), skipping slimserver-6.3.1-1 Installed: slimserver.noarch 0:6.3.1-1 Dependency Installed: perl-Compress-Zlib.i386 0:1.41-1.2.2 perl-XML-Parser.i386 0:2.34-6.1.2.2 perl-libwww-perl.noarch 0:5. 805-1.1 Complete! I then created the directory manually which worked but still through error messages as the directory was owner by root, not the (yet to be created) slimserver user: [root@coltrane downloads]# mkdir /usr/local/slimserver [root@coltrane downloads]# yum localinstall SlimServer_v6.3.1.noarch.rpm ... ... Downloading Packages: Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction groupadd: group slimserver exists useradd: warning: the home directory already exists. Not copying any file from skel directory into it. Installing: slimserver ######################### [1/1] Point your web browser to http://coltrane:9000/ to configure your server. Installed: slimserver.noarch 0:6.3.1-1 Complete! It is failing because of SELinux! Here is the output from /var/log/messages ... ... ... Aug 4 10:00:45 coltrane yum: Installed: perl-Compress-Zlib.i386 1.41-1.2.2 Aug 4 10:00:50 coltrane yum: Installed: perl-libwww-perl.noarch 5.805-1.1 Aug 4 10:00:52 coltrane yum: Installed: perl-XML-Parser.i386 2.34-6.1.2.2 Aug 4 10:00:53 coltrane kernel: audit(1154682053.233:93): avc: denied { write } for pid=24798 comm="useradd" name="local" dev=dm-0 ino=713173 scontext=user_u:system_r:useradd_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=dir Aug 4 10:00:53 coltrane yum: Installed: slimserver.noarch 6.3.1-1 Aug 4 10:07:06 coltrane kernel: audit(1154682426.061:94): avc: denied { write } for pid=24879 comm="useradd" name="local" dev=dm-0 ino=713173 scontext=user_u:system_r:useradd_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=dir Aug 4 10:07:06 coltrane yum: Installed: slimserver.noarch 6.3.1-1 Aug 4 10:08:17 coltrane kernel: audit(1154682497.813:95): avc: denied { execmod } for pid=24929 comm="slimserver.pl" name="Expat.so" dev=dm-0 ino=1396947 scontext=user_u:system_r:initrc_t:s0 tcontext=system_u:object_r:lib_t:s0 tclass=file Aug 4 10:08:26 coltrane yum: Installed: slimserver.noarch 6.3.1-1 ... ... ...
6.5 is nearing release around the middle of next month, so we're not going to go back and look at this for 6.3.x. The workaround is a good one, and most linux users should be able to implement it without too much difficulty.
Assigned to Fletch at his request per bug 5623
CC'ing Matt who will be updating our repository and working with Fletch.
This is fixed in the new SqueezeCenter RPM which works with SELinux. Technically, FC5 is now past EOL, but the new SC RPM has been tested with the current versions of Fedora. Please see http://forums.slimdevices.com/showthread.php?t=41217 and http://wiki.slimdevices.com/index.cgi?SqueezeCenterRPM for more information. Marking as FIXED.
This bug is being closed since it was resolved for a version which is now released! Please download the new version of SqueezeCenter (formerly SlimServer) at http://www.slimdevices.com/su_downloads.html If you are still seeing this bug, please re-open it and we will consider it for a future release.