Bug 2186966
| Summary: | SELinux is preventing geoclue from 'watch' accesses on the directory /etc. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ankur Sinha (FranciscoD) <sanjay.ankur> | ||||||
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> | ||||||
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 38 | CC: | dwalsh, lvrabec, mmalik, omosnacek, pkoncity, sanjay.ankur, vmojzis, zpytela | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | abrt_hash:81de2ce943e222d45eceae693863925f2c74c153d4e30e368117ff389d214fe7;VARIANT_ID=compneuro; | ||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2023-04-17 16:03:08 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: | |||||||||
| Attachments: |
|
||||||||
Created attachment 1957572 [details]
File: os_info
Created attachment 1957573 [details]
File: description
*** This bug has been marked as a duplicate of bug 2183190 *** |
Description of problem: SELinux is preventing geoclue from 'watch' accesses on the directory /etc. ***** Plugin catchall_labels (83.8 confidence) suggests ******************* If you want to allow geoclue to have watch access on the etc directory Then you need to change the label on /etc Do # semanage fcontext -a -t FILE_TYPE '/etc' where FILE_TYPE is one of the following: geoclue_tmp_t, geoclue_var_lib_t. Then execute: restorecon -v '/etc' ***** Plugin catchall (17.1 confidence) suggests ************************** If you believe that geoclue should be allowed watch access on the etc directory 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 'geoclue' --raw | audit2allow -M my-geoclue # semodule -X 300 -i my-geoclue.pp Additional Information: Source Context system_u:system_r:geoclue_t:s0 Target Context system_u:object_r:etc_t:s0 Target Objects /etc [ dir ] Source geoclue Source Path geoclue Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages SELinux Policy RPM selinux-policy-targeted-38.8-2.fc38.noarch Local Policy RPM selinux-policy-targeted-38.8-2.fc38.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 6.2.11-300.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 13 20:27:09 UTC 2023 x86_64 Alert Count 27 First Seen 2023-04-15 07:53:54 BST Last Seen 2023-04-15 08:49:33 BST Local ID de4c7f88-fbc7-45b8-81e0-a19e5b9e19b1 Raw Audit Messages type=AVC msg=audit(1681544973.707:352): avc: denied { watch } for pid=3198 comm="gmain" path="/etc" dev="sdb5" ino=1835009 scontext=system_u:system_r:geoclue_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=dir permissive=0 Hash: geoclue,geoclue_t,etc_t,dir,watch Version-Release number of selected component: selinux-policy-targeted-38.8-2.fc38.noarch Additional info: reporter: libreport-2.17.9 kernel: 6.2.11-300.fc38.x86_64 reason: SELinux is preventing geoclue from 'watch' accesses on the directory /etc. package: selinux-policy-targeted-38.8-2.fc38.noarch component: selinux-policy hashmarkername: setroubleshoot type: libreport component: selinux-policy