rancher / rke2-selinux

RKE2 selinux + RPM packaging for selinux
Apache License 2.0
21 stars 21 forks source link

bugfix: Adjust Microos TLS policy regex #63

Closed dennislapchenko closed 9 months ago

dennislapchenko commented 11 months ago

Fixes #56

Error during build:

    hcloud.microos-arm-snapshot: Retrieving: rke2-selinux-0.17-1.sle.noarch (Plain RPM files cache) (1/1),  21.1 KiB
    hcloud.microos-arm-snapshot:
    hcloud.microos-arm-snapshot: Checking for file conflicts: [..done]
    hcloud.microos-arm-snapshot: (1/1) Installing: rke2-selinux-0.17-1.sle.noarch [..
    hcloud.microos-arm-snapshot: /sbin/setfiles: /var/lib/selinux/final/targeted/contexts/files/file_contexts:  line 1 has invalid regex +/var/lib/rancher/rke2/server/tls(/.*)?:  REGEX back-end error: At offset 1: quantifier does not follow a repeatable item
    hcloud.microos-arm-snapshot: /sbin/setfiles: /var/lib/selinux/final/targeted/contexts/files/file_contexts:  line 1 has invalid regex +/var/lib/rancher/rke2/server/tls(/.*)?:  REGEX back-end error: At offset 1: quantifier does not follow a repeatable item
    hcloud.microos-arm-snapshot: /var/lib/selinux/final/targeted/contexts/files/file_contexts: Invalid argument
    hcloud.microos-arm-snapshot: libsemanage.semanage_validate_and_compile_fcontexts: setfiles returned error code 1.
    hcloud.microos-arm-snapshot: semodule:  Failed!
johanneskastl commented 9 months ago

Any updates on this?