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

WIP: replace wrapperd #9489

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

dsseng
Copy link
Member

@dsseng dsseng commented Oct 11, 2024

Fixes #9472

TODO:

  • tests
  • finalize

Signed-off-by: Dmitry Sharshakov <[email protected]>
@dsseng dsseng self-assigned this Oct 11, 2024
fmt.Sprintf("-uid=%d", p.opts.UID),
wrapper := commandWrapper{}

env := []string{fmt.Sprintf("PATH=%s", constants.PATH)}
Copy link
Member

Choose a reason for hiding this comment

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

Simple string + should do the trick here I think

wrapper := commandWrapper{}

env := []string{fmt.Sprintf("PATH=%s", constants.PATH)}
env = append(env, p.opts.Env...)
Copy link
Member

Choose a reason for hiding this comment

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

There is slices.Concat exactly for this case.


prop, err := krnl.ReadParam(&kernel.Param{Key: "proc.sys.kernel.kexec_load_disabled"})
if v := strings.TrimSpace(string(prop)); err == nil && v != "0" {
log.Printf("kernel.kexec_load_disabled is %v, skipping dropping capabilities", v)
Copy link
Member

Choose a reason for hiding this comment

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

%v should be %q or %s

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.

refactor: remove wrapperd in favor launcher
2 participants