From 7118ad494c939bf9542089c0c56d6773f495d6a9 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Wed, 19 Feb 2020 10:31:11 +0100 Subject: [PATCH] os/vfs.h: add Directory::Entry::rwx accessor --- repos/os/include/os/vfs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repos/os/include/os/vfs.h b/repos/os/include/os/vfs.h index 0996b8158..1c09d21ce 100644 --- a/repos/os/include/os/vfs.h +++ b/repos/os/include/os/vfs.h @@ -77,6 +77,8 @@ struct Genode::Directory : Noncopyable, Interface Vfs::Directory_service::Dirent_type type() const { return _dirent.type; } bool dir() const { return _dirent.type == Dirent_type::DIRECTORY; } + + Vfs::Node_rwx rwx() const { return _dirent.rwx; } }; enum { MAX_PATH_LEN = 256 };