summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/Inode.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-04 19:46:55 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-04 19:46:55 +0200
commit53d0ca2ad8ad8ee1094da9ec1152e6b1cf7fb321 (patch)
treefbce344c52ebe1e9cbbb42a54004b9f5000861eb /Kernel/FileSystem/Inode.h
parent040ba77d44517335282cc41b0b5ddfe281289cfd (diff)
downloadserenity-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.h1
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" };