2 messages in net.sourceforge.lists.courier-sqwebmail[sqwebmail] avc: denied { write } f...
FromSent OnAttachments
Julie S. LinJan 12, 2006 5:16 pm 
Sam VarshavchikJan 12, 2006 5:30 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[sqwebmail] avc: denied { write } f or pid=5810 exe=/var/www/cgi-bin/webmail name=sqwebmail.sockActions...
From:Julie S. Lin (jl@myvest.com)
Date:Jan 12, 2006 5:16:17 pm
List:net.sourceforge.lists.courier-sqwebmail

Hi

I would appear I'm having this same problem.I have checked the permissions for
my setup up from /usr/lib/courier/var/sqwebmail.sock and believe they should be OK. i am not running SELinux and have the latest courier on redhat4

here is my error message. Jan 12 16:56:13 slink kernel: audit(1137113773.982:0): avc: denied { write }
for pid=5810 exe=/var/www/cgi-bin/webmail name=sqwebmail.sock dev=hda2 ino=359750 scontext=root:system_r:httpd_sys_script_t
tcontext=root:object_r:lib_t tclass=sock_file

can anyone help point a newbie in the right direction? thanks.

my current permissions are as follows ..

[root@slink var]# pwd /usr/lib/courier/var [root@slink var]# ls -al total 612 drwxrwxrwx 11 bin bin 4096 Jan 12 16:57 . drwxrwxrwx 9 courier courier 4096 Jan 8 13:47 .. drwxr-x--- 2 courier courier 4096 Jan 8 13:46 allfilters drwxr-xr-x 5 courier courier 4096 Jan 8 13:46 calendar -rw------- 1 courier courier 524288 Jan 12 17:04 couriersslcache drwx------ 2 courier courier 4096 Jan 8 13:47 faxtmp drwxr-x--- 2 courier courier 4096 Jan 8 13:46 filters drwxr-xr-x 3 courier courier 4096 Jan 12 16:59 msgq drwxr-x--- 4 courier courier 4096 Jan 12 17:02 msgs srwxrwxrwx 1 root root 0 Jan 12 16:06 sqwebmail.sock drwxrwx--- 4 courier courier 4096 Jan 12 16:06 tmp drwxr-xr-x 2 courier courier 4096 Jan 12 10:58 track drwxr-xr-x 2 bin courier 4096 Jan 8 13:46 webmail-logincache

[root@slink courier]# pwd /usr/lib/courier [root@slink courier]# ls -al total 104 drwxrwxrwx 9 courier courier 4096 Jan 8 13:47 . drwxr-xr-x 91 root root 36864 Jan 10 04:04 .. drwxr-xr-x 2 bin bin 4096 Jan 10 04:04 bin drwxr-xr-x 11 courier courier 4096 Jan 11 12:55 etc drwxr-xr-x 4 bin bin 4096 Jan 8 13:46 libexec drwxr-xr-x 6 bin bin 4096 Jan 8 13:46 man drwxr-xr-x 2 bin bin 4096 Jan 10 04:04 sbin drwxr-xr-x 8 bin bin 4096 Jan 9 14:44 share drwxrwxrwx 11 bin bin 4096 Jan 12 16:57 var

[root@slink lib]# pwd /usr/lib [root@slink lib]# ls -la | more total 135828 drwxr-xr-x 91 root root 36864 Jan 10 04:04 . drwxr-xr-x 15 root root 4096 Jan 7 13:55 .. drwxr-xr-x 3 root root 4096 Jan 7 13:57 alchemist drwxr-xr-x 3 root root 4096 Jan 7 13:54 anaconda-runtime drwxr-xr-x 3 root root 4096 Jan 7 13:59 ao drwxr-xr-x 2 root root 4096 Jan 7 13:56 aspell drwxr-xr-x 2 root root 4096 Jan 10 04:03 autofs drwxr-xr-x 4 root root 4096 Nov 6 2004 bonobo drwxrwxrwx 9 courier courier 4096 Jan 8 13:47 courier

[root@slink usr]# pwd /usr [root@slink usr]# ls -al | grep lib drwxr-xr-x 91 root root 36864 Jan 10 04:04 lib

jiesheng zhang writes:

Indeed, this is caused by the permission on the filesystem cokect directory. I caught this by running "strace ./webmail" and I got this line from trace file

--------------------------------------- connect(3, {sa_family=AF_FILE, path="/var/spool/courier/sqwebmail.sock"}, 110) = -1 EACCES (Permission denied)

-------------------------------------- I checked the /var/sppol/courier/sqwebmail.sock srwxrwxrwx 1 root root 0 Apr 18 15:06 sqwebmail.sock

------------------------------------------ It seems that every one has the read/write permission, why webmail can not access it?

Help is really appreciated.

Look at the parent directories, /var, /var/spool, and /var/spool/courier