diff options
author | Max Kalika <max@gentoo.org> | 2003-10-14 01:48:13 +0000 |
---|---|---|
committer | Max Kalika <max@gentoo.org> | 2003-10-14 01:48:13 +0000 |
commit | 1e9d57056ead26dc9de2dc3df70cca2dbffc47ba (patch) | |
tree | 6c9aa2b0401ab88028be187893f10d31ea3c57c5 /sys-fs/trustees/files | |
parent | Initial import. (diff) | |
download | historical-1e9d57056ead26dc9de2dc3df70cca2dbffc47ba.tar.gz historical-1e9d57056ead26dc9de2dc3df70cca2dbffc47ba.tar.bz2 historical-1e9d57056ead26dc9de2dc3df70cca2dbffc47ba.zip |
Initial import.
Diffstat (limited to 'sys-fs/trustees/files')
-rw-r--r-- | sys-fs/trustees/files/digest-trustees-2.10 | 1 | ||||
-rw-r--r-- | sys-fs/trustees/files/trustees.conf | 5 | ||||
-rw-r--r-- | sys-fs/trustees/files/trustees.rc6 | 52 |
3 files changed, 58 insertions, 0 deletions
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 $? +} |