Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selinux-autorelabel-generator.sh: SC3046 (warning): In POSIX sh, 'source' in place of '.' is undefined. #27642

Closed
wileyhy opened this issue May 15, 2023 · 4 comments

Comments

@wileyhy
Copy link

wileyhy commented May 15, 2023

systemd version the issue has been seen with

253

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

shellcheck -x /usr/lib/systemd/system-generators/selinux-autorelabel-generator.sh

Additional program output to the terminal or log subsystem illustrating the issue

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.
    ^------------------------^ SC3051 (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...
  https://www.shellcheck.net/wiki/SC3051 -- In POSIX sh, 'source' in place of...
@wileyhy wileyhy added the bug 🐛 Programming errors, that need preferential fixing label May 15, 2023
@yuwata
Copy link
Member

yuwata commented May 15, 2023

This is not provided by us.

@yuwata yuwata closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2023
@yuwata yuwata added not-our-bug misfiled and removed bug 🐛 Programming errors, that need preferential fixing labels May 15, 2023
@yuwata
Copy link
Member

yuwata commented May 15, 2023

$ rpm -q --whatprovides /usr/lib/systemd/system-generators/selinux-autorelabel-generator.sh
policycoreutils-3.5-1.fc37.x86_64

@wileyhy
Copy link
Author

wileyhy commented May 15, 2023

Copy that. Sorry for my mistake.

@wileyhy
Copy link
Author

wileyhy commented May 28, 2023

Reported on Red Hat bugzilla.
https://bugzilla.redhat.com/show_bug.cgi?id=2210593

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants