[389-users] selinux error on update to RC6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I updated to the latest RC for 1.2.6 and now when I try to start dirsrv I get the attached error message.

running 'restorecon -R /usr/lib64/dirsrv' did fix the problem for me, just letting you guys know.

Thanks,

Aaron


Summary:

SELinux is preventing /usr/sbin/ns-slapd "getattr" access to /usr/lib64/dirsrv.

Detailed Description:

SELinux denied access requested by ns-slapd. /usr/lib64/dirsrv may be a
mislabeled. /usr/lib64/dirsrv default SELinux type is lib_t, but its current
type is unlabeled_t. Changing this file back to the default type, may fix your
problem.

File contexts can be assigned to a file in the following ways.

  * Files created in a directory receive the file context of the parent
    directory by default.
  * The SELinux policy might override the default label inherited from the
    parent directory by specifying a process running in context A which creates
    a file in a directory labeled B will instead create the file with label C.
    An example of this would be the dhcp client running with the dhclient_t type
    and creating a file in the directory /etc. This file would normally receive
    the etc_t type due to parental inheritance but instead the file is labeled
    with the net_conf_t type because the SELinux policy specifies this.
  * Users can change the file context on a file using tools such as chcon, or
    restorecon.

This file could have been mislabeled either by user error, or if an normally
confined application was run under the wrong domain.

However, this might also indicate a bug in SELinux because the file should not
have been labeled with this type.

If you believe this is a bug, please file a bug report against this package.

Allowing Access:

You can restore the default system context to this file by executing the
restorecon command. restorecon '/usr/lib64/dirsrv', if this file is a directory,
you can recursively restore using restorecon -R '/usr/lib64/dirsrv'.

Fix Command:

/sbin/restorecon '/usr/lib64/dirsrv'

Additional Information:

Source Context                unconfined_u:system_r:dirsrv_t:s0
Target Context                system_u:object_r:unlabeled_t:s0
Target Objects                /usr/lib64/dirsrv [ dir ]
Source                        ns-slapd
Source Path                   /usr/sbin/ns-slapd
Port                          <Unknown>
Host                          barfolomew.hra.local
Source RPM Packages           389-ds-base-1.2.6-0.9.rc6.fc13
Target RPM Packages           389-ds-base-1.2.6-0.9.rc6.fc13
Policy RPM                    selinux-policy-3.7.19-41.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   restorecon
Host Name                     barfolomew.hra.local
Platform                      Linux barfolomew.hra.local
                              2.6.33.6-147.2.4.fc13.x86_64 #1 SMP Fri Jul 23
                              17:14:44 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Tue 10 Aug 2010 10:16:15 AM CDT
Last Seen                     Tue 10 Aug 2010 10:16:15 AM CDT
Local ID                      09d57a9b-1afc-437e-b961-fe914c2e7413
Line Numbers                  

Raw Audit Messages            

node=barfolomew.hra.local type=AVC msg=audit(1281453375.240:31586): avc:  denied  { getattr } for  pid=6480 comm="ns-slapd" path="/usr/lib64/dirsrv" dev=dm-1 ino=1048502 scontext=unconfined_u:system_r:dirsrv_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=dir

node=barfolomew.hra.local type=SYSCALL msg=audit(1281453375.240:31586): arch=c000003e syscall=4 success=no exit=-13 a0=7ffff584c860 a1=7ffff584c910 a2=7ffff584c910 a3=ffffffff items=0 ppid=6479 pid=6480 auid=2397 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="ns-slapd" exe="/usr/sbin/ns-slapd" subj=unconfined_u:system_r:dirsrv_t:s0 key=(null)


--
389 users mailing list
389-users@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/389-users

[Index of Archives]     [Fedora Directory Users]     [Fedora Directory Devel]     [Fedora Announce]     [Fedora Legacy Announce]     [Kernel]     [Fedora Legacy]     [Share Photos]     [Fedora Desktop]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux