Bug 1767773 - Some SELinux Policy stops stratis from working after upgrade to fedora 31
Summary: Some SELinux Policy stops stratis from working after upgrade to fedora 31
Keywords:
Status: CLOSED DUPLICATE of bug 1755396
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 31
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Patrik Koncity
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-01 11:51 UTC by aannoaanno
Modified: 2019-11-06 19:56 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-06 19:56:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description aannoaanno 2019-11-01 11:51:45 UTC
Description of problem:
There seems to be a selinux policy that interferes with stratisd after upgrade to fedora 31
https://bugzilla.redhat.com/show_bug.cgi?id=1767743

Actual results:

/var/log/messages:
Oct 30 20:01:38 blacksnapper kernel: audit: type=1400 audit(1572462098.005:119): avc:  denied  { read } for  pid=23157 comm="stratisd" name="dm-6" dev="devtmpfs" ino=19373 scontext=system_u:system_r:stratisd_t:s0 tcontext=system_u:object_r:fixed_disk_device_t:s0 tclass=blk_file permissive=0

Expected results:
Access should be granted.

Additional info:
If I set

setenforce 0

and restart stratisd, it is working again.

Comment 1 Dennis Keefe 2019-11-02 03:03:58 UTC
Security team, any chance that this bug is related to https://bugzilla.redhat.com/show_bug.cgi?id=1755396?

Comment 2 aannoaanno 2019-11-02 10:01:11 UTC
I'm not 100% sure if stratis is not working after boot. However, I knew that _restarting_ stratis on my system is a problem. Installing and _restarting_ does not work for the fedora 31 live cd as well...

Comment 3 aannoaanno 2019-11-02 18:35:29 UTC
Version on the system that maybe affected:

# rpm -qa selinux-policy*
selinux-policy-targeted-3.14.4-39.fc31.noarch
selinux-policy-3.14.4-39.fc31.noarch

Comment 4 aannoaanno 2019-11-06 19:17:36 UTC
drckeefe has managed to reproduce the problem: https://github.com/stratis-storage/stratisd/issues/1684

Comment 5 Lukas Vrabec 2019-11-06 19:56:01 UTC

*** This bug has been marked as a duplicate of bug 1755396 ***


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