Skip to content

Commit

Permalink
AppArmor profile for singularity
Browse files Browse the repository at this point in the history
  • Loading branch information
jgainerdewar committed Jan 17, 2025
1 parent 9a8aeec commit 4c70163
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/ci/bin/test_slurm.inc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,19 @@ cromwell::build::slurm::setup_slurm_environment() {
sudo mkdir -p /var/spool/slurmd
sudo chown slurm:slurm /var/spool/slurmd

# Set up an AppArmor profile for singularity to allow non-root users to use it.
# This became required in Ubuntu 24.04
sudo tee /etc/apparmor.d/singularity << 'EOF'
abi <abi/4.0>,
include <tunables/global>
profile singularity /usr/bin/singularity{,-suid} flags=(unconfined) {
userns,
}
EOF

sudo systemctl reload apparmor

# A mash of configure-until-it-runs. Feel free to PR suggestions/fixes.
# https://slurm.schedmd.com/tutorials.html
# https://slurm.schedmd.com/configurator.html
Expand Down

0 comments on commit 4c70163

Please sign in to comment.