Skip to content

Cross-Platform .rsp File Support#1016

Merged
marekaldorf merged 5 commits intomainfrom
users/lukaskohl/rsp-linux
Mar 13, 2025
Merged

Cross-Platform .rsp File Support#1016
marekaldorf merged 5 commits intomainfrom
users/lukaskohl/rsp-linux

Conversation

@lukaskohl-msft
Copy link
Copy Markdown
Contributor

Unwrapping/expanding .rsp files used to be supported on Windows only due to FFI calling to shell32.dll. This PR removes FFI in favor of a code native solution.

the sarif-sdk submodule contains a reimplementation of CommandLineToArgvW. Rather than updating sarif-sdk, we've moved the relevant code into the BinSkim codebase, and pointed to the reimplementation instead to slightly lessen our reliance on sarif-sdk, while simultaneously increasing our supported platforms.

Alongside this change, tests were ported and altered over into the BinSkim codebase.

@lukaskohl-msft lukaskohl-msft requested a review from a team as a code owner October 10, 2024 09:23
@martin-reznik
Copy link
Copy Markdown
Collaborator

martin-reznik commented Oct 10, 2024 via email

Copy link
Copy Markdown
Member

@mkacmar mkacmar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've left a few comments / questions.

@lukaskohl-msft lukaskohl-msft force-pushed the users/lukaskohl/rsp-linux branch from a22509c to 54b8982 Compare October 17, 2024 14:13
@marekaldorf marekaldorf self-requested a review October 23, 2024 09:22
Copy link
Copy Markdown
Contributor

@marekaldorf marekaldorf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be working on my end, Good Job! We should proceed once it got merged with E2E testing with Guardian on Linux.

@lukaskohl-msft lukaskohl-msft force-pushed the users/lukaskohl/rsp-linux branch 2 times, most recently from a4d66a2 to 1bbafaf Compare October 30, 2024 15:11
@mkacmar
Copy link
Copy Markdown
Member

mkacmar commented Oct 30, 2024

Can you please rebase @lukaskohl-msft so that CodeQL passes before merge?

@shoobu
Copy link
Copy Markdown

shoobu commented Feb 18, 2025

Hi @lukaskohl-msft, @mkacmar, @martin-reznik,

Just trying to understand, is there anything blocking this from being deployed?

-Shubha

Lukas Kohl added 5 commits March 13, 2025 11:24
Makes support for .rsp files cross-platform
Example of an .rsp file:
"/example/to/binary/example.exe" # Binary
# ---- Libraries ----
"/example/to/libraries/library1.dll"
"/example/to/libraries/library2.dll"

would result in:
"/example/to/binary/example.exe"
"/example/to/libraries/library1.dll"
"/example/to/libraries/library2.dll"
@lukaskohl-msft lukaskohl-msft force-pushed the users/lukaskohl/rsp-linux branch from b39e16a to bafdbd3 Compare March 13, 2025 10:25
@marekaldorf marekaldorf enabled auto-merge (squash) March 13, 2025 10:26
@marekaldorf marekaldorf merged commit 5283aa9 into main Mar 13, 2025
6 checks passed
@marekaldorf marekaldorf deleted the users/lukaskohl/rsp-linux branch March 13, 2025 10:32
@marekaldorf marekaldorf mentioned this pull request Mar 14, 2025
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.

5 participants