Bug 2427550

Summary: /sbin/setfiles: /var/lib/selinux/final/targeted/contexts/files/file_contexts.local: line 4 error due to: Non-ASCII characters found
Product: [Fedora] Fedora Reporter: 2079
Component: libselinuxAssignee: Petr Lautrbach <plautrba>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 43CC: dwalsh, lvrabec, mmalik, omosnacek, pkoncity, plautrba, vmojzis, zpytela
Target Milestone: ---Keywords: SELinux
Target Release: ---Flags: plautrba: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: libselinux-3.11-2.fc44 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-09-09 04:51:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.