Skip to content

Commit

Permalink
profiles: singularity: harden
Browse files Browse the repository at this point in the history
  • Loading branch information
kmk3 committed Sep 19, 2024
1 parent e562e97 commit b463983
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions etc/profile-a-l/singularity.profile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ include globals.local
noblacklist ${HOME}/.config/singularity
noblacklist ${HOME}/.local/share/singularity

# Allow /bin/sh (blacklisted by disable-shell.inc)
include allow-bin-sh.inc

# Allow python (blacklisted by disable-interpreters.inc)
include allow-python3.inc

Expand All @@ -18,6 +21,8 @@ include disable-exec.inc
include disable-interpreters.inc
include disable-proc.inc
include disable-programs.inc
include disable-shell.inc
include disable-xdg.inc

mkdir ${HOME}/.config/singularity
mkdir ${HOME}/.local/share/singularity
Expand All @@ -34,14 +39,28 @@ caps.drop all
net none
#no3d
nodvd
nogroups
noinput
nonewprivs
noprinters
noroot
#nosound
notpm
notv
nou2f
novideo
seccomp
seccomp.block-secondary
tracelog

disable-mnt
#private-bin dirname,git,python*,singularity,sh
private-cache
private-dev
private-etc @games,@x11
private-tmp

dbus-user none
dbus-system none

restrict-namespaces

0 comments on commit b463983

Please sign in to comment.