mirror of
https://github.com/lucannez64/darling-lol.git
synced 2026-10-26 19:47:42 +00:00
10 lines
506 B
Bash
10 lines
506 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
: "${DARLING_HOST_UID:?start this environment with darling-lol}"
|
|
: "${DARLING_HOST_GID:?start this environment with darling-lol}"
|
|
# Carry only namespace-scoped capabilities into the ordinary-user process.
|
|
# Darling's shim temporarily switches effective IDs; real IDs stay the user's.
|
|
exec setpriv --ruid "$DARLING_HOST_UID" --euid "$DARLING_HOST_UID" \
|
|
--rgid "$DARLING_HOST_GID" --egid "$DARLING_HOST_GID" --keep-groups \
|
|
--inh-caps +all --ambient-caps +all "$@"
|