Rename the executable from slocker_lite to slocker-lite

Matches the project name and the slocker-lite-priv-drop helper's own
naming convention.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gv3s5jckJKzh6JkMoi2Akz
This commit is contained in:
2026-08-21 12:06:03 +00:00
parent e64f885c2e
commit 0b1698dc97
4 changed files with 12 additions and 12 deletions
+4 -4
View File
@@ -40,16 +40,16 @@ namespace {
// when dropping privileges to a --user/--group (see build_bwrap_args()).
constexpr const char* kPrivDropPath = "/.slocker-lite-priv-drop";
// Name of the statically-linked helper binary built alongside slocker_lite
// Name of the statically-linked helper binary built alongside slocker-lite
// (src/priv_drop_helper.cpp) -- it has to be a separate, dependency-free static
// binary rather than slocker_lite's own binary, since bind-mounting a dynamically
// binary rather than slocker-lite's own binary, since bind-mounting a dynamically
// linked executable into an arbitrary container image fails ("error while loading
// shared libraries") when that image's own /lib lacks slocker_lite's dependencies.
// shared libraries") when that image's own /lib lacks slocker-lite's dependencies.
constexpr const char* kPrivDropHelperName = "slocker-lite-priv-drop";
// Locates the priv-drop helper installed next to this process's own binary (found
// via /proc/self/exe), which holds whether run from buildDir/ or after a proper
// `meson install` -- both put slocker_lite and the helper in the same directory.
// `meson install` -- both put slocker-lite and the helper in the same directory.
std::optional<std::filesystem::path> find_priv_drop_helper() {
std::error_code ec;
auto self_path = std::filesystem::read_symlink("/proc/self/exe", ec);
+1 -1
View File
@@ -19,7 +19,7 @@
// regardless of what libc/libraries that image does or doesn't have. Deliberately
// avoids fmt/spdlog/anything else from the rest of this project -- a dynamically
// linked binary bind-mounted into a container fails with "error while loading
// shared libraries", since the container's own /lib won't have slocker_lite's
// shared libraries", since the container's own /lib won't have slocker-lite's
// dependencies.
//
// Usage: slocker-lite-priv-drop <uid>:<gid> -- <command> [args...]