2#ifndef POSIX_LANDLOCK_H
3#define POSIX_LANDLOCK_H
4#include "pedigree/kernel/process/FilesystemAccess.h"
5#include "pedigree/kernel/process/FilesystemContext.h"
6#include "pedigree/kernel/utilities/Vector.h"
8namespace LandlockAccess = FilesystemAccess;
26int posix_landlock_create_ruleset(
const void* attributes,
size_t size,
unsigned flags);
27int posix_landlock_add_rule(
int ruleset,
int type,
const void* attributes,
unsigned flags);
28int posix_landlock_restrict_self(
int ruleset,
unsigned flags);
30bool posix_landlock_open(
const FilesystemPathRef& path,
int flags,
bool& allowTruncate);
A vector / dynamic array.