Kernel/LibC/Userspace: Implement chown and set tty owner on login

This commit is contained in:
2024-01-02 22:19:38 +02:00
parent 07d5d3f936
commit 96d831c31a
12 changed files with 62 additions and 2 deletions

View File

@@ -141,6 +141,12 @@ namespace Kernel
return chmod_impl(mode);
}
BAN::ErrorOr<void> Inode::chown(uid_t uid, gid_t gid)
{
LockGuard _(m_lock);
return chown_impl(uid, gid);
}
bool Inode::has_data() const
{
LockGuard _(m_lock);