From 1ef37aadb366fcad61cddbd4af2d1c054341c91a Mon Sep 17 00:00:00 2001 From: Don Lewis Date: Thu, 9 Dec 1999 10:37:38 +0000 Subject: The chrootuid command combines chroot(8) and su(1) into one program, so that there is no need to have commands such as /usr/bin/su in the restricted environment. Access to the file system is restricted to the newroot subtree and privileges are restricted to those of the newuser account (which must be a known account in the unrestricted environment). --- security/chrootuid/Makefile | 36 ++++++++++++++++++++++++++++++++++++ security/chrootuid/distinfo | 1 + security/chrootuid/files/patch-aa | 8 ++++++++ security/chrootuid/pkg-comment | 1 + security/chrootuid/pkg-descr | 10 ++++++++++ security/chrootuid/pkg-plist | 3 +++ 6 files changed, 59 insertions(+) create mode 100644 security/chrootuid/Makefile create mode 100644 security/chrootuid/distinfo create mode 100644 security/chrootuid/files/patch-aa create mode 100644 security/chrootuid/pkg-comment create mode 100644 security/chrootuid/pkg-descr create mode 100644 security/chrootuid/pkg-plist (limited to 'security') diff --git a/security/chrootuid/Makefile b/security/chrootuid/Makefile new file mode 100644 index 000000000000..7f2362a97f09 --- /dev/null +++ b/security/chrootuid/Makefile @@ -0,0 +1,36 @@ +# New ports collection makefile for: chrootuid +# Version required: 1.2 +# Date created: 12 Dec 1999 +# Whom: truckman +# +# $FreeBSD$ +# + +DISTNAME= chrootuid1.2 +PKGNAME= chrootuid-1.2 +CATEGORIES= security +MASTER_SITES= ftp://ftp.porcupine.org/pub/security/ \ + ftp://coast.cs.purdue.edu/pub/tools/unix/chrootuid/ +EXTRACT_SUFX= .shar.Z + +MAINTAINER= truckman@FreeBSD.org + +BUILD_DEPENDS= gunshar:${PORTSDIR}/archivers/gshar+gunshar + +EXTRACT_CMD= uncompress +EXTRACT_BEFORE_ARGS= -c +EXTRACT_AFTER_ARGS= | gunshar -d ${WRKDIR} +NO_WRKSUBDIR= yes + +MAN8= chrootuid.8 + +do-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/chrootuid + ${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/chrootuid +.endif + ${INSTALL_PROGRAM} ${WRKSRC}/chrootuid ${PREFIX}/sbin/chrootuid + ${CP} ${WRKSRC}/chrootuid.1 ${WRKSRC}/chrootuid.8 + ${INSTALL_MAN} ${WRKSRC}/${MAN8} ${PREFIX}/man/man8 + +.include diff --git a/security/chrootuid/distinfo b/security/chrootuid/distinfo new file mode 100644 index 000000000000..20488aa66818 --- /dev/null +++ b/security/chrootuid/distinfo @@ -0,0 +1 @@ +MD5 (chrootuid1.2.shar.Z) = 2ebf68f6d14c42947bb5160a20729f5f diff --git a/security/chrootuid/files/patch-aa b/security/chrootuid/files/patch-aa new file mode 100644 index 000000000000..98a883c863e2 --- /dev/null +++ b/security/chrootuid/files/patch-aa @@ -0,0 +1,8 @@ +--- chrootuid.1.orig Wed Dec 8 20:52:03 1999 ++++ chrootuid.1 Wed Dec 8 20:53:13 1999 +@@ -1,4 +1,4 @@ +-.TH CHROOTUID 1 ++.TH CHROOTUID 8 + .ad + .fi + .SH NAME diff --git a/security/chrootuid/pkg-comment b/security/chrootuid/pkg-comment new file mode 100644 index 000000000000..49da61e47457 --- /dev/null +++ b/security/chrootuid/pkg-comment @@ -0,0 +1 @@ +A simple wrapper that combines chroot(8) and su(1) into one program diff --git a/security/chrootuid/pkg-descr b/security/chrootuid/pkg-descr new file mode 100644 index 000000000000..7f34c4164a25 --- /dev/null +++ b/security/chrootuid/pkg-descr @@ -0,0 +1,10 @@ +The chrootuid command combines chroot(8) and su(1) into one program, +so that there is no need to have commands such as /usr/bin/su in the +restricted environment. Access to the file system is restricted to +the newroot subtree and privileges are restricted to those of the +newuser account (which must be a known account in the unrestricted +environment). + +See also jail(8) in FreeBSD 4.0. + +-- Don Lewis (truckman@FreeBSD.org) diff --git a/security/chrootuid/pkg-plist b/security/chrootuid/pkg-plist new file mode 100644 index 000000000000..39e3f082e796 --- /dev/null +++ b/security/chrootuid/pkg-plist @@ -0,0 +1,3 @@ +sbin/chrootuid +share/doc/chrootuid/README +@dirrm share/doc/chrootuid -- cgit v1.2.3