Re: [RFC] change policy loading to initramfs

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

 



Bill Nottingham wrote:
> The snippet you quoted *does* print strerror(errno)... there are
> various other errors that the SELinux routines catch, but they
> aren't propagated up in any way that that patch could catch.

So it looks like the message for a missing file might be:
   Unable to load SELinux policy (No such file or directory). Halting now.

This is exactly what happened to me in F8, and it was horrible:
   https://bugzilla.redhat.com/show_bug.cgi?id=343861
The ultimate cause was a bug in pungi:
   https://bugzilla.redhat.com/show_bug.cgi?id=343851
but the error was not discovered until install time (anaconda),
and the error message did not give the name of [any] missing file.

It is unacceptable to say "No such file or directory" unless
it also gives the full literal name of some such file that was
sought, and could have been used (if present and correctly formatted, etc.)

The missing filename turned out to be:
   /etc/selinux/targeted/policy/policy.21

*IF* that filename had appeared with the original message:
   Can't load policy: no such file or directory
then it would have been *very* much easier to debug and fix.

-- 

--
fedora-selinux-list mailing list
fedora-selinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-selinux-list

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux