Skip to content

Commit fcb18b5

Browse files
Update runtime factory to pass the enable-chmod-hook feature flag to the hook creator
Signed-off-by: Carlos Eduardo Arango Gutierrez <[email protected]>
1 parent 8c92344 commit fcb18b5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/runtime/runtime_factory.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ func newSpecModifier(logger logger.Interface, cfg *config.Config, ociSpec oci.Sp
7575
return nil, err
7676
}
7777

78-
hookCreator := discover.NewHookCreator(discover.WithNVIDIACDIHookPath(cfg.NVIDIACTKConfig.Path))
78+
hookCreator := discover.NewHookCreator(
79+
discover.WithNVIDIACDIHookPath(cfg.NVIDIACTKConfig.Path),
80+
discover.WithEnableChmodHook(cfg.Features.EnableChmodHook.IsEnabled()),
81+
)
7982
var modifiers modifier.List
8083
for _, modifierType := range supportedModifierTypes(mode) {
8184
switch modifierType {

0 commit comments

Comments
 (0)