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

Add new check to detect links to scripts #1122

Merged
merged 1 commit into from
Oct 19, 2023
Merged

Add new check to detect links to scripts #1122

merged 1 commit into from
Oct 19, 2023

Conversation

danigm
Copy link
Member

@danigm danigm commented Oct 10, 2023

This new check looks for links in /usr/bin that points to some script in a non bin path that contains a shebang, and checks if the needed interpreter is included as a requirement, because in that case rpm won't be able to inject the requirement by itself.

Fix #1120

@danigm danigm force-pushed the link-to-shebang branch 3 times, most recently from def6ae6 to a870674 Compare October 16, 2023 10:23
This new check looks for links in /usr/bin that points to some script in
a non bin path that contains a shebang, and checks if the needed
interpreter is included as a requirement, because in that case rpm won't
be able to inject the requirement by itself.

Fix #1120
@danigm danigm merged commit 0d3cef7 into main Oct 19, 2023
13 checks passed
@danigm danigm deleted the link-to-shebang branch October 19, 2023 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warn if binary symlink is pointing to /usr/share/ and target is a script
1 participant