Thread (74 messages) flat view 74 messages, 7 authors, 2021-03-15

Re: [PATCH v6 02/40] fs: add id translation helpers

From: Christoph Hellwig <hch@lst.de>
Date: 2021-03-15 08:41:35
Also in: linux-fsdevel, linux-xfs

+	struct user_namespace *s_user_ns = sb->s_user_ns;
+	if (!kuid_has_mapping(s_user_ns,
+		kuid_from_mnt(mnt_userns, current_fsuid())))
+		return false;
+	if (!kgid_has_mapping(s_user_ns,
+		kgid_from_mnt(mnt_userns, current_fsgid())))
+		return false;
+	return true;
Please don't use one tab indents for conditional continuations, as
that looks really weird.  Always use two tabs or align to the
opening brace.

Otherwise these helpers looks really useful.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help