Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-152886

/sbin/setfiles: /var/lib/selinux/final/targeted/contexts/files/file_contexts.local: line 4 error due to: Non-ASCII characters found

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • None
    • None
    • rhel-security-selinux
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      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(/.*)?"

              rhn-engineering-plautrba Petr Lautrbach
              jira-bugzilla-migration RH Bugzilla Integration
              Vit Mojzis Vit Mojzis
              SSG Security QE SSG Security QE
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: