mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:48:14 +00:00
Kernel: Entries in /dev/pts should be accessible only to the owner
This fixes an issue where anyone could snoop on any pseudoterminal.
This commit is contained in:
parent
c6254916ba
commit
12eb1f5d74
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ RefPtr<Inode> DevPtsFS::get_inode(InodeIdentifier inode_id) const
|
|||
inode->m_metadata.size = 0;
|
||||
inode->m_metadata.uid = device->uid();
|
||||
inode->m_metadata.gid = device->gid();
|
||||
inode->m_metadata.mode = 0020644;
|
||||
inode->m_metadata.mode = 0020600;
|
||||
inode->m_metadata.major_device = device->major();
|
||||
inode->m_metadata.minor_device = device->minor();
|
||||
inode->m_metadata.mtime = mepoch;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue