diff options
author | Mickaël Salaün <[email protected]> | 2024-08-21 11:56:06 +0200 |
---|---|---|
committer | Paul Moore <[email protected]> | 2024-09-09 12:30:51 -0400 |
commit | 19c9d55d72a9040cf9dc8de62633e6217381106b (patch) | |
tree | 882ee4e255b6252b3324206fa325f557974bab3b | |
parent | 26f204380a3c182e5adf1a798db0724d6111b597 (diff) |
security: Update file_set_fowner documentation
Highlight that the file_set_fowner hook is now called with a lock held.
Cc: Al Viro <[email protected]>
Cc: Casey Schaufler <[email protected]>
Cc: Christian Brauner <[email protected]>
Cc: James Morris <[email protected]>
Cc: Jann Horn <[email protected]>
Cc: Ondrej Mosnacek <[email protected]>
Cc: Paul Moore <[email protected]>
Cc: Serge E. Hallyn <[email protected]>
Cc: Stephen Smalley <[email protected]>
Signed-off-by: Mickaël Salaün <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
-rw-r--r-- | security/security.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/security.c b/security/security.c index 7272bbea05cb..4564a0a1e4ef 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) |