Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1928599

Summary: SELinux is preventing genie-daemon from 'watch' accesses on the file /root/distrs/inside/static_service.s3srv.
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, grepl.miroslav, lvrabec, mmalik, omosnace, plautrba, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:66a2fcfcffd6b17e5ca96773bbf2101da02d3c28b788ab6fa52bb1a1adfac486;VARIANT_ID=workstation;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Mikhail 2021-02-15 05:25:29 UTC
Description of problem:
SELinux is preventing genie-daemon from 'watch' accesses on the file /root/distrs/inside/static_service.s3srv.

*****  Plugin restorecon (99.5 confidence) suggests   ************************

If you want to fix the label. 
/root/distrs/inside/static_service.s3srv default label should be admin_home_t.
Then you can run restorecon. The access attempt may have been stopped due to insufficient permissions to access a parent directory in which case try to change the following command accordingly.
Do
# /sbin/restorecon -v /root/distrs/inside/static_service.s3srv

*****  Plugin catchall (1.49 confidence) suggests   **************************

If you believe that genie-daemon should be allowed watch access on the static_service.s3srv file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'genie-daemon' --raw | audit2allow -M my-geniedaemon
# semodule -X 300 -i my-geniedaemon.pp

Additional Information:
Source Context                system_u:system_r:container_t:s0:c623,c904
Target Context                system_u:object_r:fusefs_t:s0
Target Objects                /root/distrs/inside/static_service.s3srv [ file ]
Source                        genie-daemon
Source Path                   genie-daemon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-3.14.8-1.fc35.noarch
Local Policy RPM              selinux-policy-targeted-3.14.8-1.fc35.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.11.0-0.rc7.20210212git291009f656
                              e8.151.fc35.x86_64 #1 SMP Sat Feb 13 01:01:00 +05
                              2021 x86_64 x86_64
Alert Count                   3
First Seen                    2021-02-15 10:22:40 +05
Last Seen                     2021-02-15 10:23:41 +05
Local ID                      a43a6d98-a7df-4044-95a3-3e9c593e9c13

Raw Audit Messages
type=AVC msg=audit(1613366621.549:858): avc:  denied  { watch } for  pid=83899 comm="genie-daemon" path="/root/distrs/inside/static_service.s3srv" dev="fuse" ino=173812483 scontext=system_u:system_r:container_t:s0:c623,c904 tcontext=system_u:object_r:fusefs_t:s0 tclass=file permissive=1


Hash: genie-daemon,container_t,fusefs_t,file,watch

Version-Release number of selected component:
selinux-policy-targeted-3.14.8-1.fc35.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.14.0
hashmarkername: setroubleshoot
kernel:         5.11.0-0.rc7.20210212git291009f656e8.151.fc35.x86_64
type:           libreport