rsyncd can't open log file, but there are no avc messages
Johnny Tan
linuxweb at gmail.com
Tue Jul 8 21:57:48 UTC 2008
Paul Howarth wrote:
>>>> It seems rsync_log_t is not defined. Can I somehow do this
>>>> without having rsync_log_t?
>>>>
>>>> It works fine when I don't use a symlink, so I assume
>>>> rsync_log_t is not necessary for this to work.
>>>>
>>>> But I need the symlink because I need the files to be stored
>>>> in /var/log/store, as opposed to /opt/solr/logs.
>>> I thought from earlier messages you were on RHEL 5? I've tested this
>>> module with CentOS 5.2 and it loads just fine.
>>>
>>> Which policy version are you using?
>> selinux-policy-2.4.6-106.el5_1.3
>>
>> I haven't updated yet to 5.2
>
> Try adding the type definition to the top of the policy module (just
> after the "policy_module" line):
>
> type rsync_log_t;
> logging_log_file(rsync_log_t)
That still didn't recognize rsync_log_t. But I went ahead
and upgraded to 5.2, and my original selinux policy works --
it doesn't use rsync_log_t at all.
My (completely wild) guess is that something with symlinks
("class lnk_file") got fixed in the new policy, but I don't
know what.
Thanks for the help though!
johnn
More information about the fedora-selinux-list
mailing list