Bug 1899703
Summary: | [selinux-policy]: Support virtiofs filesystem | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Vivek Goyal <vgoyal> |
Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 8.4 | CC: | dgilbert, dwalsh, jerinjohn2, lvrabec, mmalik, mszeredi, omosnace, plautrba, ssekidde, stefanha |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | 8.5 | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | selinux-policy-3.14.3-72.el8 | Doc Type: | No Doc Update |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-11-09 19:42:29 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: | |||
Bug Depends On: | 1915825 | ||
Bug Blocks: |
Description
Vivek Goyal
2020-11-19 19:51:29 UTC
Note a custom selinux policy module can be used to work around: # echo '(fsuse xattr virtiofs (system_u object_r fs_t ((s0) (s0))))' > virtiofs.cil # semodule -i virtiofs.cil # seinfo --fs_use | grep virtiofs fs_use_xattr virtiofs system_u:object_r:fs_t:s0; (In reply to Zdenek Pytela from comment #1) > Note a custom selinux policy module can be used to work around: > > # echo '(fsuse xattr virtiofs (system_u object_r fs_t ((s0) (s0))))' > > virtiofs.cil > > # semodule -i virtiofs.cil > # seinfo --fs_use | grep virtiofs > fs_use_xattr virtiofs system_u:object_r:fs_t:s0; Thanks. I tried it and it works for me. I can successfully change the label on virtiofs file. This bz depends on bz#1915825, which may be in turn resolved with major kernel selinux subsystem backport in bz#1934093. Adding the rule as indicated in #c1 without the appropriate kernel change would lead to regression: new virtiofs mounts would have unlabeled_t type if the original fs did not support xattr or had selinux disabled. Commit to backport: commit 5580e9a576f759820dbc3387961ce58a959221dc Author: Daniel J Walsh <dwalsh> Date: Fri Jan 29 10:46:20 2021 -0500 virtiofs supports Xattrs and SELinux 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-2021:4420 @Vivek Goyal Could you please share the buffer value received from host for the opcode fuse_xattribute from Guest. |