diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-29 04:55:08 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-29 04:55:08 +0100 |
commit | c30e2c8d440de7a8abbc1935cb5fb79b82d3421f (patch) | |
tree | 6ddae2118d2eec002f0327ff30d5a792828f3002 /Kernel/SyntheticFileSystem.h | |
parent | ad53f6afd3de86fa927a2f8cdacdcbf5134af916 (diff) | |
download | serenity-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.h | 1 |
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; |