Bug 2072274
Summary: | flatpak_helper_t unable to lock 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:cfd5de6ad67c59b5e95ee7251784def01ce05783fbeb2f30ea2f5c0638d675eb;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 11:45:22 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 22:00:16 UTC
I suppose this one should also be addressed in flatpak-selinux. I see several interfaces dealing with locks in selinux-policy, but I don't know which one I should be using. Any ideas? The lock permission is usually added as a part of a pattern: policy/modules/kernel/files.if 7907 interface(`files_read_var_lib_files',` 7908 gen_require(` 7909 type var_t, var_lib_t; 7910 ') 7911 7912 allow $1 var_lib_t:dir list_dir_perms; 7913 read_files_pattern($1, { var_t var_lib_t }, var_lib_t) 7914 ') policy/support/file_patterns.spt 114 define(`read_files_pattern',` 115 allow $1 $2:dir search_dir_perms; 116 allow $1 $3:file read_file_perms; 117 ') policy/support/obj_perm_sets.spt 159 define(`read_inherited_file_perms',`{ getattr read ioctl lock }') 160 define(`read_file_perms',`{ open read_inherited_file_perms }') I see. Does it mean that this is already enough to grant lock access inside '/var/lib/flatpak': files_read_var_lib_files(flatpak_helper_t) (In reply to Debarshi Ray from comment #3) > I see. Does it mean that this is already enough to grant lock access inside > '/var/lib/flatpak': > files_read_var_lib_files(flatpak_helper_t) It means the lock permission will be allowed among others. (In reply to Zdenek Pytela from comment #4) > (In reply to Debarshi Ray from comment #3) > > I see. Does it mean that this is already enough to grant lock access inside > > '/var/lib/flatpak': > > files_read_var_lib_files(flatpak_helper_t) > > It means the lock permission will be allowed among others. In that case, I will mark this is a duplicate of bug 2070741 Thanks for the explanation, Zdeňek! *** This bug has been marked as a duplicate of bug 2070741 *** |