<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/fs/pnode.h, branch v3.9</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v3.9</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v3.9'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2013-03-27T14:50:05Z</updated>
<entry>
<title>vfs: Carefully propogate mounts across user namespaces</title>
<updated>2013-03-27T14:50:05Z</updated>
<author>
<name>Eric W. Biederman</name>
<email>ebiederm@xmission.com</email>
</author>
<published>2013-03-22T11:08:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=132c94e31b8bca8ea921f9f96a57d684fa4ae0a9'/>
<id>urn:sha1:132c94e31b8bca8ea921f9f96a57d684fa4ae0a9</id>
<content type='text'>
As a matter of policy MNT_READONLY should not be changable if the
original mounter had more privileges than creator of the mount
namespace.

Add the flag CL_UNPRIVILEGED to note when we are copying a mount from
a mount namespace that requires more privileges to a mount namespace
that requires fewer privileges.

When the CL_UNPRIVILEGED flag is set cause clone_mnt to set MNT_NO_REMOUNT
if any of the mnt flags that should never be changed are set.

This protects both mount propagation and the initial creation of a less
privileged mount namespace.

Cc: stable@vger.kernel.org
Acked-by: Serge Hallyn &lt;serge.hallyn@canonical.com&gt;
Reported-by: Andy Lutomirski &lt;luto@amacapital.net&gt;
Signed-off-by: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
</content>
</entry>
<entry>
<title>vfs: Only support slave subtrees across different user namespaces</title>
<updated>2012-11-19T13:59:20Z</updated>
<author>
<name>Eric W. Biederman</name>
<email>ebiederm@xmission.com</email>
</author>
<published>2012-07-31T20:13:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=7a472ef4be8387bc05a42e16309b02c8ca943a40'/>
<id>urn:sha1:7a472ef4be8387bc05a42e16309b02c8ca943a40</id>
<content type='text'>
Sharing mount subtress with mount namespaces created by unprivileged
users allows unprivileged mounts created by unprivileged users to
propagate to mount namespaces controlled by privileged users.

Prevent nasty consequences by changing shared subtrees to slave
subtress when an unprivileged users creates a new mount namespace.

Acked-by: Serge Hallyn &lt;serge.hallyn@canonical.com&gt;
Signed-off-by: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
</content>
</entry>
<entry>
<title>vfs: switch pnode.h macros to struct mount *</title>
<updated>2012-01-04T03:57:11Z</updated>
<author>
<name>Al Viro</name>
<email>viro@zeniv.linux.org.uk</email>
</author>
<published>2011-11-25T06:05:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=fc7be130c7e91cf693d4bc2d9b11f08a5a4893d0'/>
<id>urn:sha1:fc7be130c7e91cf693d4bc2d9b11f08a5a4893d0</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>vfs: spread struct mount - remaining argument of mnt_set_mountpoint()</title>
<updated>2012-01-04T03:57:07Z</updated>
<author>
<name>Al Viro</name>
<email>viro@zeniv.linux.org.uk</email>
</author>
<published>2011-11-25T05:01:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=14cf1fa8f54353d9caf6174c1e4280c8c4dcfd7a'/>
<id>urn:sha1:14cf1fa8f54353d9caf6174c1e4280c8c4dcfd7a</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>vfs: spread struct mount - propagate_mnt()</title>
<updated>2012-01-04T03:57:07Z</updated>
<author>
<name>Al Viro</name>
<email>viro@zeniv.linux.org.uk</email>
</author>
<published>2011-11-25T04:59:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a8d56d8e4fa0cb9a023834363f8d79415d277a1d'/>
<id>urn:sha1:a8d56d8e4fa0cb9a023834363f8d79415d277a1d</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>vfs: spread struct mount - get_dominating_id / do_make_slave</title>
<updated>2012-01-04T03:57:06Z</updated>
<author>
<name>Al Viro</name>
<email>viro@zeniv.linux.org.uk</email>
</author>
<published>2011-11-25T04:35:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6fc7871fed915914ef441efbe0f9a7c3d0f3bff1'/>
<id>urn:sha1:6fc7871fed915914ef441efbe0f9a7c3d0f3bff1</id>
<content type='text'>
next pile of horrors, similar to mnt_parent one; this time it's
mnt_master.

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>vfs: spread struct mount - work with counters</title>
<updated>2012-01-04T03:57:05Z</updated>
<author>
<name>Al Viro</name>
<email>viro@zeniv.linux.org.uk</email>
</author>
<published>2011-11-25T03:37:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=83adc7532229f1909cf37c429780f02f06fe05ee'/>
<id>urn:sha1:83adc7532229f1909cf37c429780f02f06fe05ee</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>vfs: spread struct mount - is_path_reachable</title>
<updated>2012-01-04T03:57:04Z</updated>
<author>
<name>Al Viro</name>
<email>viro@zeniv.linux.org.uk</email>
</author>
<published>2011-11-25T03:00:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=643822b41e5e0f133438883b0be574cdaf168a2a'/>
<id>urn:sha1:643822b41e5e0f133438883b0be574cdaf168a2a</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>vfs: spread struct mount - do_umount/propagate_mount_busy</title>
<updated>2012-01-04T03:57:03Z</updated>
<author>
<name>Al Viro</name>
<email>viro@zeniv.linux.org.uk</email>
</author>
<published>2011-11-25T02:35:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=1ab597386205f8dc757cf8750465502aeae65154'/>
<id>urn:sha1:1ab597386205f8dc757cf8750465502aeae65154</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>vfs: spread struct mount mnt_set_mountpoint child argument</title>
<updated>2012-01-04T03:57:03Z</updated>
<author>
<name>Al Viro</name>
<email>viro@zeniv.linux.org.uk</email>
</author>
<published>2011-11-25T02:28:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=44d964d609c7c11b330a3d1caf30767fa13c7be3'/>
<id>urn:sha1:44d964d609c7c11b330a3d1caf30767fa13c7be3</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
</feed>
