Bug 2347520 - SELinux is preventing blueman-mechani from using the 'kill' capabilities.
Summary: SELinux is preventing blueman-mechani from using the 'kill' capabilities.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 41
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:f3f7190f118111f058c862a4d24...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-25 14:50 UTC by Chipeng Li
Modified: 2025-04-13 01:39 UTC (History)
8 users (show)

Fixed In Version: selinux-policy-41.36-1.fc41
Clone Of:
Environment:
Last Closed: 2025-04-13 01:39:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.88 KB, text/plain)
2025-02-25 14:50 UTC, Chipeng Li
no flags Details
File: os_info (754 bytes, text/plain)
2025-02-25 14:50 UTC, Chipeng Li
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 2592 0 None open Allow blueman the kill capability 2025-03-10 15:43:01 UTC

Description Chipeng Li 2025-02-25 14:50:22 UTC
Description of problem:
This bug appeared when I Disconnect a serial port from a bluetooth device using blueman
SELinux is preventing blueman-mechani from using the 'kill' capabilities.

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

If you believe that blueman-mechani should have the kill 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 'blueman-mechani' --raw | audit2allow -M my-bluemanmechani
# semodule -X 300 -i my-bluemanmechani.pp

Additional Information:
Source Context                system_u:system_r:blueman_t:s0
Target Context                system_u:system_r:blueman_t:s0
Target Objects                Unknown [ capability ]
Source                        blueman-mechani
Source Path                   blueman-mechani
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-41.33-1.fc41.noarch
Local Policy RPM              selinux-policy-targeted-41.33-1.fc41.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.12.15-200.fc41.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Tue Feb 18 15:24:05 UTC 2025
                              x86_64
Alert Count                   2
First Seen                    2025-02-25 22:45:47 CST
Last Seen                     2025-02-25 22:47:08 CST
Local ID                      10e74088-6ae1-4118-853b-df400d9d7c5b

Raw Audit Messages
type=AVC msg=audit(1740494828.656:1174): avc:  denied  { kill } for  pid=53900 comm="blueman-mechani" capability=5  scontext=system_u:system_r:blueman_t:s0 tcontext=system_u:system_r:blueman_t:s0 tclass=capability permissive=0


Hash: blueman-mechani,blueman_t,blueman_t,capability,kill

Version-Release number of selected component:
selinux-policy-targeted-41.33-1.fc41.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing blueman-mechani from using the 'kill' capabilities.
package:        selinux-policy-targeted-41.33-1.fc41.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.12.15-200.fc41.x86_64
comment:        This bug appeared when I Disconnect a serial port from a bluetooth device using blueman
component:      selinux-policy

Comment 1 Chipeng Li 2025-02-25 14:50:25 UTC
Created attachment 2077801 [details]
File: description

Comment 2 Chipeng Li 2025-02-25 14:50:27 UTC
Created attachment 2077802 [details]
File: os_info

Comment 3 Fedora Update System 2025-03-31 13:57:59 UTC
FEDORA-2025-73a887d073 (selinux-policy-41.35-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-73a887d073

Comment 4 Fedora Update System 2025-04-01 03:11:20 UTC
FEDORA-2025-73a887d073 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-73a887d073`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-73a887d073

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2025-04-09 01:25:44 UTC
FEDORA-2025-c6d8815d3a has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-c6d8815d3a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-c6d8815d3a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2025-04-13 01:39:55 UTC
FEDORA-2025-c6d8815d3a (selinux-policy-41.36-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


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