Thursday, April 7, 2016

[389-users] Re: Change of /etc/selinux/config's SELINUX causes port389 fail to start

On 04/07/2016 08:35 AM, Lutz Berger wrote:
> Changing the SELINUX setting from "permissive" to "enforcing" and
> rebooting afterwards causes port389 DS fail to start due to
> a permission problem of /var/run/dirsrv
>
> Interestingly, the ownership of /var/run/dirsrv changed from
> port389:port389 to dirsrv:dirsrv
> after reboot.

Just to check the obvious, those users have different UIDs on the
system, right?

SELinux isn't related to the ownership of files in /run (the target of
the /var/run symlink). Those files ownership are defined in
/etc/tmpfiles.d/*

If the ownership of that directory changed, then you may have
conflicting definitions in /etc/tmpfiles.d, or someone may have made an
unrelated change that replaced or modified those files.

I'm confident that whatever broke your system was not the change from
permissive to enforcing mode in SELinux.

> But, changing the ownership and permissions on the /var/run/dirsrv (
> which is actually nsslapd-rundir )
> back to its original value, doesn't help, i.e. port389 DS doesn't
> start anymore.
>
> A fresh install with setup-ds-admin.pl "solves" my issues.

That being the case, there probably were more ownership changes than
you've described.
--
389 users mailing list
389-users@%(host_name)s
http://lists.fedoraproject.org/admin/lists/389-users@lists.fedoraproject.org

No comments:

Post a Comment