Bug 2072246
Summary: | flatpak_helper_t unable to open files inside /var/lib/flatpak | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Michael <michael.scheiffler> |
Component: | flatpak | Assignee: | Debarshi Ray <debarshir> |
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 36 | CC: | amigadave, debarshir, dwalsh, grepl.miroslav, klember, lvrabec, mail, mmalik, omosnace, pkoncity, vmojzis, zpytela |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | abrt_hash:20b5f6537544a68f9fc53c9b1af9d4ea451dddc83eaee53d37f7546617aee12c;VARIANT_ID=workstation; | ||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-05-11 21:05:50 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Michael
2022-04-05 21:49:15 UTC
Needs to be resolved in flatpak-selinux. What's the correct interface to allow this? files_create_var_lib_dirs and/or files_create_var_lib_symlinks? Depends on what flatpak does after opening the file. For reading, files_read_var_lib_files() may be the right one. So, this denial is about an 'open' access to a 'file' with the var_lib_t context, specifically /var/lib/flatpak/repo/config. After following your pointers in: https://bugzilla.redhat.com/show_bug.cgi?id=2072274#c2 ... I see that 'files_read_var_lib_files' evaluates to: interface(`files_read_var_lib_files',` gen_require(` type var_t, var_lib_t; ') allow $1 var_lib_t:dir { getattr search open read lock ioctl }; // read_files_pattern allow $1 { var_t var_lib_t }:dir { getattr search open }; allow $1 var_lib_t:file { open getattr read ioctl lock }; ') We already added files_read_var_lib_files() as part of bug 2070741 so this is a duplicate of that. *** This bug has been marked as a duplicate of bug 2070741 *** |