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.
DescriptionLaurent Wandrebeck
2015-05-14 12:08:40 UTC
Created attachment 1025363[details]
grep denied /var/log/audit/audit.log
Description of problem:
Several avc:denied when running Prosody 0.9.8-1.el7 from epel-testing
Version-Release number of selected component (if applicable):
Prosody 0.9.8-1.el7
selinux-policy 3.13.1-23.el7_1.7
(running CentOS 7-1503 fully up to date).
How reproducible:
(configure the service)
systemctl start prosody
Steps to Reproduce:
1. yum install prosody --enablerepo=epel-testing
2. (configure the service - running with PostgreSQL as a backend here)
3. systemctl start prosody
Actual results:
SELinux prevents certains operations to get prosody running.
Expected results:
SELinux let Prosody runs normally.
Additional info:
.te file coming from audit2allow
module myprosody 1.0;
require {
type var_log_t;
type postgresql_port_t;
type prosody_t;
class capability { dac_read_search dac_override };
class tcp_socket name_connect;
class file { read create open };
class dir { write add_name };
}
#============= prosody_t ==============
allow prosody_t postgresql_port_t:tcp_socket name_connect;
allow prosody_t self:capability { dac_read_search dac_override };
allow prosody_t var_log_t:dir { write add_name };
allow prosody_t var_log_t:file { read create open };
Please note that fw is still closed for Prosody, so additionnal rules may be necessary once server goes to prod.
Prosody process should run as user "prosody", directory /var/log/prosody/
should be prosody:prosody, same for log files. Laurent, can you cross-check
your setup, please?
Miroslav: Prosody drops its privileges itself - could that cause the issue,
if it already writes a log line before?
Comment 5Laurent Wandrebeck
2015-05-25 19:04:20 UTC
(In reply to Robert Scheck from comment #4)
> Prosody process should run as user "prosody", directory /var/log/prosody/
> should be prosody:prosody, same for log files. Laurent, can you cross-check
> your setup, please?
>
> Miroslav: Prosody drops its privileges itself - could that cause the issue,
> if it already writes a log line before?
Yes. In this case, we need to add dac_override.
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.
https://rhn.redhat.com/errata/RHBA-2015-2300.html
Created attachment 1025363 [details] grep denied /var/log/audit/audit.log Description of problem: Several avc:denied when running Prosody 0.9.8-1.el7 from epel-testing Version-Release number of selected component (if applicable): Prosody 0.9.8-1.el7 selinux-policy 3.13.1-23.el7_1.7 (running CentOS 7-1503 fully up to date). How reproducible: (configure the service) systemctl start prosody Steps to Reproduce: 1. yum install prosody --enablerepo=epel-testing 2. (configure the service - running with PostgreSQL as a backend here) 3. systemctl start prosody Actual results: SELinux prevents certains operations to get prosody running. Expected results: SELinux let Prosody runs normally. Additional info: .te file coming from audit2allow module myprosody 1.0; require { type var_log_t; type postgresql_port_t; type prosody_t; class capability { dac_read_search dac_override }; class tcp_socket name_connect; class file { read create open }; class dir { write add_name }; } #============= prosody_t ============== allow prosody_t postgresql_port_t:tcp_socket name_connect; allow prosody_t self:capability { dac_read_search dac_override }; allow prosody_t var_log_t:dir { write add_name }; allow prosody_t var_log_t:file { read create open }; Please note that fw is still closed for Prosody, so additionnal rules may be necessary once server goes to prod.