Skip to content

Disable chmod hook by default #1218

@elezar

Description

@elezar

The chmod createContainer hook was added as a workaround to a specific crun issue for device nodes that are found in subdirectories of /dev. Since this has since been addressed in crun, we should disable this hook by default to reduce the number of supported hooks.

This means that by default the:

  1. runtime will not add the chmod hook to the incomming OCI runtime spec.
  2. CDI spec generation will not generate a chmod hook in the CDI spec.

We should:

  1. Provide a feature flag that allows users to opt-in to hook injection.
  2. Provide a mechanism of enabling this hook in the nvcdi API
  3. Provide a command line option to the nvidia-ctk cdi generate command that enables the hook.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions