Thread (5 messages) 5 messages, 2 authors, 2025-08-06

Re: [PATCH 2/2] vfs: output mount_too_revealing() errors to fscontext

From: Al Viro <viro@zeniv.linux.org.uk>
Date: 2025-08-06 05:41:20
Also in: linux-fsdevel, lkml

On Wed, Aug 06, 2025 at 02:48:30PM +1000, Aleksa Sarai wrote:
 	error = security_sb_kern_mount(sb);
-	if (!error && mount_too_revealing(sb, &mnt_flags))
+	if (!error && mount_too_revealing(sb, &mnt_flags)) {
 		error = -EPERM;
+		errorfcp(fc, "VFS", "Mount too revealing");
+	}
Hmm...  For aesthetics sake, I'd probably do logging first; otherwise
fine by me.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help