Skip to content

Commit 19c9d55

Browse files
l0kodpcmoore
authored andcommitted
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]>
1 parent 26f2043 commit 19c9d55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

security/security.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3048,6 +3048,8 @@ int security_file_fcntl(struct file *file, unsigned int cmd, unsigned long arg)
30483048
* Save owner security information (typically from current->security) in
30493049
* file->f_security for later use by the send_sigiotask hook.
30503050
*
3051+
* This hook is called with file->f_owner.lock held.
3052+
*
30513053
* Return: Returns 0 on success.
30523054
*/
30533055
void security_file_set_fowner(struct file *file)

0 commit comments

Comments
 (0)