Kernel: Take const Process& in InodeMetadata::may_{read,write,execute}

This commit is contained in:
Andreas Kling 2020-01-07 19:17:35 +01:00
commit faf32153f6
Notes: sideshowbarker 2024-07-19 10:16:58 +09:00
2 changed files with 6 additions and 6 deletions

View file

@ -26,9 +26,9 @@ inline bool is_setgid(mode_t mode) { return mode & 02000; }
struct InodeMetadata {
bool is_valid() const { return inode.is_valid(); }
bool may_read(Process&) const;
bool may_write(Process&) const;
bool may_execute(Process&) const;
bool may_read(const Process&) const;
bool may_write(const Process&) const;
bool may_execute(const Process&) const;
bool may_read(uid_t u, gid_t g, const HashTable<gid_t>& eg) const
{