summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorMax Kalika <max@gentoo.org>2003-10-14 01:48:13 +0000
committerMax Kalika <max@gentoo.org>2003-10-14 01:48:13 +0000
commit1e9d57056ead26dc9de2dc3df70cca2dbffc47ba (patch)
tree6c9aa2b0401ab88028be187893f10d31ea3c57c5 /sys-fs
parentInitial import. (diff)
downloadhistorical-1e9d57056ead26dc9de2dc3df70cca2dbffc47ba.tar.gz
historical-1e9d57056ead26dc9de2dc3df70cca2dbffc47ba.tar.bz2
historical-1e9d57056ead26dc9de2dc3df70cca2dbffc47ba.zip
Initial import.
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/trustees/Manifest7
-rw-r--r--sys-fs/trustees/files/digest-trustees-2.101
-rw-r--r--sys-fs/trustees/files/trustees.conf5
-rw-r--r--sys-fs/trustees/files/trustees.rc652
-rw-r--r--sys-fs/trustees/metadata.xml9
-rw-r--r--sys-fs/trustees/trustees-2.10.ebuild44
6 files changed, 115 insertions, 3 deletions
diff --git a/sys-fs/trustees/Manifest b/sys-fs/trustees/Manifest
index 74895c9354e2..02170ccde67e 100644
--- a/sys-fs/trustees/Manifest
+++ b/sys-fs/trustees/Manifest
@@ -1,5 +1,6 @@
-MD5 1aed99ff5e95193085c082dc0faf6891 trustees-2.10.ebuild 1115
-MD5 714fc5d9c08cd142261d5324258535b2 ChangeLog 909
-MD5 aa9ea06aa21a6ac98b1e72fcfd0f0164 files/trustees.rc6 887
+MD5 044e0f0b4c5581918d6e08fb906fd237 trustees-2.10.ebuild 1108
+MD5 f2822b896f22a84b50028d83e82a83f3 ChangeLog 1052
+MD5 8ef457f9ac46b73b855b4a4e5ff9d7d3 metadata.xml 243
+MD5 e432f56a0708c59b388a5236aa597eaa files/trustees.rc6 1109
MD5 5ea664e13f218e834bc8e884aa8ec607 files/digest-trustees-2.10 61
MD5 8ac726d39e9620a55f0deb6c94b84d16 files/trustees.conf 244
diff --git a/sys-fs/trustees/files/digest-trustees-2.10 b/sys-fs/trustees/files/digest-trustees-2.10
new file mode 100644
index 000000000000..6394fc1d6317
--- /dev/null
+++ b/sys-fs/trustees/files/digest-trustees-2.10
@@ -0,0 +1 @@
+MD5 89492eef8e7fc0550e548480ebfe48b2 trustees.2.10.tgz 30574
diff --git a/sys-fs/trustees/files/trustees.conf b/sys-fs/trustees/files/trustees.conf
new file mode 100644
index 000000000000..88b5b8150b71
--- /dev/null
+++ b/sys-fs/trustees/files/trustees.conf
@@ -0,0 +1,5 @@
+# Location from which to pull permission information.
+# You may provide multiple files either space separated
+# or using shell wildcard expansion. All files will be
+# loaded in the order specified.
+TRUSTEE_FILES="/var/lib/trustees/permissions"
diff --git a/sys-fs/trustees/files/trustees.rc6 b/sys-fs/trustees/files/trustees.rc6
new file mode 100644
index 000000000000..ed3adaa69512
--- /dev/null
+++ b/sys-fs/trustees/files/trustees.rc6
@@ -0,0 +1,52 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/trustees/files/trustees.rc6,v 1.1 2003/10/14 01:48:12 max Exp $
+
+depend() {
+ need checkfs
+ before net
+}
+
+checkrules() {
+ if [ ! -d /proc/trustee ] ; then
+ eerror "Kernel does not have support for Trustee ACLs."
+ return 1
+ fi
+
+ if [ -d "${TRUSTEE_FILES}" ] ; then
+ TRUSTEE_FILES="${TRUSTEE_FILES}/*"
+ fi
+
+ for i in ${TRUSTEE_FILES} ; do
+ if [ ! -f "${i}" ] ; then
+ eerror "${i}: no such file."
+ return 1
+ fi
+ done
+
+ if [ -z "${i}" ] ; then
+ eerror "No files specified in /etc/conf.d/trustees."
+ return 1
+ fi
+}
+
+start() {
+ checkrules || return 1
+ ebegin "Purging trustee permissions from kernel memory"
+ /usr/sbin/settrustee -D &>/dev/null
+ eend $?
+
+ einfo "Loading trustee permissions from:"
+ for i in ${TRUSTEE_FILES} ; do
+ ebegin " ${i}"
+ /usr/sbin/settrustee -f "${i}" &>/dev/null
+ eend $?
+ done
+}
+
+stop() {
+ ebegin "Purging trustee permissions from kernel memory"
+ /usr/sbin/settrustee -D &>/dev/null
+ eend $?
+}
diff --git a/sys-fs/trustees/metadata.xml b/sys-fs/trustees/metadata.xml
new file mode 100644
index 000000000000..792de612a354
--- /dev/null
+++ b/sys-fs/trustees/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>max@gentoo.org</email>
+ <name>Max Kalika</name>
+</maintainer>
+</pkgmetadata>
diff --git a/sys-fs/trustees/trustees-2.10.ebuild b/sys-fs/trustees/trustees-2.10.ebuild
new file mode 100644
index 000000000000..c9478a6d1a11
--- /dev/null
+++ b/sys-fs/trustees/trustees-2.10.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/trustees/trustees-2.10.ebuild,v 1.1 2003/10/14 01:48:12 max Exp $
+
+DESCRIPTION="Advanced permission management system (ACLs) for Linux."
+HOMEPAGE="http://trustees.sourceforge.net/"
+SRC_URI="http://trustees.sourceforge.net/download/${PN}.${PV}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+
+DEPEND="virtual/linux-sources"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ [ ! -e "/usr/src/linux/include/linux/trustee_struct.h" ] && {
+ eerror
+ eerror "Your currently linked kernel (/usr/src/linux) hasn't"
+ eerror "been patched for trustees support."
+ eerror
+ die "kernel not patched for trustees support"
+ }
+
+ unpack ${A}
+}
+
+src_compile() {
+ ${CC} -I/usr/src/linux/include \
+ -o "settrustee" "set-trustee.c" || die "compile problem"
+}
+
+src_install() {
+ dosbin settrustee
+
+ dodoc README
+ newdoc trustee.conf trustee.conf.example
+
+ exeinto /etc/init.d
+ newexe "${FILESDIR}/trustees.rc6" trustees
+ insinto /etc/conf.d
+ newins "${FILESDIR}/trustees.conf" trustees
+}