Kernel: Allow chmod on TmpSocketInode
This commit is contained in:
parent
2424f38a62
commit
49889858fa
|
@ -90,6 +90,7 @@ namespace Kernel
|
||||||
virtual BAN::ErrorOr<size_t> read_impl(off_t, BAN::ByteSpan) override { return BAN::Error::from_errno(ENODEV); }
|
virtual BAN::ErrorOr<size_t> read_impl(off_t, BAN::ByteSpan) override { return BAN::Error::from_errno(ENODEV); }
|
||||||
virtual BAN::ErrorOr<size_t> write_impl(off_t, BAN::ConstByteSpan) override { return BAN::Error::from_errno(ENODEV); }
|
virtual BAN::ErrorOr<size_t> write_impl(off_t, BAN::ConstByteSpan) override { return BAN::Error::from_errno(ENODEV); }
|
||||||
virtual BAN::ErrorOr<void> truncate_impl(size_t) override { return BAN::Error::from_errno(ENODEV); }
|
virtual BAN::ErrorOr<void> truncate_impl(size_t) override { return BAN::Error::from_errno(ENODEV); }
|
||||||
|
virtual BAN::ErrorOr<void> chmod_impl(mode_t) override;
|
||||||
virtual bool has_data_impl() const override { return true; }
|
virtual bool has_data_impl() const override { return true; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -239,6 +239,12 @@ namespace Kernel
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BAN::ErrorOr<void> TmpSocketInode::chmod_impl(mode_t new_mode)
|
||||||
|
{
|
||||||
|
m_inode_info.mode = new_mode;
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
/* SYMLINK INODE */
|
/* SYMLINK INODE */
|
||||||
|
|
||||||
BAN::ErrorOr<BAN::RefPtr<TmpSymlinkInode>> TmpSymlinkInode::create_new(TmpFileSystem& fs, mode_t mode, uid_t uid, gid_t gid, BAN::StringView target)
|
BAN::ErrorOr<BAN::RefPtr<TmpSymlinkInode>> TmpSymlinkInode::create_new(TmpFileSystem& fs, mode_t mode, uid_t uid, gid_t gid, BAN::StringView target)
|
||||||
|
|
Loading…
Reference in New Issue