1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

Kernel: Allow configuring a Jail to not impose PID isolation restriction

This is quite useful for userspace applications that can't cope with the
restriction, but it's still useful to impose other non-configurable
restrictions by using jails.
This commit is contained in:
Liav A 2023-01-12 22:47:09 +02:00 committed by Jelle Raaijmakers
parent cf8875426d
commit 8289759f1d
11 changed files with 62 additions and 23 deletions

17
Kernel/API/Jail.h Normal file
View file

@ -0,0 +1,17 @@
/*
* Copyright (c) 2022, Liav A. <liavalb@hotmail.co.il>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/EnumBits.h>
#include <AK/Types.h>
enum class JailIsolationFlags : u32 {
None = 0,
PIDIsolation = 1 << 0,
};
AK_ENUM_BITWISE_OPERATORS(JailIsolationFlags);

View file

@ -343,6 +343,7 @@ struct SC_setkeymap_params {
struct SC_jail_create_params {
u64 index;
StringArgument name;
int flags;
};
struct SC_jail_attach_params {