Kernel: Make Inode::can_access const
This commit is contained in:
		
							parent
							
								
									b41738b47b
								
							
						
					
					
						commit
						2b52ea4c6f
					
				| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue