diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-03-20 17:47:26 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-03-20 17:47:26 +0000 |
commit | b0abaf4ef0b4e49106d78362b5b34cf420458d51 (patch) | |
tree | c44b3a030c00bc8e49c3d9dff7109cf5c50b0c61 /perl-install/any.pm | |
parent | 8c6dcf8a897443cbd4256b043852a6b8599ad852 (diff) | |
download | drakx-backup-do-not-use-b0abaf4ef0b4e49106d78362b5b34cf420458d51.tar drakx-backup-do-not-use-b0abaf4ef0b4e49106d78362b5b34cf420458d51.tar.gz drakx-backup-do-not-use-b0abaf4ef0b4e49106d78362b5b34cf420458d51.tar.bz2 drakx-backup-do-not-use-b0abaf4ef0b4e49106d78362b5b34cf420458d51.tar.xz drakx-backup-do-not-use-b0abaf4ef0b4e49106d78362b5b34cf420458d51.zip |
use bastille backend
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r-- | perl-install/any.pm | 14 |
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; |