aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Fernando J. Pereda <ferdy@ferdyx.org> 2007-01-04 21:47:27 +0000
committerAvatar Fernando J. Pereda <ferdy@ferdyx.org> 2007-01-04 21:47:27 +0000
commit1c3b154096670a69940bb17fa693b87cb9a4260d (patch)
tree4e8c6ddbf40a87142bdab762f69ce5195cd0305a
parent246ffd1f4959c8dc28ab45826980e59f91917e00 (diff)
downloadpaludis-1c3b154096670a69940bb17fa693b87cb9a4260d.tar.gz
paludis-1c3b154096670a69940bb17fa693b87cb9a4260d.tar.xz
Remove the setuid_setgid hook until I can properly test it and make it work.
-rw-r--r--hooks/Makefile.am.m47
-rwxr-xr-xhooks/paranoid_setuid_setgid.bash34
2 files changed, 1 insertions, 40 deletions
diff --git a/hooks/Makefile.am.m4 b/hooks/Makefile.am.m4
index 3f42a31..510eb02 100644
--- a/hooks/Makefile.am.m4
+++ b/hooks/Makefile.am.m4
@@ -13,7 +13,6 @@ installhookcommonprogdir = $(libexecdir)/paludis/hooks/common
installhookinstallallpostdir = $(libexecdir)/paludis/hooks/install_all_post
installhookinstallpostdir = $(libexecdir)/paludis/hooks/install_post
installhookebuildmergepredir = $(libexecdir)/paludis/hooks/ebuild_merge_pre
-installhookuninstallpredir = $(libexecdir)/paludis/hooks/uninstall_pre
installhookcommonprog_SCRIPTS = \
gnu_info_index.bash \
@@ -30,11 +29,7 @@ installhookinstallpost_SCRIPTS = \
update_config_protect_list.bash
installhookebuildmergepre_SCRIPTS = \
- rewrite_broken_symlinks.bash \
- paranoid_setuid_setgid.bash
-
-installhookuninstallpre_SCRIPTS = \
- paranoid_setuid_setgid.bash
+ rewrite_broken_symlinks.bash
installvarlibpaludisnews_DATA = \
.keep
diff --git a/hooks/paranoid_setuid_setgid.bash b/hooks/paranoid_setuid_setgid.bash
deleted file mode 100755
index 44b5527..0000000
--- a/hooks/paranoid_setuid_setgid.bash
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash
-# vim: set et sw=4 sts=4 :
-
-# Copyright (c) 2007 Fernando J. Pereda <ferdy@gentoo.org>
-#
-# This file is part of the Paludis package manager. Paludis is free software;
-# you can redistribute it and/or modify it under the terms of the GNU General
-# Public License, version 2, as published by the Free Software Foundation.
-#
-# Paludis is distributed in the hope that it will be useful, but WITHOUT ANY
-# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
-# details.
-#
-# You should have received a copy of the GNU General Public License along with
-# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
-# Place, Suite 330, Boston, MA 02111-1307 USA
-
-export PATH="$(${PALUDIS_EBUILD_DIR}/utils/canonicalise ${PALUDIS_EBUILD_DIR}/utils/ ):${PATH}"
-source ${PALUDIS_EBUILD_DIR}/echo_functions.bash
-
-einfo_unhooked "Removing setuid and setgid bits..."
-
-while read file ; do
- [[ -f "${file}" ]] || continue
- if [[ -u "${file}" ]] || [[ -g "${file}" ]] ; then
- chmod gu-s "${file}"
- fi
-done < <(${PALUDIS_COMMAND} --contents =${CATEGORY}/${PF} |
- sed -e '1d' -e '/^\s*$/d' -e 's-^\s*--')
-
-einfo_unhooked "Done removing setuid and setgid bits."
-
-true