summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>2000-08-11 03:26:30 +0000
committerjdp <jdp@FreeBSD.org>2000-08-11 03:26:30 +0000
commit42f709b55240dfcb8316476122350f6e49aeac2f (patch)
treef071ef29de7920c71a53e4da67111f1a4114676f /etc/rc
parent0e16ee5039b7e56af67343934e645b5916f4d13e (diff)
downloadFreeBSD-src-42f709b55240dfcb8316476122350f6e49aeac2f.zip
FreeBSD-src-42f709b55240dfcb8316476122350f6e49aeac2f.tar.gz
Add an rc.conf knob "ldconfig_insecure" to disable ldconfig's
security checks. Set the default to NO, i.e., secure. Submitted by: Maxime Henrion <mhenrion@cybercable.fr>
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc10
1 files changed, 8 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index efa5ecf..d3da463 100644
--- a/etc/rc
+++ b/etc/rc
@@ -379,6 +379,12 @@ esac
# Make shared lib searching a little faster. Leave /usr/lib first if you
# add your own entries or you may come to grief.
#
+ldconfig="/sbin/ldconfig"
+case ${ldconfig_insecure} in
+[Yy][Ee][Ss])
+ ldconfig="${ldconfig} -i"
+ ;;
+esac
if [ -x /sbin/ldconfig ]; then
case `/usr/bin/objformat` in
elf)
@@ -389,7 +395,7 @@ if [ -x /sbin/ldconfig ]; then
fi
done
echo 'setting ELF ldconfig path:' ${_LDC}
- ldconfig -elf ${_LDC}
+ ${ldconfig} -elf ${_LDC}
;;
esac
@@ -405,7 +411,7 @@ if [ -x /sbin/ldconfig ]; then
fi
done
echo 'setting a.out ldconfig path:' ${_LDC}
- ldconfig -aout ${_LDC}
+ ${ldconfig} -aout ${_LDC}
;;
esac
fi
OpenPOWER on IntegriCloud