mirror of
https://github.com/lucannez64/darling-lol.git
synced 2026-10-27 19:54:38 +00:00
feat(nix): add experimental rootless FHS package and desktop launcher
This commit is contained in:
1 parent
2cb353c785
commit
3c0b9cdfd3
28 files changed
+1686
-63
No files matched your search
@@ -0,0 +1,9 @@
|
||||
#!/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 "$@"
|
||||
Reference in new issue
Block a user