Bug 1301829 - systemd-logind is unable to access /dev/shm/PostgreSQL due to unable to read tmpfs by selinux
Summary: systemd-logind is unable to access /dev/shm/PostgreSQL due to unable to read ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.3
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: 7.3
Assignee: Miroslav Grepl
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-26 05:07 UTC by Mohit Agrawal
Modified: 2021-09-09 11:45 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-25 11:44:56 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Mohit Agrawal 2016-01-26 05:07:43 UTC
Description of problem:
systemd-logind is unable to access /dev/shm/PostgreSQL due to unable to read tmpfs by selinux,It is showing below error

systemd-logind: Failed to stat() POSIX shared memory segment PostgreSQL.1804289383: Permission denied
And in /var/log/audit/audit.log:
type=AVC msg=audit(1453450858.765:5271): avc:  denied  { getattr } for  pid=697 comm="systemd-logind" path="/dev/shm/PostgreSQL.1804289383" dev="tmpfs" ino=18249 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:initrc_state_t:s0 tclass=file

Version-Release number of selected component (if applicable):

Red Hat Enterprise Linux 7.2
How reproducible:
Always

Steps to Reproduce:
1.
2.
3.

Actual results:
systemd-logind is unable to stat POSIX memory segment getting permission denied

Expected results:
It should not get any error.

Additional info:

Comment 4 Mohit Agrawal 2016-01-26 10:00:15 UTC
Hi,

Issue will fix from https://bugzilla.redhat.com/show_bug.cgi?id=1284588 in systemd-logind and workaround is set RemoveIPC=no in /etc/systemd/logind.conf.

Now you can close this bug.

Regards
Mohit Agrawal

Comment 5 Lukas Vrabec 2016-04-25 11:44:56 UTC
Regarding to comment 4, closing this issue as NOTABUG


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