Bug 158198 - ldap selinux errors
ldap selinux errors
Status: CLOSED DUPLICATE of bug 158185
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted (Show other bugs)
rawhide
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-19 10:50 EDT by Thomas J. Baker
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-05-19 11:09:49 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 Thomas J. Baker 2005-05-19 10:50:39 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.8) Gecko/20050512 Fedora/1.0.4-2 Firefox/1.0.4

Description of problem:
I can't start ldap with selinux enabled:
fc4t3 + may 18th rawhide. I copied my /var/lib/ldap from FC3, made sure permissions were OK, and tried to start it.

wintermute> su
Password:
[tjb@wintermute tjb]# restorecon -R /var/lib/ldap
[tjb@wintermute tjb]# /etc/init.d/ldap start
Checking configuration files for :                         [  OK  ]
Starting slapd:                                            [FAILED]
[tjb@wintermute tjb]#

The audit log says this:

type=AVC msg=audit(1116510663.072:2254113): avc:  denied  { dac_override } for  capability=1 scontext=root:system_r:slapd_t tcontext=root:system_r:slapd_t tclass=capability
type=AVC msg=audit(1116510663.072:2254113): avc:  denied  { dac_read_search } for  capability=2 scontext=root:system_r:slapd_t tcontext=root:system_r:slapd_t tclass=capability
type=SYSCALL msg=audit(1116510663.072:2254113): syscall=4 arch=c000003e success=no exit=-13 a0=555555849bd0 a1=7fffffeb6750 a2=7fffffeb6750 a3=2aaaaaae8000 items=1 pid=9609 loginuid=-1 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 comm=slaptest exe=/usr/sbin/slapd
type=PATH msg=audit(1116510663.072:2254113): item=0 name="/var/lib/ldap/DB_CONFIG" inode=2262467 dev=fd:00 mode=040700 ouid=55 ogid=55 rdev=00:00
type=AVC msg=audit(1116510663.072:2254114): avc:  denied  { dac_override } for  capability=1 scontext=root:system_r:slapd_t tcontext=root:system_r:slapd_t tclass=capability
type=AVC msg=audit(1116510663.072:2254114): avc:  denied  { dac_read_search } for  capability=2 scontext=root:system_r:slapd_t tcontext=root:system_r:slapd_t tclass=capability
type=SYSCALL msg=audit(1116510663.072:2254114): syscall=2 arch=c000003e success=no exit=-13 a0=555555849bd0 a1=0 a2=1b6 a3=0 items=1 pid=9609 loginuid=-1 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 comm=slaptest exe=/usr/sbin/slapd
type=PATH msg=audit(1116510663.072:2254114): item=0 name="/var/lib/ldap/DB_CONFIG" inode=2262467 dev=fd:00 mode=040700 ouid=55 ogid=55 rdev=00:00
type=AVC msg=audit(1116510663.072:2254116): avc:  denied  { dac_override } for  capability=1 scontext=root:system_r:slapd_t tcontext=root:system_r:slapd_t tclass=capability
type=AVC msg=audit(1116510663.072:2254116): avc:  denied  { dac_read_search } for  capability=2 scontext=root:system_r:slapd_t tcontext=root:system_r:slapd_t tclass=capability
type=SYSCALL msg=audit(1116510663.072:2254116): syscall=4 arch=c000003e success=no exit=-13 a0=55555584a900 a1=7fffffeb67c0 a2=7fffffeb67c0 a3=55555584a90e items=1 pid=9609 loginuid=-1 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 comm=slaptest exe=/usr/sbin/slapd
type=PATH msg=audit(1116510663.072:2254116): item=0 name="/var/lib/ldap/__db.002" inode=2262467 dev=fd:00 mode=040700 ouid=55 ogid=55 rdev=00:00
type=AVC msg=audit(1116510663.133:2255606): avc:  denied  { search } for  name=pki dev=dm-0 ino=196669 scontext=root:system_r:slapd_t tcontext=system_u:object_r:cert_t tclass=dir
type=SYSCALL msg=audit(1116510663.133:2255606): syscall=2 arch=c000003e success=no exit=-13 a0=5555558449b0 a1=0 a2=1b6 a3=0 items=1 pid=9612 loginuid=-1 uid=55 gid=55 euid=55 suid=55 fsuid=55 egid=55 sgid=55 fsgid=55 comm=slapd exe=/usr/sbin/slapd
type=PATH msg=audit(1116510663.133:2255606): item=0 name="/etc/pki/tls/certs/ca-bundle.crt" inode=196669 dev=fd:00 mode=040755 ouid=0 ogid=0 rdev=00:00




Version-Release number of selected component (if applicable):
selinux-policy-targeted-1.23.16-1

How reproducible:
Always

Steps to Reproduce:
1. install openldap-servers, try to start it with selinux enabled
2.
3.
  

Actual Results:  selinux errors

Expected Results:  started normally

Additional info:
Comment 1 Daniel Walsh 2005-05-19 11:09:49 EDT

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

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