Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
The spamd process needs access to update razor configuration files. Users who integrate razor will find log entries such as the following:
type=AVC msg=audit(1337010822.138:931223): avc: denied { write } for pid=688 comm="spamd" name="server.c303.cloudmark.com.conf" dev=dm-0 ino=136915 scontext=system_u:system_r:spamd_t:s0 tcontext=system_u:object_r:spamd_etc_t:s0 tclass=file
Please add write access for spamd_etc_t to the spamd_t context.
Version-Release number of selected component (if applicable):
selinux-policy-3.7.19-126.el6_2.10.noarch
spamassassin-3.3.1-2.el6.x86_64
perl-Razor-Agent-2.85-6.el6.x86_64
The file is located in /etc/razor. restorecon will mark the files as razor_etc_t, which appears to be an alias of spamd_etc_t.
I believe that this is not a startup issue, but razor will update its configuration files during runtime. As this is normal operation for the program, please update policy to reflect that.
mailfilter.rpr.com:~# restorecon -rv /etc/razor/
restorecon reset /etc/razor context unconfined_u:object_r:spamd_etc_t:s0->unconfined_u:object_r:razor_etc_t:s0
restorecon reset /etc/razor/server.c301.cloudmark.com.conf context system_u:object_r:spamd_etc_t:s0->system_u:object_r:razor_etc_t:s0
...
mailfilter.rpr.com:~# ls -lZ /etc/razor/
lrwxrwxrwx. root root unconfined_u:object_r:spamd_etc_t:s0 identity -> identity-ru7Bzeylm5
-rw-------. root root unconfined_u:object_r:spamd_etc_t:s0 identity-ru7Bzeylm5
-rw-r--r--. root root unconfined_u:object_r:spamd_etc_t:s0 razor-agent.conf
...
Comment 5RHEL Program Management
2012-07-10 08:19:38 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.
Comment 6RHEL Program Management
2012-07-11 01:56:04 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development. This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
http://rhn.redhat.com/errata/RHBA-2013-0314.html
Description of problem: The spamd process needs access to update razor configuration files. Users who integrate razor will find log entries such as the following: type=AVC msg=audit(1337010822.138:931223): avc: denied { write } for pid=688 comm="spamd" name="server.c303.cloudmark.com.conf" dev=dm-0 ino=136915 scontext=system_u:system_r:spamd_t:s0 tcontext=system_u:object_r:spamd_etc_t:s0 tclass=file Please add write access for spamd_etc_t to the spamd_t context. Version-Release number of selected component (if applicable): selinux-policy-3.7.19-126.el6_2.10.noarch spamassassin-3.3.1-2.el6.x86_64 perl-Razor-Agent-2.85-6.el6.x86_64