diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2010-05-10 05:53:48 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2010-05-10 05:53:48 +0000 |
commit | d9237e6775335ea445966d9c08af525ce2790aff (patch) | |
tree | ca53601c54ab0fbfc307899c9c4af9835fe8e00e /security | |
parent | 007c9a3696e0153222e4e6dcdfe4d8e83c8a7231 (diff) | |
download | ports-d9237e6775335ea445966d9c08af525ce2790aff.tar.gz ports-d9237e6775335ea445966d9c08af525ce2790aff.zip |
Notes
Diffstat (limited to 'security')
-rw-r--r-- | security/Makefile | 1 | ||||
-rw-r--r-- | security/pam_jail/Makefile | 35 | ||||
-rw-r--r-- | security/pam_jail/distinfo | 3 | ||||
-rw-r--r-- | security/pam_jail/files/pkg-message.in | 7 | ||||
-rw-r--r-- | security/pam_jail/pkg-descr | 2 |
5 files changed, 48 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile index 96326114aa85..600f3b03a5b0 100644 --- a/security/Makefile +++ b/security/Makefile @@ -566,6 +566,7 @@ SUBDIR += pam_bsdbioapi SUBDIR += pam_fprint SUBDIR += pam_helper + SUBDIR += pam_jail SUBDIR += pam_krb5 SUBDIR += pam_ldap SUBDIR += pam_mkhomedir diff --git a/security/pam_jail/Makefile b/security/pam_jail/Makefile new file mode 100644 index 000000000000..4c8435d93e24 --- /dev/null +++ b/security/pam_jail/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: pam_jail +# Date created: 28 March 2010 +# Whom: Damien Bobillot +# +# $FreeBSD$ +# + +PORTNAME= pam_jail +PORTVERSION= 0.3 +CATEGORIES= security +MASTER_SITES= http://www.triades.net/downloads/ + +MAINTAINER= damien.bobillot_pam_jail@m4x.org +COMMENT= A PAM module dropping users in jails after login + +MAN8= pam_jail.8 +MANCOMPRESSED= yes +SUB_FILES= pkg-message +PLIST_FILES= lib/pam_jail.so lib/pam_jail.so.1 + +.include <bsd.port.pre.mk> + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/pam_jail.so.1 ${PREFIX}/lib/ + ${LN} -sf pam_jail.so.1 ${PREFIX}/lib/pam_jail.so + ${INSTALL_MAN} ${WRKSRC}/pam_jail.8.gz ${PREFIX}/man/man8/ + +post-install: + @${CAT} ${PKGMESSAGE} + +.if ${OSVERSION} < 700000 +BROKEN= jail version not supported +.endif + +.include <bsd.port.post.mk> diff --git a/security/pam_jail/distinfo b/security/pam_jail/distinfo new file mode 100644 index 000000000000..33b0a82b2bb4 --- /dev/null +++ b/security/pam_jail/distinfo @@ -0,0 +1,3 @@ +MD5 (pam_jail-0.3.tar.gz) = 4911c8c37478a9e07caf4e9b0a5486b2 +SHA256 (pam_jail-0.3.tar.gz) = 7ed0dd71133d3c9b2ca9cd5c1af7e56b812d5661e2ea379b29c3d852b7c58de7 +SIZE (pam_jail-0.3.tar.gz) = 3158 diff --git a/security/pam_jail/files/pkg-message.in b/security/pam_jail/files/pkg-message.in new file mode 100644 index 000000000000..ac09a82e5655 --- /dev/null +++ b/security/pam_jail/files/pkg-message.in @@ -0,0 +1,7 @@ + +You may want to add something like this to your /etc/pam.d/login +or /etc/pam.d/sshd ( when you've configured ssh with PAM ) +file to use this module: + +session required %%PREFIX%%/lib/pam_jail.so + diff --git a/security/pam_jail/pkg-descr b/security/pam_jail/pkg-descr new file mode 100644 index 000000000000..cf0b2eab4045 --- /dev/null +++ b/security/pam_jail/pkg-descr @@ -0,0 +1,2 @@ +This is a adaptation of pam_chroot to BSD jails : it dropps users in jails +after login. |