From: Mickaël Salaün Date: Wed, 21 Aug 2024 09:56:06 +0000 (+0200) Subject: security: Update file_set_fowner documentation X-Git-Tag: v6.12-rc1~198^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=19c9d55d72a9040cf9dc8de62633e6217381106b;p=thirdparty%2Flinux.git security: Update file_set_fowner documentation Highlight that the file_set_fowner hook is now called with a lock held. Cc: Al Viro Cc: Casey Schaufler Cc: Christian Brauner Cc: James Morris Cc: Jann Horn Cc: Ondrej Mosnacek Cc: Paul Moore Cc: Serge E. Hallyn Cc: Stephen Smalley Signed-off-by: Mickaël Salaün Signed-off-by: Paul Moore --- diff --git a/security/security.c b/security/security.c index 7272bbea05cb8..4564a0a1e4ef3 100644 --- a/security/security.c +++ b/security/security.c @@ -3048,6 +3048,8 @@ int security_file_fcntl(struct file *file, unsigned int cmd, unsigned long arg) * Save owner security information (typically from current->security) in * file->f_security for later use by the send_sigiotask hook. * + * This hook is called with file->f_owner.lock held. + * * Return: Returns 0 on success. */ void security_file_set_fowner(struct file *file)