summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/apptainer/package.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/apptainer/package.py b/var/spack/repos/builtin/packages/apptainer/package.py
index a2f47d0d7c..3870c0177d 100644
--- a/var/spack/repos/builtin/packages/apptainer/package.py
+++ b/var/spack/repos/builtin/packages/apptainer/package.py
@@ -45,4 +45,8 @@ class Apptainer(SingularityBase):
# Override config options from SingularityBase
@property
def config_options(self):
- return []
+ spec = self.spec
+ options = []
+ if spec.satisfies("@1.1.0: +suid"):
+ options.append("--with-suid")
+ return options