libalpm
Arch Linux Package Manager Library
|
#include <errno.h>
#include <fcntl.h>
#include <stddef.h>
#include <unistd.h>
#include "config.h"
#include "log.h"
#include "sandbox_fs.h"
#include "util.h"
#include <linux/landlock.h>
#include <sys/prctl.h>
#include <sys/syscall.h>
Macros | |
#define | _LANDLOCK_ACCESS_FS_WRITE |
#define | _LANDLOCK_ACCESS_FS_READ |
#define | _LANDLOCK_ACCESS_FS_REFER 0 |
#define | _LANDLOCK_ACCESS_FS_TRUNCATE 0 |
Functions | |
static int | landlock_create_ruleset (const struct landlock_ruleset_attr *const attr, const size_t size, const __u32 flags) |
static int | landlock_add_rule (const int ruleset_fd, const enum landlock_rule_type rule_type, const void *const rule_attr, const __u32 flags) |
static int | landlock_restrict_self (const int ruleset_fd, const __u32 flags) |
#define _LANDLOCK_ACCESS_FS_READ |
#define _LANDLOCK_ACCESS_FS_REFER 0 |
#define _LANDLOCK_ACCESS_FS_TRUNCATE 0 |
#define _LANDLOCK_ACCESS_FS_WRITE |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |