Bug 209303 - Jabberd fails to install cleanly due to selinux permission problems
Jabberd fails to install cleanly due to selinux permission problems
Status: CLOSED DUPLICATE of bug 175219
Product: Fedora
Classification: Fedora
Component: jabberd (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Adrian Reber
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-10-04 10:43 EDT by Wade Mealing
Modified: 2007-11-30 17:11 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-08-19 09:04:31 EDT
Type: ---
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 Wade Mealing 2006-10-04 10:43:05 EDT
Description of problem:

During the install procedure, selinux prevents the useradd utility (run by the
jabberd rpm) from writing to "lib"

Version-Release number of selected component (if applicable):

jabberd.i386 0:2.0-0.s11.11.fc6

How reproducible:

Every time.

Steps to Reproduce:
1. Install FC6 Devel (currentl rawhide)
2. yum install jabberd
3. Wait.
  
Actual results:

Downloading Packages:
(1/3): jabberd-2.0-0.s11. 100% |=========================| 556 kB    00:08     
(2/3): mysql-5.0.22-2.1.i 100% |=========================| 3.0 MB    01:09     
(3/3): perl-DBI-1.52-1.fc 100% |=========================| 605 kB    00:12     
Running Transaction Test
warning: mysql-5.0.22-2.1: Header V3 DSA signature: NOKEY, key ID 897da07a
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: perl-DBI                     ######################### [1/3] 
  Installing: mysql                        ######################### [2/3] 
warning: user jabber does not exist - using root
warning: group jabber does not exist - using root
  Installing: jabberd                                               
[3/3]warning: user jabber does not exist - using root
warning: group jabber does not exist - using root
  Installing: jabberd                                               
[3/3]warning: user jabber does not exist - using root
warning: group jabber does not exist - using root
  Installing: jabberd                                               
[3/3]warning: user jabber does not exist - using root
warning: group jabber does not exist - using root
  Installing: jabberd                                               
[3/3]warning: user jabber does not exist - using root
warning: group jabber does not exist - using root
  Installing: jabberd                                               
[3/3]warning: user jabber does not exist - using root
warning: group jabber does not exist - using root
  Installing: jabberd                                               
[3/3]warning: user jabber does not exist - using root
warning: group jabber does not exist - using root
  Installing: jabberd                                               
[3/3]warning: user jabber does not exist - using root
warning: group jabber does not exist - using root
  Installing: jabberd                                               
[3/3]warning: user jabber does not exist - using root
warning: group jabber does not exist - using root
  Installing: jabberd                                               
[3/3]warning: user jabber does not exist - using root
warning: group jabber does not exist - using root
  Installing: jabberd                                               
[3/3]warning: user jabber does not exist - using root
warning: group jabber does not exist - using root
  Installing: jabberd                                               
[3/3]warning: user jabber does not exist - using root
warning: group jabber does not exist - using root
  Installing: jabberd                      #                        
[3/3]warning: user jabber does not exist - using root
warning: group jabber does not exist - using root
  Installing: jabberd                      #                        
[3/3]warning: user jabber does not exist - using root
warning: group jabber does not exist - using root
  Installing: jabberd                      #                        
[3/3]warning: user jabber does not exist - using root
warning: group jabber does not exist - using root
  Installing: jabberd                      #                        
[3/3]warning: user jabber does not exist - using root
warning: group jabber does not exist - using root
  Installing: jabberd                      ######################## 
[3/3]warning: user jabber does not exist - using root
warning: group jabber does not exist - using root
  Installing: jabberd                      ######################## 
[3/3]warning: user jabber does not exist - using root
warning: group jabber does not exist - using root
  Installing: jabberd                      ######################## 
[3/3]warning: user jabber does not exist - using root
warning: group jabber does not exist - using root
  Installing: jabberd                      ######################## 
[3/3]warning: user jabber does not exist - using root
warning: group jabber does not exist - using root
  Installing: jabberd                      ######################### [3/3] 
/bin/chown: `root.jabber': invalid user

Installed: jabberd.i386 0:2.0-0.s11.11.fc6
Dependency Installed: mysql.i386 0:5.0.22-2.1 perl-DBI.i386 0:1.52-1.fc6
Complete!

Expected results:

No errors during the install.


Additional info:

Seems fine if you manually add the user before hand, although the package is yet
untested.
Comment 1 Adrian Reber 2006-10-04 13:16:42 EDT
Any idea how this can be fixed? I never use selinux and I have therefore no clue
how to fix it.
Comment 2 Wade Mealing 2006-10-10 08:22:47 EDT
Well, I'd start by setting the context and permissions on the files.

Get a clean FC6 Install (current rawhide works mostly) then strart looking
through the logs for avc error messages, correct each one, either by chcon or
talking to the mailing list.

Rince and repeat the process till an install/remove does not complain anymore.
Comment 3 Sergio Pascual 2007-06-21 09:41:55 EDT
Perhaps this can be usefull: http://fedoraproject.org/wiki/PackageUserCreation
Comment 4 Adrian Reber 2007-06-21 09:58:42 EDT
Sorry, but I do not see how this link can be useful.

The problem here is that I am completely clueless when it comes to selinux and
have disabled selinux on all systems I am using.

So I am not able to fix this bug myself.
Comment 5 Sergio Pascual 2007-06-21 10:55:10 EDT
The bug appears during user creation with useradd, perhaps the method exposed in
PackageUserCreation can get around the problem
Comment 6 Sergio Pascual 2007-08-19 09:04:31 EDT

*** This bug has been marked as a duplicate of 175219 ***

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