diff options
author | Sergey Bugaev <bugaevc@serenityos.org> | 2020-05-28 17:32:20 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-29 07:53:30 +0200 |
commit | a9946a99f24e17644b2b7796ec8be10c8913f38b (patch) | |
tree | 99ea01a7690b0cccc86648e69c4a397a54fb1111 /Kernel/Lock.cpp | |
parent | 67cbc015d53df09b7ef4e70ee818e3f16e6c37dc (diff) | |
download | serenity-a9946a99f24e17644b2b7796ec8be10c8913f38b.zip |
Kernel: Pass a FileDescription to File::chmod() and File::chown()
We're going to make use of it in the next commit. But the idea is we want to
know how this File (more specifically, InodeFile) was opened in order to decide
how chown()/chmod() should behave, in particular whether it should be allowed or
not. Note that many other File operations, such as read(), write(), and ioctl(),
already require the caller to pass a FileDescription.
Diffstat (limited to 'Kernel/Lock.cpp')
0 files changed, 0 insertions, 0 deletions