Add uid and gid to CharacterDevices.

The vast majority of them will be owned by 0:0 (the default.)
However, PTY pairs will now be owned by the uid:gid of the opening process.
This commit is contained in:
Andreas Kling 2019-01-31 05:55:30 +01:00
commit 34e745b0b4
Notes: sideshowbarker 2024-07-19 15:54:38 +09:00
7 changed files with 32 additions and 5 deletions

View file

@ -86,6 +86,8 @@ public:
void sync();
CharacterDevice* get_device(unsigned major, unsigned minor);
private:
friend class FileDescriptor;