diff options
author | Zbigniew Jędrzejewski-Szmek | 2013-02-14 03:05:48 +0100 |
---|---|---|
committer | Karel Zak | 2013-02-14 14:42:35 +0100 |
commit | 57580694269be36cc52138b0f82e72f09338e192 (patch) | |
tree | 1b4f0a31421327529afc83c9d2b16750f465fe49 /sys-utils/Makemodule.am | |
parent | libblkid: read whole buffer for iso_volume_descriptor (diff) | |
download | kernel-qcow2-util-linux-57580694269be36cc52138b0f82e72f09338e192.tar.gz kernel-qcow2-util-linux-57580694269be36cc52138b0f82e72f09338e192.tar.xz kernel-qcow2-util-linux-57580694269be36cc52138b0f82e72f09338e192.zip |
unshare,nsenter: spawn shell by default
The behaviour mimics chroot.
Possibly it would have been nicer to to query the password database in
the new namepace and run the shell of the user there, but it's hard to
do correctly. getpwuid() might need to load nss plugins, and the arch
in the new namespace might be different (in case of NEWNS mounts), or
the hostname might be different, etc. So in general it's not possible
to do it reliably.
Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Diffstat (limited to 'sys-utils/Makemodule.am')
-rw-r--r-- | sys-utils/Makemodule.am | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys-utils/Makemodule.am b/sys-utils/Makemodule.am index 86c529eae..c214b927e 100644 --- a/sys-utils/Makemodule.am +++ b/sys-utils/Makemodule.am @@ -287,6 +287,7 @@ if BUILD_UNSHARE usrbin_exec_PROGRAMS += unshare dist_man_MANS += sys-utils/unshare.1 unshare_SOURCES = sys-utils/unshare.c +unshare_LDADD = $(LDADD) libcommon.la endif if BUILD_NSENTER |