This bug originally misfiled: https://github.com/systemd/systemd/issues/27642 Used distribution Fedora 38 Linux kernel version used 6.2.9-300.fc38.x86_64 CPU architectures issue was seen on i686 Component No response Expected behaviour you didn't see No response Unexpected behaviour you saw Ran shellcheck on /usr/lib/systemd/system-generators/selinux-autorelabel-generator.sh on Fedora 38; got back a warning. Steps to reproduce the problem [liveuser@localhost-live selinux]$ shellcheck -S warning /usr/lib/systemd/system-generators/selinux-autorelabel-generator.sh In /usr/lib/systemd/system-generators/selinux-autorelabel-generator.sh line 22: source /etc/selinux/config ^------------------------^ SC3046 (warning): In POSIX sh, 'source' in place of '.' is undefined. For more information: https://www.shellcheck.net/wiki/SC3046 -- In POSIX sh, 'source' in place of... Reproducible: Always Steps to Reproduce: 1. dnf install -y ShellCheck 2. shellcheck -S warning /usr/lib/systemd/system-generators/selinux-autorelabel-generator.sh 3. rpm -qf /usr/lib/systemd/system-generators/selinux-autorelabel-generator.sh Actual Results: [liveuser@localhost-live selinux]$ shellcheck -S warning /usr/lib/systemd/system-generators/selinux-autorelabel-generator.sh In /usr/lib/systemd/system-generators/selinux-autorelabel-generator.sh line 22: source /etc/selinux/config ^------------------------^ SC3046 (warning): In POSIX sh, 'source' in place of '.' is undefined. For more information: https://www.shellcheck.net/wiki/SC3046 -- In POSIX sh, 'source' in place of... [liveuser@localhost-live selinux]$ shellcheck -S warning /usr/lib/systemd/system-generators/selinux-autorelabel-generator.sh^C [liveuser@localhost-live selinux]$ rpm -qf /usr/lib/systemd/system-generators/selinux-autorelabel-generator.sh policycoreutils-3.5-1.fc38.x86_64 Expected Results: No warnings.
Thanks! https://src.fedoraproject.org/rpms/policycoreutils/pull-request/37