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

Only allow host-relative LDConfig paths #690

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

elezar
Copy link
Member

@elezar elezar commented Sep 11, 2024

This change only allows host-relative LDConfig paths (i.e. the nvidia-container-cli.ldconfig setting starts with an @)

An allow-ldconfig-from-container feature flag is added to allow for this
the default behaviour to be changed.

@elezar elezar self-assigned this Sep 11, 2024
@elezar elezar force-pushed the ignore-ldconfig-option branch 2 times, most recently from 24ede29 to 74d8d64 Compare September 11, 2024 15:02
internal/config/cli.go Outdated Show resolved Hide resolved
internal/config/config_test.go Outdated Show resolved Hide resolved
@elezar elezar changed the title Ignore ldconfig option Use host ldconfig binary by default Sep 16, 2024
Copy link
Contributor

@klueska klueska left a comment

Choose a reason for hiding this comment

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

  1. Let's continue to allow host-relative path to ldconfig even without the override
  2. Let's then change the override flag to be called allow-ldconfig-from-container

This change removes indirect calls to get the default config
from the nvidia-container-runtime-hook.

Signed-off-by: Evan Lezar <[email protected]>
This change only allows host-relative LDConfig paths.

An allow-ldconfig-from-container feature flag is added to allow for this
the default behaviour to be changed.

Signed-off-by: Evan Lezar <[email protected]>
@elezar elezar changed the title Use host ldconfig binary by default Only allow host-relative LDConfig paths Sep 18, 2024
@elezar elezar marked this pull request as draft September 18, 2024 20:12
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.

4 participants