Bug 87581 - [NEW PORT] security/jailaudit: Generate portaudit reports for jails from the hostsystem
Summary: [NEW PORT] security/jailaudit: Generate portaudit reports for jails from the ...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-17 20:40 UTC by Philipp Wuensche
Modified: 2005-11-25 02:30 UTC (History)
0 users

See Also:


Attachments
file.shar (2.79 KB, text/plain)
2005-10-17 20:40 UTC, Philipp Wuensche
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Wuensche 2005-10-17 20:40:15 UTC
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>
Comment 1 cryx 2005-10-21 22:15:05 UTC
--- jailaudit.old/pkg-descr     Mon Oct 17 22:21:18 2005
+++ jailaudit/pkg-descr Mon Oct 17 22:10:39 2005
@@ -9,7 +9,7 @@

 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/
+WWW: http://outpost.h3q.com/software/jailaudit/

 - cryx
 Philipp Wuensche <cryx-ports@h3q.com>
Comment 2 Philipp Wuensche 2005-10-22 04:38:33 UTC
jailaudit moved to version 1.1, 1.0 its not imported yet so starting
with version 1.1 would be good because it includes some important bugfixes


# 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:        21 October 2005
X# Whom:                cryx
X#
X
XPORTNAME=       jailaudit
XPORTVERSION=    1.1
XCATEGORIES=     security
XMASTER_SITES=   http://outpost.h3q.com/software/jailaudit/
X
XMAINTAINER=     cryx-ports@h3q.com
XCOMMENT=       Script to generate portaudit reports for jails.
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
X.include <bsd.port.post.mk>
X
END-of-Makefile
echo x - distinfo
sed 's/^X//' >distinfo << 'END-of-distinfo'
XMD5 (jailaudit-1.1.tar.bz2) = 32f5b1973cc9eaa88b0e05792499a0c7
XSIZE (jailaudit-1.1.tar.bz2) = 2512
END-of-distinfo
echo x - pkg-descr
sed 's/^X//' >pkg-descr << 'END-of-pkg-descr'
XThis port contains a script to generate portaudit reports for jails
running on a FreeBSD system.
X
XNormally portaudit just creates reports for the Host-system or the jail
it is installed in. With a large number of jails running on a system,
installing and updating portaudit in every jail is time-consuming and
error-prone. Jailaudit uses the portaudit installed in the Host-system
to create a report for every jail.
X
XThe reports are appended to the daily security run and can be sent to a
specific mail address, which allows the Host-system administrator to
dispatch portaudit reports to the owners of jails, keeping them informed
about potential security advisories of their installed ports.
X
XJailaudit can be used on FreeBSD 5.1 or larger.
X
XWWW: https://anonsvn.h3q.com/projects/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
END-of-pkg-plist
exit
Comment 3 Philipp Wuensche 2005-11-22 19:50:46 UTC
Any chances this port will be commited? Or should I just be more patient?

greetings,
cryx
Comment 4 Edwin Groothuis freebsd_committer freebsd_triage 2005-11-25 02:30:01 UTC
State Changed
From-To: open->closed

Committed, thanks!