<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/util-linux.git/sys-utils/nsenter.c, branch baserock/morph</title>
<subtitle>git.kernel.org: pub/scm/utils/util-linux/util-linux.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/'/>
<entry>
<title>nsenter: fix set{gid,uid} order,drop supplementary groups</title>
<updated>2014-04-23T08:54:31+00:00</updated>
<author>
<name>Karel Zak</name>
<email>kzak@redhat.com</email>
</author>
<published>2014-02-06T13:14:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=5ab908b41b12c83af18e1e349d4ef2f38a4435b8'/>
<id>5ab908b41b12c83af18e1e349d4ef2f38a4435b8</id>
<content type='text'>
.. always, always setgid() before setuid()!

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1061751
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
.. always, always setgid() before setuid()!

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1061751
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nsenter: unshare: use LC_ALL</title>
<updated>2013-10-18T09:38:02+00:00</updated>
<author>
<name>Karel Zak</name>
<email>kzak@redhat.com</email>
</author>
<published>2013-10-18T08:19:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=999ac5e2ab57c9f79237cec620bbb00d5db9f335'/>
<id>999ac5e2ab57c9f79237cec620bbb00d5db9f335</id>
<content type='text'>
Reported-by: Trần Ngọc Quân &lt;vnwildman@gmail.com&gt;
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reported-by: Trần Ngọc Quân &lt;vnwildman@gmail.com&gt;
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nsenter: Allow selecting the uid and gid to be used in the entered userns</title>
<updated>2013-06-18T08:35:44+00:00</updated>
<author>
<name>Richard Weinberger</name>
<email>richard@nod.at</email>
</author>
<published>2013-06-18T08:35:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=6b9e5bf670c70690d44b8ce4055e1997fb0b6496'/>
<id>6b9e5bf670c70690d44b8ce4055e1997fb0b6496</id>
<content type='text'>
Using -S (--setuid) and -G (--setgid) one can select the uid/gid which
will be used in the entered user namespace.

[kzak@redhat.com: - use setuid/gid unconditionally (always),
                  - update man page]

Acked-by: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Using -S (--setuid) and -G (--setgid) one can select the uid/gid which
will be used in the entered user namespace.

[kzak@redhat.com: - use setuid/gid unconditionally (always),
                  - update man page]

Acked-by: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>unshare,nsenter: spawn shell by default</title>
<updated>2013-02-14T13:42:35+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2013-02-14T02:05:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=57580694269be36cc52138b0f82e72f09338e192'/>
<id>57580694269be36cc52138b0f82e72f09338e192</id>
<content type='text'>
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 &lt;zbyszek@in.waw.pl&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;zbyszek@in.waw.pl&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>translation: unify exec error messages</title>
<updated>2013-02-06T10:51:17+00:00</updated>
<author>
<name>Sami Kerola</name>
<email>kerolasa@iki.fi</email>
</author>
<published>2013-01-30T20:33:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=07ff972eb684cfc88ca1931123fc255927393118'/>
<id>07ff972eb684cfc88ca1931123fc255927393118</id>
<content type='text'>
Signed-off-by: Sami Kerola &lt;kerolasa@iki.fi&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Sami Kerola &lt;kerolasa@iki.fi&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nsenter: make usage() translator friendly</title>
<updated>2013-01-25T15:40:04+00:00</updated>
<author>
<name>Sami Kerola</name>
<email>kerolasa@iki.fi</email>
</author>
<published>2013-01-22T23:27:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=26f879edf53503db81739d7b27720e57fabedf18'/>
<id>26f879edf53503db81739d7b27720e57fabedf18</id>
<content type='text'>
Signed-off-by: Sami Kerola &lt;kerolasa@iki.fi&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Sami Kerola &lt;kerolasa@iki.fi&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nsenter: respect --exec no matter where it appears</title>
<updated>2013-01-25T15:32:01+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2013-01-25T15:32:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=57dbcf94d8178009ce1f6ebf7b5bbddfe3d26ac8'/>
<id>57dbcf94d8178009ce1f6ebf7b5bbddfe3d26ac8</id>
<content type='text'>
Signed-off-by: Zbigniew Jędrzejewski-Szmek &lt;zbyszek@in.waw.pl&gt;
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Zbigniew Jędrzejewski-Szmek &lt;zbyszek@in.waw.pl&gt;
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nsenter: fix indentation</title>
<updated>2013-01-25T14:42:11+00:00</updated>
<author>
<name>Sami Kerola</name>
<email>kerolasa@iki.fi</email>
</author>
<published>2013-01-20T18:04:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=a167328a7421a23ca0f3d249225f9851d111fc3e'/>
<id>a167328a7421a23ca0f3d249225f9851d111fc3e</id>
<content type='text'>
Signed-off-by: Sami Kerola &lt;kerolasa@iki.fi&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Sami Kerola &lt;kerolasa@iki.fi&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nsenter: drop core when impossible happens</title>
<updated>2013-01-25T14:41:00+00:00</updated>
<author>
<name>Sami Kerola</name>
<email>kerolasa@iki.fi</email>
</author>
<published>2013-01-20T18:04:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=dfd8b1171be7d9458a18e88e7f925a0da0523135'/>
<id>dfd8b1171be7d9458a18e88e7f925a0da0523135</id>
<content type='text'>
Message to user is less informative, but impossible events should be
rare so core files are much appriciated for these cases.

Signed-off-by: Sami Kerola &lt;kerolasa@iki.fi&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Message to user is less informative, but impossible events should be
rare so core files are much appriciated for these cases.

Signed-off-by: Sami Kerola &lt;kerolasa@iki.fi&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nsenter: fix compiler warning</title>
<updated>2013-01-25T14:38:36+00:00</updated>
<author>
<name>Sami Kerola</name>
<email>kerolasa@iki.fi</email>
</author>
<published>2013-01-20T18:04:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=9905912fa74c037b4da9e277ab08afbafe6fb470'/>
<id>9905912fa74c037b4da9e277ab08afbafe6fb470</id>
<content type='text'>
nsenter.c:53:2: warning: ISO C forbids empty initializer braces [-pedantic]

[kzak@redhat.com: - use initialize .fd to -1]

Signed-off-by: Sami Kerola &lt;kerolasa@iki.fi&gt;
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
nsenter.c:53:2: warning: ISO C forbids empty initializer braces [-pedantic]

[kzak@redhat.com: - use initialize .fd to -1]

Signed-off-by: Sami Kerola &lt;kerolasa@iki.fi&gt;
Signed-off-by: Karel Zak &lt;kzak@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
