mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-21 15:14:13 +00:00
Kernel: Allow fchmod() and fchown() on pre-bind() local sockets
In order to ensure a specific owner and mode when the local socket filesystem endpoint is instantiated, we need to be able to call fchmod() and fchown() on a socket fd between socket() and bind(). This is because until we call bind(), there is no filesystem inode for the socket yet.
This commit is contained in:
@@ -52,3 +52,13 @@ KResult InodeFile::truncate(off_t size)
|
||||
{
|
||||
return m_inode->truncate(size);
|
||||
}
|
||||
|
||||
KResult InodeFile::chown(uid_t uid, gid_t gid)
|
||||
{
|
||||
return VFS::the().chown(*m_inode, uid, gid);
|
||||
}
|
||||
|
||||
KResult InodeFile::chmod(mode_t mode)
|
||||
{
|
||||
return VFS::the().chmod(*m_inode, mode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user