linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] devpts: Fix type for uid and gid params
@ 2025-04-02 12:17 David Howells
  2025-04-03  8:15 ` Christian Brauner
  0 siblings, 1 reply; 2+ messages in thread
From: David Howells @ 2025-04-02 12:17 UTC (permalink / raw)
  To: Christian Brauner
  Cc: dhowells, Giuseppe Scrivano, Debarshi Ray, Eric Sandeen,
	linux-fsdevel, linux-kernel

    
Fix devpts to parse uid and gid params using the correct type so that they
get interpreted in the context of the user namespace.

Fixes: cc0876f817d6 ("vfs: Convert devpts to use the new mount API")
Reported-by: Debarshi Ray <dray@redhat.com>
Closes: https://github.com/containers/podman/issues/25751
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Eric Sandeen <sandeen@redhat.com>
cc: linux-fsdevel@vger.kernel.org
---
 fs/devpts/inode.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c
index 42e4d6eeb29f..9c20d78e41f6 100644
--- a/fs/devpts/inode.c
+++ b/fs/devpts/inode.c
@@ -89,12 +89,12 @@ enum {
 };
 
 static const struct fs_parameter_spec devpts_param_specs[] = {
-	fsparam_u32	("gid",		Opt_gid),
+	fsparam_gid	("gid",		Opt_gid),
 	fsparam_s32	("max",		Opt_max),
 	fsparam_u32oct	("mode",	Opt_mode),
 	fsparam_flag	("newinstance",	Opt_newinstance),
 	fsparam_u32oct	("ptmxmode",	Opt_ptmxmode),
-	fsparam_u32	("uid",		Opt_uid),
+	fsparam_uid	("uid",		Opt_uid),
 	{}
 };
 


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] devpts: Fix type for uid and gid params
  2025-04-02 12:17 [PATCH] devpts: Fix type for uid and gid params David Howells
@ 2025-04-03  8:15 ` Christian Brauner
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Brauner @ 2025-04-03  8:15 UTC (permalink / raw)
  To: David Howells
  Cc: Christian Brauner, Giuseppe Scrivano, Debarshi Ray, Eric Sandeen,
	linux-fsdevel, linux-kernel

On Wed, 02 Apr 2025 13:17:54 +0100, David Howells wrote:
> 
> Fix devpts to parse uid and gid params using the correct type so that they
> get interpreted in the context of the user namespace.
> 
> 

Applied to the vfs.fixes branch of the vfs/vfs.git tree.
Patches in the vfs.fixes branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.fixes

[1/1] devpts: Fix type for uid and gid params
      https://git.kernel.org/vfs/vfs/c/b478f56b7866

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-04-03  8:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-02 12:17 [PATCH] devpts: Fix type for uid and gid params David Howells
2025-04-03  8:15 ` Christian Brauner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).