diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-04 19:46:55 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-04 19:46:55 +0200 |
commit | 53d0ca2ad8ad8ee1094da9ec1152e6b1cf7fb321 (patch) | |
tree | fbce344c52ebe1e9cbbb42a54004b9f5000861eb /Kernel/FileSystem/Inode.h | |
parent | 040ba77d44517335282cc41b0b5ddfe281289cfd (diff) | |
download | serenity-53d0ca2ad8ad8ee1094da9ec1152e6b1cf7fb321.zip |
Kernel: Strip SUID+SGID bits from file when written to or chowned
Fixes #1624.
Diffstat (limited to 'Kernel/FileSystem/Inode.h')
-rw-r--r-- | Kernel/FileSystem/Inode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/FileSystem/Inode.h b/Kernel/FileSystem/Inode.h index 0a0884a37d..d19637a6b0 100644 --- a/Kernel/FileSystem/Inode.h +++ b/Kernel/FileSystem/Inode.h @@ -119,6 +119,7 @@ protected: void set_metadata_dirty(bool); void inode_contents_changed(off_t, ssize_t, const u8*); void inode_size_changed(size_t old_size, size_t new_size); + KResult prepare_to_write_data(); mutable Lock m_lock { "Inode" }; |