mirror of
https://github.com/RGBCube/serenity
synced 2025-06-30 10:22:13 +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
|
@ -430,14 +430,14 @@ void OpenFileDescription::set_file_flags(u32 flags)
|
|||
});
|
||||
}
|
||||
|
||||
ErrorOr<void> OpenFileDescription::chmod(mode_t mode)
|
||||
ErrorOr<void> OpenFileDescription::chmod(Credentials const& credentials, mode_t mode)
|
||||
{
|
||||
return m_file->chmod(*this, mode);
|
||||
return m_file->chmod(credentials, *this, mode);
|
||||
}
|
||||
|
||||
ErrorOr<void> OpenFileDescription::chown(UserID uid, GroupID gid)
|
||||
ErrorOr<void> OpenFileDescription::chown(Credentials const& credentials, UserID uid, GroupID gid)
|
||||
{
|
||||
return m_file->chown(*this, uid, gid);
|
||||
return m_file->chown(credentials, *this, uid, gid);
|
||||
}
|
||||
|
||||
FileBlockerSet& OpenFileDescription::blocker_set()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue