<div dir="ltr"><div class="gmail_default" style="font-size:small">I noticed that lxc-attach does not run<br></div><div class="gmail_default" style="font-size:small">source /etc/profile<br></div><div class="gmail_default" style="font-size:small">and that is an issue since we set many environment variables and settings that are needed for what comes next.<br></div><div class="gmail_default" style="font-size:small">Is there a workaround?<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 13, 2016 at 4:49 PM, Serge Hallyn <span dir="ltr"><<a href="mailto:serge.hallyn@ubuntu.com" target="_blank">serge.hallyn@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Quoting Carlos Alberto Lopez Perez (<a href="mailto:clopez@igalia.com">clopez@igalia.com</a>):<br>
</span><span class="">> On 11/01/16 23:36, Serge Hallyn wrote:<br>
> > The lxc-attach weakness I mentioned does not apply to 'lxc exec', because<br>
> > lxd interposes a pty between your console and the container's.<br>
><br>
> I understand that I could do the same (get a fresh PTY before attaching) with<br>
> (for example): "screen lxc-attach ..." [1]<br>
><br>
> Do you think it will be a good idea to patch lxc-attach to automatically do<br>
> that (get a fresh PTY before attaching) ?<br>
<br>
</span>Yes, I'd really like someone to do that.  It's on my list,<br>
but that list is pretty long.<br>
<span class=""><br>
> Will this solve all know security issues regarding the usage of lxc-attach ?<br>
<br>
</span>I think so.<br>
<span class="im HOEnZb"><br>
> Or there is something more than I'm missing other than the PTY vulnerability?<br>
><br>
><br>
> Regards.<br>
><br>
> [1] <a href="https://service.ait.ac.at/security/2015/LxcSecurityAnalysis.html" rel="noreferrer" target="_blank">https://service.ait.ac.at/security/2015/LxcSecurityAnalysis.html</a><br>
><br>
<br>
<br>
<br>
</span><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> lxc-users mailing list<br>
> <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
<br>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></div></div></blockquote></div><br></div>