I want to setup an cups-pdf printer to print PDFs to a samba shared directory but SELinux denies cups access to the shared directory. (cups needs to write to a local FS directory which is hosted as a windows share by samba running on the same machine)
I'm using CentOS 6.
My audit log shows:
type=AVC msg=audit(1342728685.377:32002): avc: denied { getattr } for pid=236 55 comm="cups-pdf" path="/mnt/storage/samba" dev=sdb1 ino=11927553 scontext=syst em_u:system_r:cups_pdf_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:samba_sha re_t:s0 tclass=dir
I can't simply relabel the directory since it won't have samba_share_t label thus denying further samba access.
Does anyone have a solution to this?