summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-03-20 17:47:26 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-03-20 17:47:26 +0000
commitb0abaf4ef0b4e49106d78362b5b34cf420458d51 (patch)
treec44b3a030c00bc8e49c3d9dff7109cf5c50b0c61 /perl-install/any.pm
parent8c6dcf8a897443cbd4256b043852a6b8599ad852 (diff)
downloaddrakx-b0abaf4ef0b4e49106d78362b5b34cf420458d51.tar
drakx-b0abaf4ef0b4e49106d78362b5b34cf420458d51.tar.gz
drakx-b0abaf4ef0b4e49106d78362b5b34cf420458d51.tar.bz2
drakx-b0abaf4ef0b4e49106d78362b5b34cf420458d51.tar.xz
drakx-b0abaf4ef0b4e49106d78362b5b34cf420458d51.zip
use bastille backend
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm14
1 files changed, 14 insertions, 0 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 2494bd8c0..260983fa8 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -792,4 +792,18 @@ sub runlevel {
}
}
+sub set_security_level {
+ my ($prefix, $security) = @_;
+
+ my %bastille_levels = (
+ 2 => "Lax",
+ 3 => "Moderate",
+ 4 => "Paranoia",
+ );
+ eval {
+ commands::cp("-f", "$prefix/usr/share/Bastille/Workstation" . $bastille_levels{$security} . ".config", "$prefix/etc/Bastille/config");
+ run_program::rooted($prefix, "/usr/sbin/BastilleBackEnd");
+ }
+}
+
1;