FileSystem: Route chown() and fchown() through VFS for access control.

This commit is contained in:
Andreas Kling 2019-06-02 12:30:24 +02:00
parent aa35c08633
commit e67bfdb7f6
Notes: sideshowbarker 2024-07-19 13:47:12 +09:00
3 changed files with 13 additions and 8 deletions

View file

@ -329,5 +329,5 @@ KResult FileDescriptor::chown(uid_t uid, gid_t gid)
{
if (!m_inode)
return KResult(-EINVAL);
return m_inode->chown(uid, gid);
return VFS::the().chown(*m_inode, uid, gid);
}