forked from Bananymous/banan-os
Kernel: Make Inode::can_access const
This commit is contained in:
@@ -64,7 +64,7 @@ namespace Kernel
|
||||
public:
|
||||
virtual ~Inode() {}
|
||||
|
||||
bool can_access(const Credentials&, int);
|
||||
bool can_access(const Credentials&, int) const;
|
||||
|
||||
bool operator==(const Inode& other) const { return dev() == other.dev() && ino() == other.ino(); }
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
namespace Kernel
|
||||
{
|
||||
|
||||
bool Inode::can_access(const Credentials& credentials, int flags)
|
||||
bool Inode::can_access(const Credentials& credentials, int flags) const
|
||||
{
|
||||
if (credentials.is_superuser())
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user