[rhelv6-list] selinux question

John Haxby john.haxby at gmail.com
Thu Dec 27 09:30:15 UTC 2012


On 27 December 2012 04:36, solarflow99 <solarflow99 at gmail.com> wrote:

> # semanage boolean -l
> libsemanage.semanage_read_policydb: Could not open kernel policy
> /etc/selinux/targeted/modules/active/policy.kern for reading. (No such
> file or directory).
> /usr/sbin/semanage: Could not test MLS enabled status
>
>
> and when I check, the files are in fact missing:
>
>
> # ls -l /etc/selinux/targeted/modules/active/
> total 12
> drwx------. 3 root root 4096 Oct 23 17:19 ./
> drwxr-xr-x. 3 root root 4096 Oct 23 17:19 ../
> drwx------. 2 root root 4096 Oct 23 17:19 modules/
>
> # ls -l /etc/selinux/targeted/modules/active/modules/
> total 8
> drwx------. 2 root root 4096 Oct 23 17:19 ./
> drwx------. 3 root root 4096 Oct 23 17:19 ../
>
>
>
>
> Anyone have an idea how this can be fixed?
>


I believe those files are created by the selinux-policy-targeted
postinstall scriptlet.   You can either pull that out and re-run it or just
reinstall the RPM.   I guess you might want to relabel everything again and
get the anglepoise lamp out to find out who removed the missing files.

jch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhelv6-list/attachments/20121227/f5ac6380/attachment.htm>


More information about the rhelv6-list mailing list