This file is indexed.

/usr/lib/squidguard/del-sg-from-squid is in squidguard 1.5-5.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
#
#       del-filter-from-squid  -  delete squidGuard filter from squid config.
#
#       Copyright 2011-2012 Joachim Wiedorn <ad_debian at joonet.de>
#       
#       This program 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.
#       
#       This program 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., 51 Franklin Street, Fifth Floor, Boston,
#       MA 02110-1301, USA.

set -e

if test -f /etc/squid3/squid.conf; then
    SQUIDCONF=/etc/squid3/squid.conf
elif test -f /etc/squid/squid.conf; then
    SQUIDCONF=/etc/squid/squid.conf
else
    echo "File squid.conf not found - abort!" 
    exit 1
fi

if [ $(grep -c 'FILTER START' ${SQUIDCONF}) -eq 0 ]; then
    echo "Lines for squidguard not found inside squid.conf - exiting."
    exit 0
fi

LINE=$(grep -n '### FILTER START ###' ${SQUIDCONF} | cut -d':' -f1)
CUTT=$(( LINE - 2 ))

head -n${CUTT} ${SQUIDCONF}   > ${SQUIDCONF}_tmp
cat ${SQUIDCONF}_tmp    > ${SQUIDCONF}

echo "Lines for squidguard deleted from squid.conf."