Date: Mon, 17 Oct 2005 19:30:47 GMT From: Philipp Wuensche <cryx-ports@h3q.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/87581: [NEW PORT] security/jailaudit: Generate portaudit reports for jails from the hostsystem Message-ID: <200510171930.j9HJUlQZ086750@www.freebsd.org> Resent-Message-ID: <200510171940.j9HJeFDJ005445@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 87581 >Category: ports >Synopsis: [NEW PORT] security/jailaudit: Generate portaudit reports for jails from the hostsystem >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Oct 17 19:40:15 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Philipp Wuensche >Release: 6.0-BETA5 >Organization: >Environment: FreeBSD subraum.cy.h3q.com 6.0-RC1 FreeBSD 6.0-RC1 #2: Wed Oct 12 09:12:00 CEST 2005 >Description: This port contains a script for generating portaudit reports for jails running on a FreeBSD system. Jailaudit runs in the Host-system and uses portaudit to create reports for every jail currently running. It can also be used to send specific report-mails to the owner of a jail by running it as a cronjob. /etc/crontab example: 0 4 * * * * root /usr/local/bin/jailaudit mail admin@foo.bar "foo.example.com bar.example.com" Sends reports-mails of the jails with the hostnames foo.example.com and bar.example.com to the mailaddr. admin@example.com. WWW: http://outpost.h3q.org/software/jailaudit/ - cryx Philipp Wuensche <cryx-ports@h3q.com> >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # Makefile # distinfo # pkg-descr # pkg-plist # echo x - Makefile sed 's/^X//' >Makefile << 'END-of-Makefile' X# New ports collection makefile for: jailaudit X# Date created: 17 October 2005 X# Whom: cryx X# X XPORTNAME= jailaudit XPORTVERSION= 1.0 XCATEGORIES= security XMASTER_SITES= http://outpost.h3q.com/software/jailaudit/ X XMAINTAINER= cryx-ports@h3q.com XCOMMENT= Generate portaudit reports for jails from the hostsystem X XUSE_BZIP2= yes X XPERIODICDIR?= ${PREFIX}/etc/periodic XREPORTDIR?= ${PREFIX}/jailaudit/reports XTMPDIR?= ${PREFIX}/jailaudit/tmp X XPLIST_SUB+= PERIODICDIR="${PERIODICDIR:S,^${PREFIX}/,,}" \ X REPORTDIR="${REPOTDIR}" \ X TMPDIR="${TMPDIR}" X X.include <bsd.port.pre.mk> X X.if ( ${OSVERSION} < 501000 ) XIGNORE= The jls utility was added in FreeBSD 5.1. X.endif X XRUN_DEPENDS= ${LOCALBASE}/sbin/portaudit:${PORTSDIR}/security/portaudit X Xpost-install: X @if [ ! -f ${PREFIX}/etc/jailaudit.conf ]; then \ X ${CP} -p ${PREFIX}/etc/jailaudit.conf.sample ${PREFIX}/etc/jailaudit.conf ; \ X fi X X.include <bsd.port.post.mk> X END-of-Makefile echo x - distinfo sed 's/^X//' >distinfo << 'END-of-distinfo' XMD5 (jailaudit-1.0.tar.bz2) = c15c92274d24a177f2e0525589114e0b XSIZE (jailaudit-1.0.tar.bz2) = 2519 END-of-distinfo echo x - pkg-descr sed 's/^X//' >pkg-descr << 'END-of-pkg-descr' XThis port contains a script for generating portaudit reports for jails running on a FreeBSD system. X XJailaudit runs in the Host-system and uses portaudit to create reports for every jail currently running. X XIt can also be used to send specific report-mails to the owner of a jail by running it as a cronjob. X X/etc/crontab example: X0 4 * * * * root /usr/local/bin/jailaudit mail admin@foo.bar "foo.example.com bar.example.com" X XSends reports-mails of the jails with the hostnames foo.example.com and bar.example.com to the mailaddr. admin@example.com. X XWWW: http://outpost.h3q.org/software/jailaudit/ X X- cryx XPhilipp Wuensche <cryx-ports@h3q.com> END-of-pkg-descr echo x - pkg-plist sed 's/^X//' >pkg-plist << 'END-of-pkg-plist' Xbin/jailaudit Xetc/jailaudit.conf.sample X%%PERIODICDIR%%/security/410.jailaudit X@unexec rmdir %D/%%PERIODICDIR%%/security 2>/dev/null || true X@unexec rmdir %D/%%PERIODICDIR%% 2>/dev/null || true X@exec mkdir -p %%REPORTDIR%% X@unexec rmdir %%REPORTDIR%% 2>/dev/null || true X@exec mkdir -p %%TMPDIR%% X@unexec rmdir %%TMPDIR%% 2>/dev/null || true X END-of-pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510171930.j9HJUlQZ086750>