Bug 2453273 - SELinux is preventing gmain from 'watch' accesses on the directory /usr/share/accountsservice/interfaces.
Summary: SELinux is preventing gmain from 'watch' accesses on the directory /usr/share...
Keywords:
Status: CLOSED DUPLICATE of bug 2451397
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:82ba11423cbd85c3fb6528907e3...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-03-31 01:56 UTC by aeckert2014
Modified: 2026-03-31 14:35 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-03-31 14:35:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.47 KB, text/plain)
2026-03-31 01:56 UTC, aeckert2014
no flags Details
File: os_info (753 bytes, text/plain)
2026-03-31 01:56 UTC, aeckert2014
no flags Details

Description aeckert2014 2026-03-31 01:56:30 UTC
Description of problem:
SELinux is preventing gmain from 'watch' accesses on the directory /usr/share/accountsservice/interfaces.

*****  Plugin catchall_labels (83.8 confidence) suggests   *******************

If you want to allow gmain to have watch access on the interfaces directory
Then you need to change the label on /usr/share/accountsservice/interfaces
Do
# semanage fcontext -a -t FILE_TYPE '/usr/share/accountsservice/interfaces'
where FILE_TYPE is one of the following: accountsd_var_lib_t, etc_t, var_log_t, xdm_etc_t.
Then execute:
restorecon -v '/usr/share/accountsservice/interfaces'


*****  Plugin catchall (17.1 confidence) suggests   **************************

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

Additional Information:
Source Context                system_u:system_r:accountsd_t:s0
Target Context                system_u:object_r:usr_t:s0
Target Objects                /usr/share/accountsservice/interfaces [ dir ]
Source                        gmain
Source Path                   gmain
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           accountsservice-26.12.8-1.fc45.x86_64
SELinux Policy RPM            selinux-policy-targeted-43.4-1.fc45.noarch
Local Policy RPM              selinux-policy-targeted-43.4-1.fc45.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              7.0.0-0.rc5.260327g46b513250491.46.fc45.x86_64 #1
                              SMP PREEMPT_DYNAMIC Fri Mar 27 15:23:17 UTC 2026
                              x86_64
Alert Count                   12
First Seen                    2026-03-30 20:51:42 CDT
Last Seen                     2026-03-30 20:52:26 CDT
Local ID                      528d88e2-0cfb-4a45-9038-e7575bf097d0

Raw Audit Messages
type=AVC msg=audit(1774921946.713:207): avc:  denied  { watch } for  pid=1179 comm="gmain" path="/usr/share/accountsservice/interfaces" dev="nvme0n1p3" ino=58658 scontext=system_u:system_r:accountsd_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=dir permissive=0


Hash: gmain,accountsd_t,usr_t,dir,watch

Version-Release number of selected component:
selinux-policy-targeted-43.4-1.fc45.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing gmain from 'watch' accesses on the directory /usr/share/accountsservice/interfaces.
package:        selinux-policy-targeted-43.4-1.fc45.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         7.0.0-0.rc5.260327g46b513250491.46.fc45.x86_64
event_log:      2026-03-30-20:52:35> Looking for similar problems in bugzilla
component:      selinux-policy

Comment 1 aeckert2014 2026-03-31 01:56:32 UTC
Created attachment 2135525 [details]
File: description

Comment 2 aeckert2014 2026-03-31 01:56:34 UTC
Created attachment 2135526 [details]
File: os_info

Comment 3 Zdenek Pytela 2026-03-31 14:35:35 UTC

*** This bug has been marked as a duplicate of bug 2451397 ***


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