summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorcsjp <csjp@FreeBSD.org>2005-04-14 03:56:06 +0000
committercsjp <csjp@FreeBSD.org>2005-04-14 03:56:06 +0000
commitb2d40e185ae5ab9e14814880b9e5bc7684c5cf9a (patch)
treeb78508d5cb3b3daefd7dedea162668f6edb335e2 /etc
parent524960baf8cb03ea56c2fcc0d25d5af54a02a088 (diff)
downloadFreeBSD-src-b2d40e185ae5ab9e14814880b9e5bc7684c5cf9a.zip
FreeBSD-src-b2d40e185ae5ab9e14814880b9e5bc7684c5cf9a.tar.gz
Do not remove logging sockets. This fixes an issue where logging
sockets placed into prisons from the host environment get clobbered by the prison's instance of cleanvar. (assuming /etc/rc is run in the prison). Discussed with: pjd, green, cperciva MFC after: 1 week
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.d/cleanvar2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/rc.d/cleanvar b/etc/rc.d/cleanvar
index f2b396f..039f1aa 100644
--- a/etc/rc.d/cleanvar
+++ b/etc/rc.d/cleanvar
@@ -18,6 +18,8 @@ purgedir()
(
cd "$dir" && for file in .* *
do
+ # Skip over logging sockets
+ [ -S "$file" -a "$file" = "log" ] && continue
[ ."$file" = .. -o ."$file" = ... ] && continue
if [ -d "$file" -a ! -L "$file" ]
then
OpenPOWER on IntegriCloud