nss_logname is an glibc NSS module which pretends there is a
/etc/passwd
entry for the current uid named $LOGNAME
.
This should be installed in containers spawned by the process spawner.
You need:
- a C++14 compliant compiler (e.g. gcc or clang)
- Meson 0.56 and Ninja
Get the source code:
git clone --recursive https://github.com/CM4all/nss_logname.git
Run meson
:
meson setup output
Compile and install:
ninja -C output ninja -C output install
After installing the build dependencies, run:
dpkg-buildpackage -rfakeroot -b -uc -us