Skip to content

Commit

Permalink
Merge pull request #98 from dls-controls/dev
Browse files Browse the repository at this point in the history
use internal tmpfs for /tmp to allow exec
  • Loading branch information
gilesknap authored Dec 13, 2023
2 parents 9f5b22b + 22dd429 commit d9e7230
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions c7
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,14 @@ volumes="
"

devices="-v /dev/ttyS0:/dev/ttyS0"
opts="${network} --hostname ${hostname} --security-opt=label=type:container_runtime_t"
opts="${network} --hostname ${hostname} --security-opt=label=disable"
# Get around the issue of /tmp being mounted noexec by creating our own tmpfs
opts="${opts} --mount type=tmpfs,destination=/tmp"

# the identity settings enable secondary groups in the container
if [[ ${rhel} == 8 ]] ; then
identity="${userns}
--annotation run.oci.keep_original_groups=1"
volumes="${volumes} -v /tmp:/tmp"
fi

# this runtime is also required for secondary groups
Expand Down

0 comments on commit d9e7230

Please sign in to comment.