Skip to content

selinux: Add XDG Downloads mount-on support for dockerd - #408

Merged
Ricardo Salveti (ricardosalveti) merged 1 commit into
qualcomm-linux:mainfrom
kemalrasimsh:main
Aug 5, 2026
Merged

selinux: Add XDG Downloads mount-on support for dockerd#408
Ricardo Salveti (ricardosalveti) merged 1 commit into
qualcomm-linux:mainfrom
kemalrasimsh:main

Conversation

@kemalrasimsh

@kemalrasimsh kemalrasimsh commented Aug 3, 2026

Copy link
Copy Markdown

Add two refpolicy backport patches required to support mounting on user XDG Downloads directories.

  • Add xdg_mounton_downloads() interface to grant mounton access on xdg_downloads_t directories.
  • Add dockerd_mounton_xdg_downloads tunable to optionally allow dockerd_t to mount filesystems on XDG Downloads directories.
  • Keep the tunable disabled by default.

This enables policy-controlled support for container workloads that need bind mounts or filesystem mounts under a user's Downloads directory.

This change was implemented following the guidance and conclusions from the upstream discussion in Issue #1182 regarding SELinux labeling and Docker access to specific $HOME subdirectories.

Add two refpolicy backport patches required to support mounting on
user XDG Downloads directories.

* Add xdg_mounton_downloads() interface to grant mounton access on
  xdg_downloads_t directories.
* Add dockerd_mounton_xdg_downloads tunable to optionally allow
  dockerd_t to mount filesystems on XDG Downloads directories.
* Keep the tunable disabled by default.

This enables policy-controlled support for container workloads that
need bind mounts or filesystem mounts under a user's Downloads
directory.

Signed-off-by: Kemal Rasim Sh <kshakir@qti.qualcomm.com>
@lumag

Copy link
Copy Markdown
Contributor

Please, also include a Wrynose backport for this PR.

Doesn't belong to the PR description. It doesn't need to be landed in Git history

@ricardosalveti
Ricardo Salveti (ricardosalveti) merged commit 60146c5 into qualcomm-linux:main Aug 5, 2026
411 of 418 checks passed
@quic-yocto-ci

Copy link
Copy Markdown

Successfully created backport PR for wrynose:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants