summaryrefslogtreecommitdiff
path: root/security/Bastille/patches
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-06-06 22:37:59 +0000
committerrillig <rillig@pkgsrc.org>2007-06-06 22:37:59 +0000
commit5342a2244828d9aff815fb2e71f108215a06658c (patch)
tree26afaaaa76382407afe65adfe8d165ac22cc0581 /security/Bastille/patches
parentdfcc9baa5cb4186218bd38ae6a665b0530571ee5 (diff)
downloadpkgsrc-5342a2244828d9aff815fb2e71f108215a06658c.tar.gz
Imported Bastille from pkgsrc-wip.
Bastille is a system hardening / lockdown program which enhances the security of a Unix host. It configures daemons, system settings and firewalls to be more secure. It can shut off unneeded services like rcp and rlogin, and helps create "chroot jails" that help limit the vulnerability of common Internet services like Web services and DNS. This tool currently hardens Red Hat (Fedora Core, Enterprise and Legacy/Classic), SuSE, Debian, Gentoo, Mandrake Linux, HP-UX, Mac OS X and Turbo Linux. If run in the preferred interactive mode, it can teach you a good deal about security while personalizing your system security state. Bastille can also assess and report on the state of a system, which may serve as an aid to security administrators, auditors and system administrators who wish to investigate the state of their system's hardening without making changes to such. This assessment functionality has only been tested on Red Hat Linux (Fedora, Legacy, Enterprise) and SUSE systems.
Diffstat (limited to 'security/Bastille/patches')
-rw-r--r--security/Bastille/patches/patch-aa30
-rw-r--r--security/Bastille/patches/patch-ab32
-rw-r--r--security/Bastille/patches/patch-ac13
3 files changed, 75 insertions, 0 deletions
diff --git a/security/Bastille/patches/patch-aa b/security/Bastille/patches/patch-aa
new file mode 100644
index 00000000000..4dbcfe7b063
--- /dev/null
+++ b/security/Bastille/patches/patch-aa
@@ -0,0 +1,30 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/06/06 22:37:59 rillig Exp $
+
+--- bin/bastille.orig 2005-04-19 23:12:09.000000000 +0200
++++ bin/bastille 2006-12-03 09:00:32.000000000 +0100
+@@ -66,21 +66,10 @@ EOF
+ }
+
+ systemFileLocations() {
+-
+- OS=`uname -s`
+- if [ ${OS}x = "HP-UXx" ]; then # find right comparison directories for config files
+- config_repository="/etc/opt/sec_mgmt/bastille"
+- last_config="/var/opt/sec_mgmt/bastille/last.config"
+- scripts_location="/opt/sec_mgmt/bastille/bin"
+- else #Linux locations
+- config_repository="/etc/Bastille"
+- last_config="/var/log/Bastille/last.config"
+- scripts_location="/usr/sbin"
+- data_location="/usr/share/Bastille"
+- fi
+-
+-
+-
++ config_repository="@PKG_SYSCONFDIR@/etc"
++ last_config="@VARBASE@/log/Bastille/last.config"
++ scripts_location="@PREFIX@/sbin"
++ data_location="@PREFIX@/share/Bastille"
+ }
+
+
diff --git a/security/Bastille/patches/patch-ab b/security/Bastille/patches/patch-ab
new file mode 100644
index 00000000000..1ed5acf249e
--- /dev/null
+++ b/security/Bastille/patches/patch-ab
@@ -0,0 +1,32 @@
+$NetBSD: patch-ab,v 1.1.1.1 2007/06/06 22:37:59 rillig Exp $
+
+--- Bastille/API.pm.orig 2006-04-03 15:16:05.000000000 +0200
++++ Bastille/API.pm 2006-12-03 12:08:08.000000000 +0100
+@@ -490,6 +490,8 @@ sub GetDistro() {
+ }
+ elsif ( $release =~ /(^HP-UX)\s*B\.(\d+\.\d+)/ ) {
+ $distro="$1$2";
++ } elsif ( $release =~ /^(\w+)\s+(\d+)/) {
++ $distro="$1$2";
+ }
+ else {
+ print STDERR "$err Could not determine operating system version!\n";
+@@ -576,6 +578,10 @@ sub getSupportedOSHash () {
+ "HP-UX11.31"
+ ],
+
++ "NetBSD" => [
++ "NetBSD1", "NetBSD2", "NetBSD3", "NetBSD4",
++ ],
++
+ "OSX" => [
+ 'OSX10.2','OSX10.3','OSX10.4'
+ ]
+@@ -768,6 +774,7 @@ sub getFileAndServiceInfo($$) {
+ my %oSInfoPath = (
+ "LINUX" => "/usr/share/Bastille/OSMap/",
+ "HP-UX" => "/etc/opt/sec_mgmt/bastille/OSMap/",
++ "NetBSD" => "@PREFIX@/share/Bastille/OSMap/",
+ "OSX" => "/usr/share/Bastille/OSMap/"
+ );
+
diff --git a/security/Bastille/patches/patch-ac b/security/Bastille/patches/patch-ac
new file mode 100644
index 00000000000..0fc78d4215e
--- /dev/null
+++ b/security/Bastille/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2007/06/06 22:37:59 rillig Exp $
+
+--- Install.sh.orig 2005-04-18 23:26:39.000000000 +0200
++++ Install.sh 2006-12-03 12:09:56.000000000 +0100
+@@ -99,6 +99,8 @@ cp OSMap/LINUX.system $RPM_BUILD_ROOT/us
+ cp OSMap/HP-UX.bastille $RPM_BUILD_ROOT/usr/share/Bastille/OSMap
+ cp OSMap/HP-UX.system $RPM_BUILD_ROOT/usr/share/Bastille/OSMap
+ cp OSMap/HP-UX.service $RPM_BUILD_ROOT/usr/share/Bastille/OSMap
++cp OSMap/NetBSD.bastille $RPM_BUILD_ROOT/usr/share/Bastille/OSMap
++cp OSMap/NetBSD.system $RPM_BUILD_ROOT/usr/share/Bastille/OSMap
+ cp OSMap/OSX.bastille $RPM_BUILD_ROOT/usr/share/Bastille/OSMap
+ cp OSMap/OSX.system $RPM_BUILD_ROOT/usr/share/Bastille/OSMap
+