Bug 2187893 - Incorrect default SELinux labels
Summary: Incorrect default SELinux labels
Keywords:
Status: VERIFIED
Alias: None
Deadline: 2023-05-30
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: selinux-policy
Version: 9.2
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Nikola Knazekova
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-19 05:20 UTC by Marko Myllynen
Modified: 2023-08-17 08:30 UTC (History)
7 users (show)

Fixed In Version: selinux-policy-38.1.20-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2221573 (view as bug list)
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-157786 0 None None None 2023-05-21 18:58:54 UTC

Description Marko Myllynen 2023-04-19 05:20:54 UTC
Description of problem:
With firefox when starting the browser for the first time the configuration directory is created with correct SELinux labels:

$ rm -rf ~/.mozilla
$ firefox
$ restorecon -Rv ~/.mozilla
$

But with chromium the files get relabeled:

$ rm -rf ~/.cache/chromium ~/.config/chromium
$ chromium-browser
[7517:7517:0419/080842.293745:ERROR:chrome_browser_cloud_management_controller.cc(162)] Cloud management controller initialization aborted as CBCM is not enabled.
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0
[7555:7555:0419/080842.322254:ERROR:gpu_init.cc(525)] Passthrough is not supported, GL is egl, ANGLE is 
$ restorecon -Rv ~/.cache/chromium ~/.config/chromium | wc -l
283

It looks like chromium and selinux-policy are not fully in sync on which labels should be used. Thanks.

Version-Release number of selected component (if applicable):
chromium-112.0.5615.121-2.el9.x86_64
selinux-policy-targeted-34.1.43-1.el9_1.2.noarch

Comment 1 Zdenek Pytela 2023-05-11 17:25:28 UTC
I've submitted a PR to address the issue in Fedora:
https://github.com/fedora-selinux/selinux-policy/pull/1679

It will be a part of the next F38 and rawhide builds.

Comment 20 Milos Malik 2023-07-10 07:39:43 UTC
The same issue is reproducible on RHEL-8.9 and was filed as BZ#2221573.


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