forked from apptainer/singularity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ singularity-*.tar.gz | |
*.m4 | ||
*.pyc | ||
*.swp | ||
singularity | ||
generate_docs | ||
|
||
.vscode | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) 2018, Sylabs Inc. All rights reserved. | ||
// This software is licensed under a 3-clause BSD license. Please consult the | ||
// LICENSE file distributed with the sources of this project regarding your | ||
// rights to use or distribute this software. | ||
|
||
package singularity | ||
|
||
import ( | ||
"fmt" | ||
) | ||
|
||
// PrepareConfig checks and prepares the runtime engine config | ||
func (engine *EngineOperations) PrepareConfig() error { | ||
if engine.CommonConfig.EngineName != Name { | ||
return fmt.Errorf("incorrect engine") | ||
} | ||
|
||
engine.CommonConfig.OciConfig.SetProcessNoNewPrivileges(true) | ||
return nil | ||
} |