Bug 2453108 - SELinux is preventing accounts-daemon from 'watch' accesses on the directory /usr/share/accountsservice/interfaces.
Summary: SELinux is preventing accounts-daemon from 'watch' accesses on the directory ...
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:fe6ae5416437cf1e19ffd980ae8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-03-30 17:03 UTC by Mikhail
Modified: 2026-03-31 14:35 UTC (History)
8 users (show)

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


Attachments (Terms of Use)
File: description (2.59 KB, text/plain)
2026-03-30 17:03 UTC, Mikhail
no flags Details
File: os_info (740 bytes, text/plain)
2026-03-30 17:03 UTC, Mikhail
no flags Details

Description Mikhail 2026-03-30 17:03:41 UTC
Description of problem:
SELinux is preventing accounts-daemon from 'watch' accesses on the directory /usr/share/accountsservice/interfaces.

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

If you want to allow accounts-daemon 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 accounts-daemon 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 'accounts-daemon' --raw | audit2allow -M my-accountsdaemon
# semodule -X 300 -i my-accountsdaemon.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                        accounts-daemon
Source Path                   accounts-daemon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           accountsservice-26.12.8-1.fc45.x86_64
                              malcontent-0.14.0-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                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 7.0.0-rc6-7aaa8047eafd-with-
                              fixes-3+ #154 SMP PREEMPT_DYNAMIC Mon Mar 30
                              18:49:14 +05 2026 x86_64
Alert Count                   1
First Seen                    2026-03-30 19:41:56 +05
Last Seen                     2026-03-30 19:41:56 +05
Local ID                      01928472-f0e8-445f-82d7-7ee9d5c46650

Raw Audit Messages
type=AVC msg=audit(1774881716.159:85): avc:  denied  { watch } for  pid=1500 comm="accounts-daemon" path="/usr/share/accountsservice/interfaces" dev="nvme1n1p3" ino=49603 scontext=system_u:system_r:accountsd_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=dir permissive=1


Hash: accounts-daemon,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 accounts-daemon 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-rc6-7aaa8047eafd-with-fixes-3+
component:      selinux-policy

Comment 1 Mikhail 2026-03-30 17:03:44 UTC
Created attachment 2135468 [details]
File: description

Comment 2 Mikhail 2026-03-30 17:03:45 UTC
Created attachment 2135469 [details]
File: os_info

Comment 3 Zdenek Pytela 2026-03-31 14:35:29 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.