Re: [squid-users] Strange Problems with redirector

From: Peter Albrecht <peter.albrecht@dont-contact.us>
Date: Thu, 18 May 2006 08:59:36 +0200

Hi Philipp,

> I'm trieing to configure Squid (2.5.STABLE12) to use squidGuard (1.2.0 )
> on a OpenSuSE 10.1.
>
> But it doesn't work. Squid without a redictor starts up, but configured
> with a redirector (even if I use "cat") crashes on startup.

Please check, if AppArmor is running. It is started by default and there is a
profile for Squid which limits using redirectors and authentication. To check
if AppArmor is protecting Squid, do:

cat /sys/kernel/security/apparmor/profiles | grep squid

If this returns a line like

/usr/sbin/squid (enforce)

there is an AppArmor profile for Squid activated. To de-activate this profile,
you can

a) Remove the AppArmor Squid profile and reload AppArmor:

rm /etc/apparmor.d/usr.sbin.squid
rcapparmor reload (or /etc/init.d/apparmor reload)

Please use "reload", not "restart". If you restart, AppArmor will only protect
services which are started after AppArmor. Already running processes will not
be protected any longer.

b) Disable AppArmor completely:

rcapparmor stop
insserv -r apparmor

Regards,

Peter

-- 
Peter Albrecht, Novell Training Services, peter.albrecht@novell.com
Received on Thu May 18 2006 - 00:58:59 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Jun 01 2006 - 12:00:02 MDT