Skip to content

[pull] master from libfuse:master#55

Merged
pull[bot] merged 2 commits into
BY-SOMMER:masterfrom
libfuse:master
Jun 18, 2026
Merged

[pull] master from libfuse:master#55
pull[bot] merged 2 commits into
BY-SOMMER:masterfrom
libfuse:master

Conversation

@pull

@pull pull Bot commented Jun 18, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

With the old mount(2) syscall, the kernel's SELinux code
(selinux_sb_eat_lsm_opts) internally strips double quotes from context
option values like context="system_u:object_r:root_t:s0". However, with
the new fsconfig() API the value is passed through verbatim, causing
SELinux to reject the mount with ENODEV.

Strip enclosing double quotes from key=value option values in
apply_opt_key_value() before passing them to fsconfig().

Signed-off-by: Jingbo Xu <jingbo.xu@linux.alibaba.com>
The strtok_r(opts, ",", ...) based option splitter does not understand
double-quoted values.  SELinux MLS labels can contain commas inside
quotes (e.g., context="system_u:object_r:root_t:s0:c0,c1"), which
would be incorrectly split into separate tokens.

Replace strtok_r with a quote-aware next_mount_opt() helper that skips
commas inside double-quoted regions.

Signed-off-by: Jingbo Xu <jingbo.xu@linux.alibaba.com>
Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
@pull pull Bot locked and limited conversation to collaborators Jun 18, 2026
@pull pull Bot added the ⤵️ pull label Jun 18, 2026
@pull
pull Bot merged commit 9e22f4e into BY-SOMMER:master Jun 18, 2026
1 check failed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant