Thread (51 messages) 51 messages, 8 authors, 2020-03-02

Re: [PATCH v3 11/25] inode: inode_owner_or_capable(): handle fsid mappings

From: Christoph Hellwig <hch@infradead.org>
Date: 2020-02-18 22:25:56
Also in: linux-fsdevel, linux-security-module, lkml

On Tue, Feb 18, 2020 at 03:33:57PM +0100, Christian Brauner wrote:
+	if (is_userns_visible(inode->i_sb->s_iflags)) {
+		if (kuid_has_mapping(ns, inode->i_uid) && ns_capable(ns, CAP_FOWNER))
+			return true;
+	} else if (kfsuid_has_mapping(ns, inode->i_uid) && ns_capable(ns, CAP_FOWNER)) {
This adds some crazy long unreadable lines..
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help