Bug 1935562 - SELinux is preventing accounts-daemon from using the 'fowner' capabilities.
Summary: SELinux is preventing accounts-daemon from using the 'fowner' capabilities.
Keywords:
Status: CLOSED DUPLICATE of bug 1933437
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:66f64a7a26aff1145386ab2d2da...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-05 06:59 UTC by Mikhail
Modified: 2023-09-15 01:02 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-03-23 17:05:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2021-03-05 06:59:46 UTC
Description of problem:
SELinux is preventing accounts-daemon from using the 'fowner' capabilities.

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

If you believe that accounts-daemon should have the fowner capability 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:system_r:accountsd_t:s0
Target Objects                Unknown [ capability ]
Source                        accounts-daemon
Source Path                   accounts-daemon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-3.14.8-4.fc35.noarch
Local Policy RPM              selinux-policy-targeted-3.14.8-4.fc35.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.12.0-0.rc1.20210304gitf69d02e37a
                              85.163.fc35.x86_64 #1 SMP Fri Mar 5 03:31:05 +05
                              2021 x86_64 x86_64
Alert Count                   1
First Seen                    2021-03-05 11:54:56 +05
Last Seen                     2021-03-05 11:54:56 +05
Local ID                      4acc47a9-db83-4d79-8e46-6291a65bec85

Raw Audit Messages
type=AVC msg=audit(1614927296.816:168): avc:  denied  { fowner } for  pid=1209 comm="accounts-daemon" capability=3  scontext=system_u:system_r:accountsd_t:s0 tcontext=system_u:system_r:accountsd_t:s0 tclass=capability permissive=1


Hash: accounts-daemon,accountsd_t,accountsd_t,capability,fowner

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

Additional info:
component:      selinux-policy
reporter:       libreport-2.14.0
hashmarkername: setroubleshoot
kernel:         5.12.0-0.rc1.20210304gitf69d02e37a85.163.fc35.x86_64
type:           libreport

Comment 1 Zdenek Pytela 2021-03-05 08:16:27 UTC
Mikhail,

Do you know when or how the avc is triggered? Do you happen to know which file was accessed? By default the other records are not audited.

Comment 2 Zdenek Pytela 2021-03-19 15:44:21 UTC
Mikhail,

There seems to be a problem with XFS and new kernels. Could you try an older kernel, preferably from 5.11 series?

Comment 3 Mikhail 2021-03-22 22:03:16 UTC
(In reply to Zdenek Pytela from comment #1)
> Mikhail,
> 
> Do you know when or how the avc is triggered? Do you happen to know which
> file was accessed? By default the other records are not audited.

All reported avc happens during boot.

Comment 4 Zdenek Pytela 2021-03-23 17:05:37 UTC

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

Comment 5 Red Hat Bugzilla 2023-09-15 01:02:50 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days


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