[systemd-devel] Odd /proc/$pid/fd symlinks in nspawn container

Lennart Poettering lennart at poettering.net
Mon Jul 27 12:37:38 PDT 2015


On Mon, 27.07.15 21:32, Ben Gamari (ben at smart-cactus.org) wrote:

> Lennart Poettering <lennart at poettering.net> writes:
> 
> > On Mon, 27.07.15 21:08, Ben Gamari (ben at smart-cactus.org) wrote:
> >
> >> Lennart Poettering <lennart at poettering.net> writes:
> >> 
> >> > On Mon, 27.07.15 20:29, Ben Gamari (ben at smart-cactus.org) wrote:
> >> >
> >> >> 
> >> >> Ahh, of course. This is a Debian sid machine, so systemd 221.
> >> >
> >> > That's pretty recent. Any chance you can strace this, checking where
> >> > this "/7" file comes from?
> >> >
> >> Sure.
> >> 
> >> This Gist [1] is the output from
> >
> > I think you forgot to add a footnote there...
> >
> Indeed I did. Thanks.

Hmm, this might just be confusion because the /dev/pts/8 device is
outside of the namespace of the container. The kernel cannot show the
path hence it shows "/8" instead, the path relative to the specific fs
of that file, which is the devpts instance of the host.

If you do "echo foo > /proc/self/fd/1", does that ger properly echoed
to your pty? If so, you can safely ignore this issue...

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list