linux-support 0.0.25

Comprehensive Linux support for namespaces, cgroups, processes, scheduling, parsing /proc, parsing /sys, signals, hyper threads, CPUS, NUMA nodes, unusual file descriptors, PCI devices and much, much more
// This file is part of linux-support. It is subject to the license terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/linux-support/master/COPYRIGHT. No part of linux-support, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the COPYRIGHT file.
// Copyright © 2020 The developers of linux-support. See the COPYRIGHT file in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/linux-support/master/COPYRIGHT.


#[repr(u32)]
pub(crate) enum SCMP_ACT
{
	/// Kill a process.
	KILL_PROCESS = 0x80000000,

	/// Same as `KILL`.
	KILL_THREAD = 0x00000000,

	/// Raise a `SIGSYS` signal.
	TRAP = 0x00030000,

	/// Notify userspace.
	NOTIFY = 0x7FC00000,

	/// Allow the syscall to be executed after the action has been logged.
	LOG = 0x7FFC0000,

	/// Allow the system call.
	ALLOW = 0x7FFF0000,
}

impl SCMP_ACT
{
	#[allow(dead_code)]
	const KILL: Self = SCMP_ACT::KILL_THREAD;
}