mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:47:35 +00:00
Kernel: Make File::{chown,chmod} take credentials as input
...instead of getting them from Process::current(). :^)
This commit is contained in:
parent
c3351d4b9f
commit
006f753647
10 changed files with 26 additions and 23 deletions
|
@ -50,7 +50,7 @@ public:
|
|||
ErrorOr<size_t> read(UserOrKernelBuffer&, u64 offset, size_t);
|
||||
ErrorOr<size_t> write(u64 offset, UserOrKernelBuffer const&, size_t);
|
||||
|
||||
ErrorOr<void> chmod(mode_t);
|
||||
ErrorOr<void> chmod(Credentials const& credentials, mode_t);
|
||||
|
||||
bool can_read() const;
|
||||
bool can_write() const;
|
||||
|
@ -121,7 +121,7 @@ public:
|
|||
|
||||
off_t offset() const;
|
||||
|
||||
ErrorOr<void> chown(UserID, GroupID);
|
||||
ErrorOr<void> chown(Credentials const& credentials, UserID, GroupID);
|
||||
|
||||
FileBlockerSet& blocker_set();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue