diff options
author | Chris PeBenito <pebenito@gentoo.org> | 2004-02-24 22:25:30 +0000 |
---|---|---|
committer | Chris PeBenito <pebenito@gentoo.org> | 2004-02-24 22:25:30 +0000 |
commit | 4784482fad0f9a73c49a48873e001e413f76a740 (patch) | |
tree | b148396e98f04d91ef9a5d4cbac13566f63b2672 /sys-apps/policycoreutils | |
parent | remove ucc link in $GAMES_BINDIR #40911 (diff) | |
download | gentoo-2-4784482fad0f9a73c49a48873e001e413f76a740.tar.gz gentoo-2-4784482fad0f9a73c49a48873e001e413f76a740.tar.bz2 gentoo-2-4784482fad0f9a73c49a48873e001e413f76a740.zip |
scripts moved to distfiles
Diffstat (limited to 'sys-apps/policycoreutils')
-rw-r--r-- | sys-apps/policycoreutils/files/avc_toggle | 11 | ||||
-rw-r--r-- | sys-apps/policycoreutils/files/newrole | 7 | ||||
-rw-r--r-- | sys-apps/policycoreutils/files/rlpkg | 74 | ||||
-rw-r--r-- | sys-apps/policycoreutils/files/run_init | 7 |
4 files changed, 0 insertions, 99 deletions
diff --git a/sys-apps/policycoreutils/files/avc_toggle b/sys-apps/policycoreutils/files/avc_toggle deleted file mode 100644 index e893b98e6773..000000000000 --- a/sys-apps/policycoreutils/files/avc_toggle +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -[ -f /selinux/enforce ] || exit 1; - -if [ "`cat /selinux/enforce | grep "1"`" ]; then - echo 0 > /selinux/enforce - echo "permissive" -else - echo 1 > /selinux/enforce - echo "enforcing" -fi diff --git a/sys-apps/policycoreutils/files/newrole b/sys-apps/policycoreutils/files/newrole deleted file mode 100644 index 7b8b8c0a286c..000000000000 --- a/sys-apps/policycoreutils/files/newrole +++ /dev/null @@ -1,7 +0,0 @@ -#%PAM-1.0 - -auth required /lib/security/pam_stack.so service=system-auth -account required /lib/security/pam_stack.so service=system-auth -password required /lib/security/pam_stack.so service=system-auth -session required /lib/security/pam_stack.so service=system-auth -session optional /lib/security/pam_xauth.so diff --git a/sys-apps/policycoreutils/files/rlpkg b/sys-apps/policycoreutils/files/rlpkg deleted file mode 100644 index 772d27aee01f..000000000000 --- a/sys-apps/policycoreutils/files/rlpkg +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/bash -# Copyright 1999-2004 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/files/rlpkg,v 1.2 2004/01/31 09:07:38 pebenito Exp $ - -# Author: Chris PeBenito <pebenito@gentoo.org> -# this probably isnt the cleanest script, but it works. -# -# TODO: -# -maybe add a -l function to list the package's files + contexts -# -more informative messages, -h for help - -. /sbin/functions.sh -PROG=`basename ${0}` - -if [ -z "${1}" ]; then - echo "The Gentoo Linux package relabeler" - echo - echo "Usage: ${PROG} <pkg1> [<pkg2> ...]" - echo - echo "${PROG} relabels gentoo packages based on their CONTENTS file." - echo "Any files associated with a package, but not in the contents" - echo "will not be relabeled, so be careful! When in doubt, a full" - echo "relabel should be done." - exit 1; -fi - -while [ ${#} -gt 0 ]; do - build="${build} `find /var/db/pkg -iname CONTENTS | cut -d/ -f5,6 | grep ${1} | sort`" - shift -done - -if [ "${build}" == " " ]; then - echo "No matching packages found." - exit 1 -fi - -# ask portage what POLICYDIR is set to -# this should catch env vars too -POLICYDIR="`portageq envvar POLICYDIR`" - -if [ -z "${POLICYDIR}" ]; then - POLICYDIR="/etc/security/selinux/src/policy" - ewarn "Warning, no POLICYDIR set, using ${POLICYDIR}." - echo -fi - -# make sure the policydir exists -if [ ! -d "${POLICYDIR}" ]; then - echo "The policy directory ${POLICYDIR} doesnt exist!" - echo - echo "Set the policy dir in make.conf: POLICYDIR=\"/etc/security/selinux/src/mypolicy\"" - exit 1 -fi - -einfo "Using file contexts from the policy in ${POLICYDIR}." - -# generate file_contexts as needed -ebegin "Regenerating file contexts" -[ -f ${POLICYDIR}/file_contexts/file_contexts ] && rm -f ${POLICYDIR}/file_contexts/file_contexts -make -C ${POLICYDIR} file_contexts/file_contexts &> /dev/null - -# do a test relabel to make sure file contexts work (doesnt change any labels) -echo "/etc/passwd" | setfiles ${POLICYDIR}/file_contexts/file_contexts -sqn -ret=$? -eend $ret - -[ $ret == "0" ] || exit $ret - -for i in ${build}; do - ebegin "Relabeling: ${i}" - awk '{ print $2 }' < /var/db/pkg/${i}/CONTENTS | setfiles ${POLICYDIR}/file_contexts/file_contexts -sq &> /dev/null - eend $? -done diff --git a/sys-apps/policycoreutils/files/run_init b/sys-apps/policycoreutils/files/run_init deleted file mode 100644 index 7b8b8c0a286c..000000000000 --- a/sys-apps/policycoreutils/files/run_init +++ /dev/null @@ -1,7 +0,0 @@ -#%PAM-1.0 - -auth required /lib/security/pam_stack.so service=system-auth -account required /lib/security/pam_stack.so service=system-auth -password required /lib/security/pam_stack.so service=system-auth -session required /lib/security/pam_stack.so service=system-auth -session optional /lib/security/pam_xauth.so |