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 1030277 - rasdaemon runs as init_t
Summary: rasdaemon runs as init_t
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On: nopolicy
Blocks: 848829 1042721
TreeView+ depends on / blocked
 
Reported: 2013-11-14 09:39 UTC by Milos Malik
Modified: 2014-06-18 02:29 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.12.1-114.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 12:22:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Milos Malik 2013-11-14 09:39:28 UTC
Description of problem:


Version-Release number of selected component (if applicable):
rasdaemon-0.4.1-5.el7.x86_64
selinux-policy-3.12.1-99.el7.noarch
selinux-policy-devel-3.12.1-99.el7.noarch
selinux-policy-doc-3.12.1-99.el7.noarch
selinux-policy-minimum-3.12.1-99.el7.noarch
selinux-policy-mls-3.12.1-99.el7.noarch
selinux-policy-targeted-3.12.1-99.el7.noarch

How reproducible:
always

Steps to Reproduce:
# ps -efZ | grep rasdaemon
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 root 15278 2470  0 10:36 pts/0 00:00:00 grep --color=auto rasdaemon
# service rasdaemon start
Redirecting to /bin/systemctl start  rasdaemon.service
# service rasdaemon status
Redirecting to /bin/systemctl status  rasdaemon.service
rasdaemon.service - RAS daemon to log the RAS events
   Loaded: loaded (/usr/lib/systemd/system/rasdaemon.service; disabled)
   Active: active (running) since Thu 2013-11-14 10:37:03 CET; 2s ago
 Main PID: 15291 (rasdaemon)
   CGroup: /system.slice/rasdaemon.service
           └─15291 /usr/sbin/rasdaemon -f

Nov 14 10:37:03 rhel70.localdomain rasdaemon[15291]: rasdaemon: Can't get tra...
Nov 14 10:37:03 rhel70.localdomain rasdaemon[15291]: ras:aer_event event enabled
Nov 14 10:37:03 rhel70.localdomain rasdaemon[15291]: rasdaemon: ras:aer_event...
Nov 14 10:37:03 rhel70.localdomain rasdaemon[15291]: Enabled event ras:aer_event
Nov 14 10:37:03 rhel70.localdomain rasdaemon[15291]: rasdaemon: Enabled event...
Nov 14 10:37:03 rhel70.localdomain rasdaemon[15291]: mce:mce_record event ena...
Nov 14 10:37:03 rhel70.localdomain rasdaemon[15291]: rasdaemon: mce:mce_recor...
Nov 14 10:37:03 rhel70.localdomain rasdaemon[15291]: Enabled event mce:mce_re...
Nov 14 10:37:03 rhel70.localdomain rasdaemon[15291]: rasdaemon: Enabled event...
Nov 14 10:37:03 rhel70.localdomain rasdaemon[15291]: rasdaemon: Listening to ...
Hint: Some lines were ellipsized, use -l to show in full.
# ps -efZ | grep rasdaemon
system_u:system_r:init_t:s0     root     15291     1  0 10:37 ?        00:00:00 /usr/sbin/rasdaemon -f
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 root 15304 2470  0 10:37 pts/0 00:00:00 grep --color=auto rasdaemon
#

Actual results:
 * rasdaemon runs as init_t

Expected results:
 * rasdaemon runs in its own SELinux domain

Comment 1 Lukas Vrabec 2013-11-21 16:48:58 UTC
commit bedb9683dc0e81ec79cb5e8adc31a6da9f06cf3b
Author: Lukas Vrabec <lvrabec>
Date:   Thu Nov 21 17:30:47 2013 +0100

    Added new policy for rasdaemon

Comment 6 Lukas Vrabec 2013-12-03 14:54:59 UTC
commit 1a75c671b9ca1138b571615242fb8b4f065f8327
Author: Lukas Vrabec <lvrabec>
Date:   Tue Dec 3 15:29:57 2013 +0100

    Allow manage dirs in kernel_manage_debugfs interface.

Fixed bug with creating debugfs dirs.

Comment 10 Lukas Vrabec 2013-12-10 12:18:16 UTC
Aristeu, 
Thank you. 

I'll add dontaudit rule here.

Comment 11 Miroslav Grepl 2014-01-15 13:43:12 UTC
Has been already added.

Comment 13 Ludek Smid 2014-06-13 12:22:04 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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