summaryrefslogtreecommitdiff
path: root/security/chrootuid
diff options
context:
space:
mode:
authorDon Lewis <truckman@FreeBSD.org>1999-12-09 10:37:38 +0000
committerDon Lewis <truckman@FreeBSD.org>1999-12-09 10:37:38 +0000
commit1ef37aadb366fcad61cddbd4af2d1c054341c91a (patch)
treecba08cbc16562858467b9b1519198381bf923d87 /security/chrootuid
parentUpdate to 3.12: (diff)
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).
Notes
Notes: svn path=/head/; revision=23667
Diffstat (limited to 'security/chrootuid')
-rw-r--r--security/chrootuid/Makefile36
-rw-r--r--security/chrootuid/distinfo1
-rw-r--r--security/chrootuid/files/patch-aa8
-rw-r--r--security/chrootuid/pkg-comment1
-rw-r--r--security/chrootuid/pkg-descr10
-rw-r--r--security/chrootuid/pkg-plist3
6 files changed, 59 insertions, 0 deletions
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 <bsd.port.mk>
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