summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-03-17 04:41:37 +0000
committerJeremy Katz <katzj@redhat.com>2004-03-17 04:41:37 +0000
commit02b5f1241306b00c4766c93ae919d950ffabbf0d (patch)
tree5bc7f15744d452a5202e8629004a0ad684b5fd5f /kickstart.py
parent3ab4e12e76e4cd6fcfc785cce78c0d8c8bee720e (diff)
downloadanaconda-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 'kickstart.py')
-rw-r--r--kickstart.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/kickstart.py b/kickstart.py
index 7533dd13d..4050aa0b1 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -138,6 +138,24 @@ class KickstartBase(BaseInstallClass):
self.setFirewall(id, enable, trusts, ports, ssh, telnet,
smtp, http, ftp)
+
+ def doSELinux(self, id, args):
+ (args, extra) = isys.getopt(args, '',
+ [ 'disabled', 'enforcing',
+ 'permissive' ] )
+
+ sel = 2
+
+ for n in args:
+ (str, arg) = n
+ if str == "--disabled":
+ sel = 0
+ elif str == "--permissive":
+ sel = 1
+ elif str == "--enforcing":
+ sel = 2
+
+ self.setSELinux(id, sel)
def doAuthconfig(self, id, args):
(args, extra) = isys.getopt(args, '',