Bug 1767773

Summary: Some SELinux Policy stops stratis from working after upgrade to fedora 31
Product: [Fedora] Fedora Reporter: aannoaanno
Component: selinux-policyAssignee: Patrik Koncity <pkoncity>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 31CC: dkeefe, dwalsh, lvrabec, mgrepl, plautrba, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-06 19:56:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***