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 2049481 - ocf:heartbeat:CTDB resource start is blocked by selinux
Summary: ocf:heartbeat:CTDB resource start is blocked by selinux
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: selinux-policy
Version: 8.6
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: rc
: 8.6
Assignee: Zdenek Pytela
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-02 10:30 UTC by Martin Juricek
Modified: 2022-05-10 16:25 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.14.3-92.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-10 15:15:49 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-110683 0 None None None 2022-02-02 10:49:27 UTC
Red Hat Product Errata RHBA-2022:1995 0 None None None 2022-05-10 15:16:09 UTC

Comment 1 Zdenek Pytela 2022-02-02 11:28:01 UTC
Martine,

What filesystem is on dm-4 and how it was created? The unlabeled_t type indicates it was created with SELinux disabled.

----
type=PROCTITLE msg=audit(2.2.2022 11:04:58.960:143) : proctitle=/usr/libexec/ctdb/ctdb_mutex_fcntl_helper /mnt/shared0/ctdb/ctdb.lock
type=AVC msg=audit(2.2.2022 11:04:58.960:143) : avc:  denied  { search } for  pid=43217 comm=ctdb_mutex_fcnt name=/ dev="dm-4" ino=25441 scontext=system_u:system_r:ctdbd_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=dir permissive=1
type=SYSCALL msg=audit(2.2.2022 11:04:58.960:143) : arch=x86_64 syscall=openat success=yes exit=4 a0=AT_FDCWD a1=0x7fffee0598d6 a2=O_RDWR|O_CREAT a3=0x180 items=2 ppid=42953 pid=43217 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=ctdb_mutex_fcnt exe=/usr/libexec/ctdb/ctdb_mutex_fcntl_helper subj=system_u:system_r:ctdbd_t:s0 key=(null)
type=CWD msg=audit(2.2.2022 11:04:58.960:143) : cwd=/var/lib/pacemaker/cores
type=PATH msg=audit(2.2.2022 11:04:58.960:143) : item=0 name=/mnt/shared0/ctdb/ inode=1840980 dev=fd:04 mode=dir,755 ouid=root ogid=root rdev=00:00 obj=unconfined_u:object_r:ctdbd_var_run_t:s0 nametype=PARENT cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 cap_frootid=0
type=PATH msg=audit(2.2.2022 11:04:58.960:143) : item=1 name=/mnt/shared0/ctdb/ctdb.lock inode=1905849 dev=fd:04 mode=file,600 ouid=root ogid=root rdev=00:00 obj=system_u:object_r:ctdbd_var_run_t:s0 nametype=NORMAL cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 cap_frootid=0

Comment 3 Zdenek Pytela 2022-02-10 15:46:33 UTC
I've submitted a Fedora PR to address the issue:
https://github.com/fedora-selinux/selinux-policy/pull/1062

To resolve the other problem: the filesystem root needs to be assigned a proper label.

Comment 4 Zdenek Pytela 2022-02-11 10:49:50 UTC
To backport:
commit d690c06f2d838e1d642a99105924bb2b70d22665 (HEAD -> rawhide, upstream/rawhide)
Author: Zdenek Pytela <zpytela>
Date:   Thu Feb 10 16:33:46 2022 +0100

    Allow ctdb create cluster logs

Comment 14 errata-xmlrpc 2022-05-10 15:15:49 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 (selinux-policy bug fix and enhancement update), 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://access.redhat.com/errata/RHBA-2022:1995


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