mirror of
https://github.com/systemd/systemd.git
synced 2024-11-08 11:27:32 +03:00
c01ff965b4
Given a container "foo", that maps user id $UID to container user, using user namespaces, this NSS module extenstion will now map the $UID to a name "vu-foo-$TUID" for the translated UID $UID. Similar, userns groups are mapped to "vg-foo-$TGID" for translated GIDs of $GID. This simple change should make userns users more discoverable. Also, given that many tools like "adduser" check NSS before allocating a UID, should lower the chance of UID range conflicts between tools.
22 lines
630 B
Plaintext
22 lines
630 B
Plaintext
/***
|
|
This file is part of systemd.
|
|
|
|
systemd is free software; you can redistribute it and/or modify it
|
|
under the terms of the GNU Lesser General Public License as published by
|
|
the Free Software Foundation; either version 2.1 of the License, or
|
|
(at your option) any later version.
|
|
***/
|
|
|
|
{
|
|
global:
|
|
_nss_mymachines_gethostbyname_r;
|
|
_nss_mymachines_gethostbyname2_r;
|
|
_nss_mymachines_gethostbyname3_r;
|
|
_nss_mymachines_gethostbyname4_r;
|
|
_nss_mymachines_getpwnam_r;
|
|
_nss_mymachines_getpwuid_r;
|
|
_nss_mymachines_getgrnam_r;
|
|
_nss_mymachines_getgrgid_r;
|
|
local: *;
|
|
};
|