Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use snap_daemon instead of _daemon_ #45

Merged
merged 1 commit into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions overlays/sbin/slurmrestd.wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ fi
# Export invalid Slurm JWT token to activate JWT authentication in slurmrestd.
# See for more details: https://slurm.schedmd.com/rest.html#jwt
export SLURM_JWT=
# Drop to _daemon_ because slurmrestd cannot run as either root or SlurmUser.
"${SNAP}"/usr/bin/setpriv --clear-groups --reuid _daemon_ --regid _daemon_ -- \
# Drop to snap_daemon because slurmrestd cannot run as either root or SlurmUser.
"${SNAP}"/usr/bin/setpriv --clear-groups --reuid snap_daemon --regid snap_daemon -- \
"${SNAP}"/sbin/slurmrestd \
-f "${SNAP_COMMON}/etc/slurm/slurm.conf" \
--max-connections "${SLURMRESTD_MAX_CONNECTIONS}" \
Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ environment:
PATH: $SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$SNAP/usr/local/bin:$SNAP/usr/local/sbin:$PATH

system-usernames:
_daemon_: shared
snap_daemon: shared

apps:
logrotate:
Expand Down