pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/Bastille Imported Bastille from pkgsrc-wip.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/599037ea7c3b
branches:  trunk
changeset: 529524:599037ea7c3b
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Jun 06 22:37:59 2007 +0000

description:
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:

 security/Bastille/DESCR                    |   19 ++
 security/Bastille/Makefile                 |   63 +++++++
 security/Bastille/PLIST                    |  108 ++++++++++++
 security/Bastille/distinfo                 |    8 +
 security/Bastille/files/NetBSD.bastille.in |   34 +++
 security/Bastille/files/NetBSD.system.in   |  256 +++++++++++++++++++++++++++++
 security/Bastille/patches/patch-aa         |   30 +++
 security/Bastille/patches/patch-ab         |   32 +++
 security/Bastille/patches/patch-ac         |   13 +
 9 files changed, 563 insertions(+), 0 deletions(-)

diffs (truncated from 599 to 300 lines):

diff -r d81fa7c97ee4 -r 599037ea7c3b security/Bastille/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/Bastille/DESCR   Wed Jun 06 22:37:59 2007 +0000
@@ -0,0 +1,19 @@
+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.
diff -r d81fa7c97ee4 -r 599037ea7c3b security/Bastille/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/Bastille/Makefile        Wed Jun 06 22:37:59 2007 +0000
@@ -0,0 +1,63 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/06/06 22:37:59 rillig Exp $
+#
+
+DISTNAME=      Bastille-3.0.9
+CATEGORIES=    security
+MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=bastille-linux/}
+EXTRACT_SUFX=  .tar.bz2
+
+MAINTAINER=    rillig%NetBSD.org@localhost
+HOMEPAGE=      http://bastille-linux.sourceforge.net/
+COMMENT=       System hardening tool focusing on educating the user
+
+WRKSRC=                        ${WRKDIR}/Bastille
+CONFIGURE_ENV+=                GCONF_SCHEMA_FILE_DIR=${PREFIX:Q}/share/gconf/schemas/
+MAKE_ENV+=             GCONF_SCHEMA_FILE_DIR=${PREFIX:Q}/share/gconf/schemas/
+USE_PKGLOCALEDIR=      yes
+USE_LANGUAGES=         # none
+USE_TOOLS+=            bash:run perl:run
+NO_BUILD=              yes
+
+BUILD_DEPENDS+=                checkperms>=1.4:../../sysutils/checkperms
+DEPENDS+=              p5-Tk-[0-9]*:../../x11/p5-Tk
+
+SUBST_CLASSES+=                b
+SUBST_STAGE.b=         pre-configure
+SUBST_FILES.b=         Install.sh
+SUBST_SED.b=           -e 's,umask 077,umask 022,'
+SUBST_SED.b+=          -e 's,\$$RPM_BUILD_ROOT/usr/,${PREFIX}/,g'
+SUBST_SED.b+=          -e 's,\$$RPM_BUILD_ROOT/var/,${VARBASE}/,g'
+
+SUBST_CLASSES+=                b2
+SUBST_STAGE.b2=                pre-configure
+SUBST_FILES.b2=                bin/bastille Bastille/API.pm
+SUBST_SED.b2=          -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
+SUBST_SED.b2+=         -e 's,@PREFIX@,${PREFIX},g'
+SUBST_SED.b2+=         -e 's,@VARBASE@,${VARBASE},g'
+
+SUBST_CLASSES+=                b3
+SUBST_STAGE.b3=                pre-configure
+SUBST_FILES.b3=                ${REPLACE_PERL}
+SUBST_SED.b3=          -e 's,^use lib.*,use lib "${PREFIX}/lib";,'
+
+REPLACE_PERL+=         AutomatedBastille BastilleBackEnd BastilleChooser
+REPLACE_PERL+=         InteractiveBastille RevertBastille *.pm
+REPLACE_BASH+=         bin/bastille
+
+BUILD_DEFS+=           VARBASE
+
+OSMAP_FILES=           NetBSD.system.in NetBSD.bastille.in
+OSMAP_SUBSTVARS=       PKG_SYSCONFDIR PREFIX VARBASE
+
+post-extract:
+       cd ${WRKSRC} && find . -print | checkperms -ffc
+       cd ${FILESDIR} && cp ${OSMAP_FILES} ${WRKSRC}/OSMap/.
+
+post-configure:
+       set -e; cd ${WRKSRC}/OSMap; for i in ${OSMAP_FILES:.in=}; do sed ${OSMAP_SUBSTVARS:@v@-e 's,\@${v}\@,${${v}},g' @} < "$$i.in" > "$$i"; done
+
+do-install:
+       cd ${WRKSRC} && sh ./Install.sh
+
+.include "../../devel/GConf2/schemas.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r d81fa7c97ee4 -r 599037ea7c3b security/Bastille/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/Bastille/PLIST   Wed Jun 06 22:37:59 2007 +0000
@@ -0,0 +1,108 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/06/06 22:37:59 rillig Exp $
+lib/Bastille/API.pm
+lib/Bastille/AccountSecurity.pm
+lib/Bastille/Apache.pm
+lib/Bastille/BootSecurity.pm
+lib/Bastille/ConfigureMiscPAM.pm
+lib/Bastille/DNS.pm
+lib/Bastille/DisableUserTools.pm
+lib/Bastille/FTP.pm
+lib/Bastille/FilePermissions.pm
+lib/Bastille/Firewall.pm
+lib/Bastille/HP_API.pm
+lib/Bastille/HP_UX.pm
+lib/Bastille/IOLoader.pm
+lib/Bastille/IPFilter.pm
+lib/Bastille/LogAPI.pm
+lib/Bastille/Logging.pm
+lib/Bastille/MiscellaneousDaemons.pm
+lib/Bastille/OSX_API.pm
+lib/Bastille/PSAD.pm
+lib/Bastille/PatchDownload.pm
+lib/Bastille/Patches.pm
+lib/Bastille/Printing.pm
+lib/Bastille/RemoteAccess.pm
+lib/Bastille/SecureInetd.pm
+lib/Bastille/Sendmail.pm
+lib/Bastille/TMPDIR.pm
+lib/Bastille/TestAPI.pm
+lib/Bastille/test_AccountSecurity.pm
+lib/Bastille/test_Apache.pm
+lib/Bastille/test_BootSecurity.pm
+lib/Bastille/test_DNS.pm
+lib/Bastille/test_DisableUserTools.pm
+lib/Bastille/test_FTP.pm
+lib/Bastille/test_FilePermissions.pm
+lib/Bastille/test_HP_UX.pm
+lib/Bastille/test_Logging.pm
+lib/Bastille/test_MiscellaneousDaemons.pm
+lib/Bastille/test_Printing.pm
+lib/Bastille/test_SecureInetd.pm
+lib/Bastille/test_Sendmail.pm
+lib/perl5/site_perl/Bastille_Curses.pm
+lib/perl5/site_perl/Bastille_Tk.pm
+lib/perl5/site_perl/Curses/Widgets.pm
+sbin/AutomatedBastille
+sbin/BastilleBackEnd
+sbin/InteractiveBastille
+sbin/RevertBastille
+sbin/UndoBastille
+sbin/bastille
+share/Bastille/Credits
+share/Bastille/FKL/configs/fkl_config_redhat.cfg
+share/Bastille/Modules.txt
+share/Bastille/OSMap/HP-UX.bastille
+share/Bastille/OSMap/HP-UX.service
+share/Bastille/OSMap/HP-UX.system
+share/Bastille/OSMap/LINUX.bastille
+share/Bastille/OSMap/LINUX.system
+share/Bastille/OSMap/NetBSD.bastille
+share/Bastille/OSMap/NetBSD.system
+share/Bastille/OSMap/OSX.bastille
+share/Bastille/OSMap/OSX.system
+share/Bastille/Questions/AccountSecurity.txt
+share/Bastille/Questions/Apache.txt
+share/Bastille/Questions/BootSecurity.txt
+share/Bastille/Questions/ConfigureMiscPAM.txt
+share/Bastille/Questions/DNS.txt
+share/Bastille/Questions/DisableUserTools.txt
+share/Bastille/Questions/FTP.txt
+share/Bastille/Questions/FilePermissions.txt
+share/Bastille/Questions/Firewall.txt
+share/Bastille/Questions/HP_UX.txt
+share/Bastille/Questions/IPFilter.txt
+share/Bastille/Questions/Logging.txt
+share/Bastille/Questions/MiscellaneousDaemons.txt
+share/Bastille/Questions/PSAD.txt
+share/Bastille/Questions/Patches.txt
+share/Bastille/Questions/Printing.txt
+share/Bastille/Questions/SecureInetd.txt
+share/Bastille/Questions/Sendmail.txt
+share/Bastille/Questions/TMPDIR.txt
+share/Bastille/Weights.txt
+share/Bastille/bastille-firewall
+share/Bastille/bastille-firewall-early.sh
+share/Bastille/bastille-firewall-pre-audit.sh
+share/Bastille/bastille-firewall-reset
+share/Bastille/bastille-firewall-schedule
+share/Bastille/bastille-firewall.cfg
+share/Bastille/bastille-ipchains
+share/Bastille/bastille-netfilter
+share/Bastille/bastille-tmpdir-defense.sh
+share/Bastille/bastille-tmpdir.csh
+share/Bastille/bastille-tmpdir.sh
+share/Bastille/bastille.jpg
+share/Bastille/complete.xbm
+share/Bastille/hosts.allow
+share/Bastille/ifup-local
+share/Bastille/incomplete.xbm
+share/Bastille/wz_tooltip.js
+@exec ${MKDIR} %D/var/lock/subsys/bastille
+@dirrm var/lock/subsys/bastille
+@dirrm share/Bastille/Questions
+@dirrm share/Bastille/OSMap
+@dirrm share/Bastille/FKL/configs
+@dirrm share/Bastille/FKL
+@dirrm share/Bastille
+@dirrm lib/perl5/site_perl/Curses
+@dirrm lib/Bastille
diff -r d81fa7c97ee4 -r 599037ea7c3b security/Bastille/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/Bastille/distinfo        Wed Jun 06 22:37:59 2007 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/06/06 22:37:59 rillig Exp $
+
+SHA1 (Bastille-3.0.9.tar.bz2) = 389f13d9c6c7b14b91b30bda7285238c74758e0d
+RMD160 (Bastille-3.0.9.tar.bz2) = 853bec2e007d3084cb4df9d509a316523c4dc467
+Size (Bastille-3.0.9.tar.bz2) = 319045 bytes
+SHA1 (patch-aa) = 4f7ab0f1e90b102ec612dfabffb46a91a2368752
+SHA1 (patch-ab) = cd3c4d995b3e5a05c33304ff11f52fa3c34ff463
+SHA1 (patch-ac) = f7fd8063e390e69de83b85366ecb657d97b80434
diff -r d81fa7c97ee4 -r 599037ea7c3b security/Bastille/files/NetBSD.bastille.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/Bastille/files/NetBSD.bastille.in        Wed Jun 06 22:37:59 2007 +0000
@@ -0,0 +1,34 @@
+bdir,QuestionsDir,'@PREFIX@/share/Bastille/Questions'
+bdir,backup,'@VARBASE@/log/Bastillerevert/backup'
+bdir,config,'@PKG_SYSCONFDIR@/Bastille'
+bdir,home,'/root/Bastille'
+bdir,log,'@VARBASE@/log/Bastille'
+bdir,oldconfig,'@VARBASE@/log/Bastilleoldconfig'
+bdir,revert,'@VARBASE@/log/Bastillerevert'
+bdir,share,'@PREFIX@/share/Bastille'
+
+
+bfile,BastilleBackEnd,'@PREFIX@/sbin/BastilleBackEnd'
+bfile,Questions,'@PREFIX@/share/Bastille/Questions.txt'
+bfile,QuestionsWeights,'@PREFIX@/share/Bastille/Weights.txt'
+bfile,QuestionsModules,'@PREFIX@/share/Bastille/Modules.txt'
+bfile,TODO,'@VARBASE@/log/Bastille/TODO'
+bfile,TOREVERT,'@VARBASE@/log/Bastillerevert/TOREVERT.txt'
+bfile,action-log,'@VARBASE@/log/Bastille/action-log'
+bfile,complete.xbm,'@PREFIX@/share/Bastille/complete.xbm'
+bfile,config,'@PKG_SYSCONFDIR@/Bastille/config'
+bfile,created-dirs,'@VARBASE@/log/Bastillerevert/revert-created-dirs'
+bfile,created-files,'@VARBASE@/log/Bastillerevert/revert-created-files'
+bfile,created-symlinks,'@VARBASE@/log/Bastillerevert/revert-created-symlinks'
+bfile,credits,'@PREFIX@/share/Bastille/Credits'
+bfile,debug-log,'@VARBASE@/log/Bastille/debug-log'
+bfile,error-log,'@VARBASE@/log/Bastille/error-log'
+bfile,executed-commands,'@VARBASE@/log/Bastillerevert/revert-executed-commands'
+bfile,incomplete.xbm,'@PREFIX@/share/Bastille/incomplete.xbm'
+bfile,last.config,'@VARBASE@/log/Bastille/last.config'
+bfile,lockfile,'@VARBASE@/lock/subsys/bastille-lock'
+bfile,nodisclaimer,'@PREFIX@/share/Bastille/.nodisclaimer'
+bfile,removed-symlinks,'@VARBASE@/log/Bastillerevert/revert-removed-symlinks'
+bfile,revert-actions,'@VARBASE@/log/Bastillerevert/revert-actions'
+bfile,revert-directory-perms.sh,'@VARBASE@/log/Bastillerevert/revert-directory-perms.sh'
+bfile,sum.csv,'@VARBASE@/log/Bastillerevert/sum.csv'
diff -r d81fa7c97ee4 -r 599037ea7c3b security/Bastille/files/NetBSD.system.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/Bastille/files/NetBSD.system.in  Wed Jun 06 22:37:59 2007 +0000
@@ -0,0 +1,256 @@
+bin,XFree86,'/usr/X11R6/bin/XFree86'
+bin,Xwrapper,'/usr/X11R6/bin/Xwrapper'
+
+bin,accton,'/usr/sbin/accton'
+bin,accton,'/sbin/accton',RH6.2,MN9.2,MN10.0,MN10.1,MN2006.0
+bin,dpkg,'/usr/bin/dpkg',DB
+bin,apt-get,'/usr/sbin/apt-get',DB
+bin,at,'/usr/bin/at'
+bin,bash,'/bin/bash'
+bin,cardctl,'/sbin/cardctl'
+bin,chattr,'/usr/bin/chattr'
+bin,chgrp,'/bin/chgrp'
+bin,chkconfig,'/sbin/chkconfig'
+bin,chmod,'/bin/chmod'
+bin,chown,'/bin/chown'
+bin,cksum,'/usr/bin/cksum'
+bin,cp,'/bin/cp'
+bin,crontab,'/usr/bin/crontab'
+bin,cupsd,'/usr/sbin/cupsd'
+bin,diff,'/usr/bin/diff'
+bin,dos,'/usr/bin/dos'
+bin,dump,'/sbin/dump'
+bin,echo,'/bin/echo'
+bin,grep,'/bin/grep'
+bin,grep,'/usr/bin/grep',SE
+bin,groupadd,'/usr/sbin/groupadd'
+bin,inndstart,'/usr/bin/inndstart'
+bin,killall,'/usr/bin/killall'
+bin,lilo,'/sbin/lilo'
+bin,ln,'/bin/ln'
+bin,logger,'/usr/bin/logger'
+bin,lpd,'/usr/sbin/lpd'
+bin,lpd,'/usr/lib/cups/daemon/cups-lpd',MN9.2,MN10.0,MN10.1,MN2006.0
+bin,lppasswd,'/usr/bin/lppasswd'
+bin,lpq,'/usr/bin/lpq'
+bin,lpr,'/usr/bin/lpr'
+bin,lprm,'/usr/bin/lprm'
+bin,lpstat,'/usr/bin/lpstat'
+bin,md5sum,'/usr/bin/md5sum'
+bin,mknod,'/bin/mknod'
+bin,more,'/usr/bin/more'
+bin,mount,'/bin/mount'
+bin,mv,'/bin/mv'
+bin,named-xfer,'/usr/sbin/named-xfer'



Home | Main Index | Thread Index | Old Index