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.
Bug 1063890 - bacula daemons run as initrc_t
Summary: bacula daemons run as initrc_t
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: selinux-policy
Version: 6.5
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks: 832330 1116423
TreeView+ depends on / blocked
 
Reported: 2014-02-11 15:27 UTC by Milos Malik
Modified: 2014-10-14 07:59 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.7.19-238.el6
Doc Type: Bug Fix
Doc Text:
Clone Of: 1030489
Environment:
Last Closed: 2014-10-14 07:59:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1568 0 normal SHIPPED_LIVE selinux-policy bug fix and enhancement update 2014-10-14 01:27:37 UTC

Description Milos Malik 2014-02-11 15:27:38 UTC
Description of problem:
 * there is no policy for bacula daemons

Version-Release number of selected component (if applicable):
bacula-client-5.0.0-12.el6.x86_64
bacula-common-5.0.0-12.el6.x86_64
bacula-console-5.0.0-12.el6.x86_64
bacula-console-bat-5.0.0-12.el6.x86_64
bacula-director-common-5.0.0-12.el6.x86_64
bacula-director-mysql-5.0.0-12.el6.x86_64
bacula-director-postgresql-5.0.0-12.el6.x86_64
bacula-director-sqlite-5.0.0-12.el6.x86_64
bacula-docs-5.0.0-12.el6.x86_64
bacula-storage-common-5.0.0-12.el6.x86_64
bacula-storage-mysql-5.0.0-12.el6.x86_64
bacula-storage-postgresql-5.0.0-12.el6.x86_64
bacula-storage-sqlite-5.0.0-12.el6.x86_64
bacula-traymonitor-5.0.0-12.el6.x86_64
selinux-policy-3.7.19-231.el6.noarch
selinux-policy-doc-3.7.19-231.el6.noarch
selinux-policy-minimum-3.7.19-231.el6.noarch
selinux-policy-mls-3.7.19-231.el6.noarch
selinux-policy-targeted-3.7.19-231.el6.noarch

How reproducible:
always

Steps to Reproduce:
# service bacula-dir start
Starting bacula-dir:                                       [  OK  ]
# service bacula-fd start
Starting bacula-fd:                                        [  OK  ]
# service bacula-sd start
Starting bacula-sd:                                        [  OK  ]
# ps -efZ | grep bacula
unconfined_u:system_r:initrc_t:s0 root    6215     1  0 16:25 ?        00:00:00 bacula-dir -c /etc/bacula/bacula-dir.conf
unconfined_u:system_r:initrc_t:s0 root    6228     1  0 16:25 ?        00:00:00 bacula-fd -c /etc/bacula/bacula-fd.conf
unconfined_u:system_r:initrc_t:s0 root    6242     1  0 16:25 ?        00:00:00 bacula-sd -c /etc/bacula/bacula-sd.conf
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 root 6248 31332  0 16:25 pts/0 00:00:00 grep bacula
#

Actual results:
 * the daemons run as initrc_t

Expected results:
 * the daemons run in a dedicated SELinux domain(s)

Comment 1 Lukas Vrabec 2014-06-10 14:12:47 UTC
I sent patch to mirek.

Comment 4 Lukas Vrabec 2014-06-25 13:26:04 UTC
Could you re-test it in permissive mode? 

Thank you.

Comment 5 Milos Malik 2014-06-25 13:39:21 UTC
----
type=SOCKADDR msg=audit(06/25/2014 15:37:23.849:1486) : saddr=inet host:0.0.0.0 serv:9103 
type=SYSCALL msg=audit(06/25/2014 15:37:23.849:1486) : arch=x86_64 syscall=bind success=yes exit=0 a0=0x3 a1=0x1995f5c a2=0x10 a3=0x7fff184e0b30 items=0 ppid=1 pid=10837 auid=root uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=5 comm=bacula-sd exe=/usr/sbin/bacula-sd subj=unconfined_u:system_r:bacula_t:s0 key=(null) 
type=AVC msg=audit(06/25/2014 15:37:23.849:1486) : avc:  denied  { name_bind } for  pid=10837 comm=bacula-sd src=9103 scontext=unconfined_u:system_r:bacula_t:s0 tcontext=system_u:object_r:port_t:s0 tclass=tcp_socket 
----

No additional AVCs appeared.

Comment 6 Lukas Vrabec 2014-06-25 13:43:41 UTC
patch sent.

Comment 8 errata-xmlrpc 2014-10-14 07:59:59 UTC
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-2014-1568.html


Note You need to log in before you can comment on or make changes to this bug.