Re: [lorax 2/2] Check if selinux is not in Enforcing mode (##824835)

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

 



On Tue, 2012-05-29 at 11:02 +0200, Martin Gracik wrote:
> Selinux causes problems for rpm scriptlets in the installroot.

You could use the selinux module instead:

import selinux
if selinux.security_getenforce():
    ...

There's also selinux.security_setenforce(), if you want to turn it off..

Also, could you make a note (in a comment in the code) about *why* we
need to turn off SELinux (i.e. what goes wrong when it's left on), so we
can work on fixing that later?

-w

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux