1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:44:58 +00:00

Kernel+Userland: Add mount MS_SRCHIDDEN option

Either we mount from a loop device or other source, the user might want
to obfuscate the given source for security reasons, so this option will
ensure this will happen.
If passed during a mount, the source will be hidden when reading from
the /sys/kernel/df node.
This commit is contained in:
Liav A 2024-02-10 12:27:32 +02:00 committed by Andrew Kaster
parent 0739b5df11
commit 0734de9f9a
3 changed files with 21 additions and 11 deletions

View file

@ -30,6 +30,7 @@ extern "C" {
#define MS_WXALLOWED (1 << 6)
#define MS_AXALLOWED (1 << 7)
#define MS_NOREGULAR (1 << 8)
#define MS_SRCHIDDEN (1 << 9)
enum {
_SC_MONOTONIC_CLOCK,