summaryrefslogtreecommitdiff
path: root/Kernel/SyntheticFileSystem.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-29 04:55:08 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-29 04:55:08 +0100
commitc30e2c8d440de7a8abbc1935cb5fb79b82d3421f (patch)
tree6ddae2118d2eec002f0327ff30d5a792828f3002 /Kernel/SyntheticFileSystem.h
parentad53f6afd3de86fa927a2f8cdacdcbf5134af916 (diff)
downloadserenity-c30e2c8d440de7a8abbc1935cb5fb79b82d3421f.zip
Implement basic chmod() syscall and /bin/chmod helper.
Only raw octal modes are supported right now. This patch also changes mode_t from 32-bit to 16-bit to match the on-disk type used by Ext2FS. I also ran into EPERM being errno=0 which was confusing, so I inserted an ESUCCESS in its place.
Diffstat (limited to 'Kernel/SyntheticFileSystem.h')
-rw-r--r--Kernel/SyntheticFileSystem.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/SyntheticFileSystem.h b/Kernel/SyntheticFileSystem.h
index c40697546e..765eb6a146 100644
--- a/Kernel/SyntheticFileSystem.h
+++ b/Kernel/SyntheticFileSystem.h
@@ -65,6 +65,7 @@ private:
virtual bool remove_child(const String& name, int& error) override;
virtual RetainPtr<Inode> parent() const override;
virtual size_t directory_entry_count() const override;
+ virtual bool chmod(mode_t, int& error) override;
SynthFS& fs();
const SynthFS& fs() const;