diff options
author | Jeremy Katz <katzj@redhat.com> | 2004-03-17 04:41:37 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2004-03-17 04:41:37 +0000 |
commit | 02b5f1241306b00c4766c93ae919d950ffabbf0d (patch) | |
tree | 5bc7f15744d452a5202e8629004a0ad684b5fd5f /security.py | |
parent | 3ab4e12e76e4cd6fcfc785cce78c0d8c8bee720e (diff) | |
download | anaconda-02b5f1241306b00c4766c93ae919d950ffabbf0d.tar.gz anaconda-02b5f1241306b00c4766c93ae919d950ffabbf0d.tar.xz anaconda-02b5f1241306b00c4766c93ae919d950ffabbf0d.zip |
quick hack for selinux support in kickstart, syntax may change before the
final release
Diffstat (limited to 'security.py')
-rw-r--r-- | security.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/security.py b/security.py index d6b6e8760..7771dc70c 100644 --- a/security.py +++ b/security.py @@ -41,8 +41,11 @@ class Security: return self.selinux def writeKS(self, f): - # FIXME: we don't support setting this up via kickstart yet - pass + if not selinux_states.has_key(self.selinux): + log("ERROR: unknown selinux state: %s" %(self.selinux,)) + return + + f.write("selinux --%s\n" %(selinux_states[self.selinux],)) def write(self, instPath): args = [ "/usr/sbin/lokkit", "--quiet", "--nostart" ] |