From: ebiederm@xmission.com (Eric W. Biederman)
To: Karel Zak <kzak@redhat.com>
Cc: "Jörg Thalheim" <joerg@higgsboson.tk>, util-linux@vger.kernel.org
Subject: Re: [PATCH] nsenter: add support for pty
Date: Wed, 18 Mar 2015 10:59:16 -0500 [thread overview]
Message-ID: <87y4muguuj.fsf@x220.int.ebiederm.org> (raw)
In-Reply-To: <20150318111313.GC28925@ws.net.home> (Karel Zak's message of "Wed, 18 Mar 2015 12:13:13 +0100")
Karel Zak <kzak@redhat.com> writes:
> On Wed, Mar 18, 2015 at 10:53:19AM +0100, Jörg Thalheim wrote:
>> If mount namespaces are used, the issued command, will not have access to the
>> tty device attached to its stdin/stdout/stderr. This patch adds an option to
>> allocate a new pseudo tty in the entered mount namespace and bridge between the
>> origin standard file descriptors and the standard file descriptors of the
>> executed command.
>
> The original nsenter(1) purpose is to have command line interface to
> setns(2) syscall. Your patch is trying to push us to something more
> complex. Not sure if we really want it. Eric, any comment?
I certainly would not want it to be the default.
After seeing the ptsname() and gpg I see what is driving it.
However playing the pty games gets us smack dab in the middle of sending
and receiving trusted input. I don't know that I want nsenter to be on
the trusted path for entering in passwords for unlocking gpg keys.
If gpg is the driving use case I don't think it is wise to add pty
support. All of a sudden nsenter has to become robust from side channel
attacks when you are entering in passwords and I at least have no
interest in maintaining nsenter in that way.
Eric
prev parent reply other threads:[~2015-03-18 16:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-18 9:53 [PATCH] nsenter: add support for pty Jörg Thalheim
2015-03-18 11:13 ` Karel Zak
2015-03-18 13:40 ` Jörg Thalheim
2015-03-18 15:59 ` Eric W. Biederman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y4muguuj.fsf@x220.int.ebiederm.org \
--to=ebiederm@xmission.com \
--cc=joerg@higgsboson.tk \
--cc=kzak@redhat.com \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox