]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ksmbd: run set info with opener credentials
authorNamjae Jeon <linkinjeon@kernel.org>
Sat, 13 Jun 2026 13:00:01 +0000 (22:00 +0900)
committerSteve French <stfrench@microsoft.com>
Tue, 16 Jun 2026 23:57:22 +0000 (18:57 -0500)
commitb383bcad3d2fe634b26efbce53e22bbb5753a520
treef715776d526f3fe612ab1e5abd6bd70d27cd582a
parent52e2f21911158ec961cd5aae19c56460db382af0
ksmbd: run set info with opener credentials

SMB2 SET_INFO handlers call path-based VFS helpers after checking the
access mask granted to the SMB handle. Those helpers perform their owner,
inode permission and LSM checks using the current ksmbd worker credentials.

Run the complete SET_INFO dispatch with the credentials captured when the
handle was opened. This also removes the separate security information
credential setup and keeps all SET_INFO classes under one credential scope.

Direct override_creds() is used because it can nest with the request
credential overrides already used by rename and link helpers.

Cc: stable@vger.kernel.org
Reported-by: Musaab Khan <musaab.khan@protonmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/smb2pdu.c