Kernel: chmod()/chown() for PTYs should return EROFS

All the other methods already do this and this is also what OpenSSH
expects when trying to change modes/ownership for devpts files.
This commit is contained in:
Gunnar Beutner 2021-04-30 03:39:39 +02:00 committed by Andreas Kling
parent 71f90695c2
commit 488ee56cf7
Notes: sideshowbarker 2024-07-18 18:51:33 +09:00

View file

@ -182,12 +182,12 @@ KResult DevPtsFSInode::remove_child(const StringView&)
KResult DevPtsFSInode::chmod(mode_t)
{
return EPERM;
return EROFS;
}
KResult DevPtsFSInode::chown(uid_t, gid_t)
{
return EPERM;
return EROFS;
}
}