-
Notifications
You must be signed in to change notification settings - Fork 40
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
new(pkg/runner/helper): added SpawnAsWithSymlink and modified SpawnAs to make a copy #198
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it, but I'd not change the func
signature.
So I suggest the following:
- copy the binary in
SpawnAs
by default without changing theSpawnAs
signature (also, no need to change the actions, it's basically just a stronger approach, but the end result is the same) - add a new
SpawnAsWithSymlink
func which is the weaker version of the method
wdyt?
f3a33e6
to
f8c59cc
Compare
We should be good now @leogr, mind to take a look? :) |
… binary This can be used to trigger rules that are based on proc.exepath rather than proc.name for better detection purposes. Signed-off-by: Lorenzo Susini <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: leogr, loresuso The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
LGTM label has been added. Git tree hash: d5d5a67388982394ddc7aeb0b96c09a57122a831
|
… to copy or symlink the binary
What type of PR is this?
/kind feature
Any specific area of the project related to this PR?
/area pkg
What this PR does / why we need it:
The change introduced by this PR can be used to trigger rules that are based on proc.exepath rather than proc.name for better detection purposes.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer: