<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/9p/acl.c, branch linux-3.10.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.10.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.10.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-06-07T22:46:47Z</updated>
<entry>
<title>posix_acl: Clear SGID bit when setting file permissions</title>
<updated>2017-06-07T22:46:47Z</updated>
<author>
<name>Jan Kara</name>
</author>
<published>2016-10-25T13:44:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dd2421b5edbadc5404e1cbc8fdc552f1558cc541'/>
<id>urn:sha1:dd2421b5edbadc5404e1cbc8fdc552f1558cc541</id>
<content type='text'>
commit 073931017b49d9458aa351605b43a7e34598caef upstream.

When file permissions are modified via chmod(2) and the user is not in
the owning group or capable of CAP_FSETID, the setgid bit is cleared in
inode_change_ok().  Setting a POSIX ACL via setxattr(2) sets the file
permissions as well as the new ACL, but doesn't clear the setgid bit in
a similar way; this allows to bypass the check in chmod(2).  Fix that.

Reviewed-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reviewed-by: Jeff Layton &lt;jlayton@redhat.com&gt;
Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
Signed-off-by: Andreas Gruenbacher &lt;agruenba@redhat.com&gt;
[wt: dropped hfsplus changes : no xattr in 3.10]
Signed-off-by: Willy Tarreau &lt;w@1wt.eu&gt;
</content>
</entry>
<entry>
<title>9p: switch v9fs_set_create_acl() to inode+fid, do it before d_instantiate()</title>
<updated>2013-02-26T07:46:07Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2013-01-31T18:45:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3592ac444017996f5a8ecf85856af0a8938e8fd1'/>
<id>urn:sha1:3592ac444017996f5a8ecf85856af0a8938e8fd1</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>9p: split dropping the acls from v9fs_set_create_acl()</title>
<updated>2013-02-26T07:46:06Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2013-01-31T18:31:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5fa6300ae0ccf76018775ea16bc3a061cadc39a6'/>
<id>urn:sha1:5fa6300ae0ccf76018775ea16bc3a061cadc39a6</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>9p: switch v9fs_acl_chmod() from dentry to inode+fid</title>
<updated>2013-02-26T07:46:06Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2013-01-31T17:58:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=be308f07964a597ea1806a0c02477a383b92f53a'/>
<id>urn:sha1:be308f07964a597ea1806a0c02477a383b92f53a</id>
<content type='text'>
caller has both, might as well pass them explicitly.

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>9p: switch v9fs_set_acl() from dentry to fid</title>
<updated>2013-02-26T07:46:06Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2013-01-31T17:54:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0f235caeaed6bbde6d455e172a83fa693ca485a1'/>
<id>urn:sha1:0f235caeaed6bbde6d455e172a83fa693ca485a1</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>9p: lift the call of set_cached_acl() into the callers of v9fs_set_acl()</title>
<updated>2013-02-26T07:46:05Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2013-01-31T17:46:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7f165aaa7dc898472f3b3fbf2231bb3b5623a3df'/>
<id>urn:sha1:7f165aaa7dc898472f3b3fbf2231bb3b5623a3df</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>userns: Pass a userns parameter into posix_acl_to_xattr and posix_acl_from_xattr</title>
<updated>2012-09-18T08:01:35Z</updated>
<author>
<name>Eric W. Biederman</name>
</author>
<published>2012-09-11T03:17:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5f3a4a28ec140a90e6058d1d09f6b1f235d485e5'/>
<id>urn:sha1:5f3a4a28ec140a90e6058d1d09f6b1f235d485e5</id>
<content type='text'>
 - Pass the user namespace the uid and gid values in the xattr are stored
   in into posix_acl_from_xattr.

 - Pass the user namespace kuid and kgid values should be converted into
   when storing uid and gid values in an xattr in posix_acl_to_xattr.

- Modify all callers of posix_acl_from_xattr and posix_acl_to_xattr to
  pass in &amp;init_user_ns.

In the short term this change is not strictly needed but it makes the
code clearer.  In the longer term this change is necessary to be able to
mount filesystems outside of the initial user namespace that natively
store posix acls in the linux xattr format.

Cc: Theodore Tso &lt;tytso@mit.edu&gt;
Cc: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Cc: Andreas Dilger &lt;adilger.kernel@dilger.ca&gt;
Cc: Jan Kara &lt;jack@suse.cz&gt;
Cc: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
</content>
</entry>
<entry>
<title>switch posix_acl_equiv_mode() to umode_t *</title>
<updated>2011-08-01T06:10:06Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2011-07-23T22:56:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d6952123b53cc8b334df69bba2cd0063b0d88f68'/>
<id>urn:sha1:d6952123b53cc8b334df69bba2cd0063b0d88f68</id>
<content type='text'>
... so that &amp;inode-&gt;i_mode could be passed to it

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>switch posix_acl_create() to umode_t *</title>
<updated>2011-08-01T06:09:42Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2011-07-23T22:37:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d3fb612076eebec6f67257db0c7a9666ac7e5892'/>
<id>urn:sha1:d3fb612076eebec6f67257db0c7a9666ac7e5892</id>
<content type='text'>
so we can pass &amp;inode-&gt;i_mode to it

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>p9: avoid unused variable warning</title>
<updated>2011-07-26T06:43:53Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2011-07-26T06:43:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e08dc1325feaf49eec392ee52feb2974ec3f5155'/>
<id>urn:sha1:e08dc1325feaf49eec392ee52feb2974ec3f5155</id>
<content type='text'>
Commit 4e34e719e457 ("fs: take the ACL checks to common code") removed
the use of the 'acl' variable in v9fs_iop_get_acl(), but left the
variable definition around.  Remove it to get rid of the warning:

  fs/9p/acl.c: In function ‘v9fs_iop_get_acl’:
  fs/9p/acl.c:101:20: warning: unused variable ‘acl’

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
</feed>
