Hide Forgot
Description of problem: squidguard produces lots of avc messages in audit log Version-Release number of selected component (if applicable): How reproducible: squidGuard-1.4.9.fc15 selinux-policy-targeted-3.10.0-61.fc16 Steps to Reproduce: 1. run squidGuard 2. 3. Actual results: avc's in audit log Expected results: no avc's Additional info: time->Wed Nov 30 18:29:07 2011 type=SYSCALL msg=audit(1322674147.699:278): arch=c000003e syscall=87 success=yes exit=0 a0=12417a0 a1=12417a0 a2=1 a3=1 items=0 ppid=1129 pid=16454 auid=4294967295 uid=23 gid=23 euid=23 suid=23 fsuid=23 egid=23 sgid=23 fsgid=23 tty=(none) ses=4294967295 comm="squidGuard" exe="/usr/bin/squidGuard" subj=system_u:system_r:squid_t:s0 key=(null) type=AVC msg=audit(1322674147.699:278): avc: denied { unlink } for pid=16454 comm="squidGuard" name="BDB16454" dev=dm-1 ino=935 scontext=system_u:system_r:squid_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=file ---- time->Wed Nov 30 22:00:44 2011 type=SYSCALL msg=audit(1322686844.173:340): arch=c000003e syscall=2 success=yes exit=13 a0=1f4f7a0 a1=c2 a2=180 a3=1 items=0 ppid=1129 pid=19487 auid=4294967295 uid=23 gid=23 euid=23 suid=23 fsuid=23 egid=23 sgid=23 fsgid=23 tty=(none) ses=4294967295 comm="squidGuard" exe="/usr/bin/squidGuard" subj=system_u:system_r:squid_t:s0 key=(null) type=AVC msg=audit(1322686844.173:340): avc: denied { read write open } for pid=19487 comm="squidGuard" name="BDB19487" dev=dm-1 ino=515 scontext=system_u:system_r:squid_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=file type=AVC msg=audit(1322686844.173:340): avc: denied { create } for pid=19487 comm="squidGuard" name="BDB19487" scontext=system_u:system_r:squid_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=file ---- time->Wed Nov 30 22:00:44 2011 type=SYSCALL msg=audit(1322686844.173:341): arch=c000003e syscall=87 success=yes exit=0 a0=1f4f7a0 a1=1f4f7a0 a2=1 a3=1 items=0 ppid=1129 pid=19487 auid=4294967295 uid=23 gid=23 euid=23 suid=23 fsuid=23 egid=23 sgid=23 fsgid=23 tty=(none) ses=4294967295 comm="squidGuard" exe="/usr/bin/squidGuard" subj=system_u:system_r:squid_t:s0 key=(null) type=AVC msg=audit(1322686844.173:341): avc: denied { unlink } for pid=19487 comm="squidGuard" name="BDB19487" dev=dm-1 ino=515 scontext=system_u:system_r:squid_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=file ---- time->Fri Dec 2 16:16:34 2011 type=SYSCALL msg=audit(1322838994.864:179): arch=c000003e syscall=2 success=yes exit=13 a0=1a467a0 a1=c2 a2=180 a3=1 items=0 ppid=1160 pid=12565 auid=4294967295 uid=23 gid=23 euid=23 suid=23 fsuid=23 egid=23 sgid=23 fsgid=23 tty=(none) ses=4294967295 comm="squidGuard" exe="/usr/bin/squidGuard" subj=system_u:system_r:squid_t:s0 key=(null) type=AVC msg=audit(1322838994.864:179): avc: denied { read write open } for pid=12565 comm="squidGuard" name="BDB12565" dev=dm-1 ino=986 scontext=system_u:system_r:squid_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=file type=AVC msg=audit(1322838994.864:179): avc: denied { create } for pid=12565 comm="squidGuard" name="BDB12565" scontext=system_u:system_r:squid_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=file ---- time->Fri Dec 2 16:16:34 2011 type=SYSCALL msg=audit(1322838994.865:180): arch=c000003e syscall=87 success=yes exit=0 a0=21077a0 a1=21077a0 a2=1 a3=1 items=0 ppid=1160 pid=12566 auid=4294967295 uid=23 gid=23 euid=23 suid=23 fsuid=23 egid=23 sgid=23 fsgid=23 tty=(none) ses=4294967295 comm="squidGuard" exe="/usr/bin/squidGuard" subj=system_u:system_r:squid_t:s0 key=(null) type=AVC msg=audit(1322838994.865:180): avc: denied { unlink } for pid=12566 comm="squidGuard" name="BDB12566" dev=dm-1 ino=1073 scontext=system_u:system_r:squid_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=file
cblaauw This looks like you might have some files mislabeled as tmp_t? Usually squid content that needs to be written to is stored in /var. restorecon -R -v /var Should fix all labels in /var. Did you setup squid to use /tmp?
Hi Daniel, squid is set up to use /var. I've ran 'restorecon -R -v /var', let's see if something changes. Carsten
Ok, if the problem still exists, please reopen the bug.