Bug 2224343 - SELinux is preventing dhclient from 'read' accesses on the file /home/salamanetwork/.local/share/plasmashell/QtWebEngine/chat-gpt/Local Storage/leveldb/000005.ldb.
Summary: SELinux is preventing dhclient from 'read' accesses on the file /home/salaman...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:dfa2815a533cda4da9370ea0116...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-20 13:05 UTC by Ahmed Salama
Modified: 2023-07-23 19:54 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (699 bytes, text/plain)
2023-07-20 13:05 UTC, Ahmed Salama
no flags Details
File: description (2.29 KB, text/plain)
2023-07-20 13:05 UTC, Ahmed Salama
no flags Details

Description Ahmed Salama 2023-07-20 13:05:16 UTC
Description of problem:
SELinux is preventing dhclient from 'read' accesses on the file /home/salamanetwork/.local/share/plasmashell/QtWebEngine/chat-gpt/Local Storage/leveldb/000005.ldb.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that dhclient should be allowed read access on the 000005.ldb 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 'dhclient' --raw | audit2allow -M my-dhclient
# semodule -X 300 -i my-dhclient.pp

Additional Information:
Source Context                unconfined_u:system_r:dhcpc_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:data_home_t:s0
Target Objects                /home/salamanetwork/.local/share/plasmashell/QtWeb
                              Engine/chat-gpt/Local Storage/leveldb/000005.ldb [
                              file ]
Source                        dhclient
Source Path                   dhclient
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-38.21-1.fc38.noarch
Local Policy RPM              selinux-policy-targeted-38.21-1.fc38.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.3.12-200.fc38.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Jul 6 04:05:18 UTC 2023 x86_64
Alert Count                   10
First Seen                    2023-07-19 22:12:59 +04
Last Seen                     2023-07-19 22:13:07 +04
Local ID                      de4068e5-bb66-4433-b3d6-69c3da24cf36

Raw Audit Messages
type=AVC msg=audit(1689790387.340:441): avc:  denied  { read } for  pid=18057 comm="dhclient" path=2F686F6D652F73616C616D616E6574776F726B2F2E6C6F63616C2F73686172652F706C61736D617368656C6C2F5174576562456E67696E652F636861742D6770742F4C6F63616C2053746F726167652F6C6576656C64622F3030303030352E6C6462 dev="nvme0n1p5" ino=27817681 scontext=unconfined_u:system_r:dhcpc_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:data_home_t:s0 tclass=file permissive=0


Hash: dhclient,dhcpc_t,data_home_t,file,read

Version-Release number of selected component:
selinux-policy-targeted-38.21-1.fc38.noarch

Additional info:
reporter:       libreport-2.17.11
component:      selinux-policy
package:        selinux-policy-targeted-38.21-1.fc38.noarch
hashmarkername: setroubleshoot
event_log:      2023-07-20-17:04:45> Looking for similar problems in bugzilla
reason:         SELinux is preventing dhclient from 'read' accesses on the file /home/salamanetwork/.local/share/plasmashell/QtWebEngine/chat-gpt/Local Storage/leveldb/000005.ldb.
kernel:         6.3.12-200.fc38.x86_64
type:           libreport
component:      selinux-policy

Comment 1 Ahmed Salama 2023-07-20 13:05:19 UTC
Created attachment 1976722 [details]
File: os_info

Comment 2 Ahmed Salama 2023-07-20 13:05:22 UTC
Created attachment 1976723 [details]
File: description

Comment 3 Zdenek Pytela 2023-07-20 14:00:23 UTC
Hi,

Looking at the file path, I don't quite understand what is dhclient trying to do with that, do you?

Comment 4 Ahmed Salama 2023-07-23 19:54:31 UTC
(In reply to Zdenek Pytela from comment #3)
> Hi,
> 
> Looking at the file path, I don't quite understand what is dhclient trying
> to do with that, do you?

Actually, I do not know. what happened then, I am just linux enthuiest, then i give you all the info as the trouble shooter told "Report The Busg"


Note You need to log in before you can comment on or make changes to this bug.