Commit 8a215268 authored by Mike Hibler's avatar Mike Hibler
Browse files

Add a new class of scripts, SETUID_SUEXEC_SCRIPTS, and put spewlogfile in it.

These are setuid perl scripts that are run by "suexec" from the webserver.
suexec disallows symlinks so we must make these hard links to runsuid.
parent c30f3d9d
......@@ -69,6 +69,13 @@ $(addprefix $(INSTALL_LIBEXECDIR)/, $(SETUID_LIBX_SCRIPTS)): $(INSTALL_LIBEXECDI
-rm -f $@
ln -s $(INSTALL_LIBEXECDIR)/runsuid $@
# Special libexec rule for scripts invoked by suexec (cannot be a symlink)
echo "Installing (hard link to wrapper) $<"
-rm -f $@
ln $(INSTALL_LIBEXECDIR)/runsuid $@
echo "Installing (real script) $<"
-mkdir -p $(INSTALL_SUIDDIR)
# Copyright (c) 2000-2011 University of Utah and the Flux Group.
# Copyright (c) 2000-2012 University of Utah and the Flux Group.
# All rights reserved.
......@@ -105,7 +105,8 @@ SETUID_SBIN_SCRIPTS = mkproj rmgroup mkgroup frisbeehelper \
rmuser idleswap named_setup exports_setup \
sfskey_update setgroups newnode_reboot vnode_setup \
elabinelab nfstrace rmproj
SETUID_LIBX_SCRIPTS = console_setup spewlogfile
SETUID_LIBX_SCRIPTS = console_setup
ifeq ($(SYSTEM),FreeBSD)
SUBDIRS += ipassign
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment