Bug 2427550 - /sbin/setfiles: /var/lib/selinux/final/targeted/contexts/files/file_contexts.local: line 4 error due to: Non-ASCII characters found
Summary: /sbin/setfiles: /var/lib/selinux/final/targeted/contexts/files/file_contexts....
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libselinux
Version: 43
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Petr Lautrbach
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-01-07 07:45 UTC by 2079
Modified: 2026-09-12 00:18 UTC (History)
8 users (show)

Fixed In Version: libselinux-3.11-2.fc44
Clone Of:
Environment:
Last Closed: 2026-09-09 04:51:01 UTC
Type: ---
Embargoed:
plautrba: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FC-2930 0 None None None 2026-01-12 12:38:24 UTC

Description 2079 2026-01-07 07:45:44 UTC
When trying to set the SELinux context for a Samba share using the following command

sudo semanage fcontext --add --type "samba_share_t" "/home/user/Öffentlich(/.*)?"

I get the following error message

/sbin/setfiles: /var/lib/selinux/final/targeted/contexts/files/file_contexts.local:  line 4 error due to: Non-ASCII characters found
/sbin/setfiles: /var/lib/selinux/final/targeted/contexts/files/file_contexts.local:  line 4 error due to: Non-ASCII characters found
/var/lib/selinux/final/targeted/contexts/files/file_contexts: Invalid argument
libsemanage.semanage_validate_and_compile_fcontexts: setfiles returned error code 1.
OSError: Error

selinux-policy-42.19-1.fc43

Reproducible: Always

Steps to Reproduce:
1. Run sudo semanage fcontext --add --type "samba_share_t" "/home/user/Öffentlich(/.*)?"

Comment 2 2079 2026-05-28 09:54:17 UTC
Is there an estimate when the patch will be released?

Comment 3 Petr Lautrbach 2026-05-28 12:07:59 UTC
I got some feedback I need to address. But I could create a copr repository with testing build

Comment 4 2079 2026-08-22 08:22:45 UTC
I would really appreciate, if this issue could be resolved as soon as possible. I haven't been able to set up the Samba share for over half a year now. Do you know how long it will take until the patch is released?

Comment 6 Fedora Update System 2026-09-07 11:47:50 UTC
FEDORA-2026-5ce00d9ff6 (libselinux-3.11-5.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-5ce00d9ff6

Comment 7 Fedora Update System 2026-09-07 15:26:56 UTC
FEDORA-2026-a8b42c00cd (libselinux-3.11-2.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-a8b42c00cd

Comment 8 Fedora Update System 2026-09-08 01:37:29 UTC
FEDORA-2026-5ce00d9ff6 has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-5ce00d9ff6`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-5ce00d9ff6

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

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

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

Comment 10 Fedora Update System 2026-09-09 04:51:01 UTC
FEDORA-2026-a8b42c00cd (libselinux-3.11-2.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2026-09-12 00:18:42 UTC
FEDORA-2026-5ce00d9ff6 (libselinux-3.11-5.fc45) has been pushed to the Fedora 45 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.