genode/tool/seccomp/seccomp_bpf_compiler_x86_64.cc
Stefan Thöni 78497c03ca base-linux: enabled seccomp
base-linux uses seccomp to reduce the available system calls
to the minimum set needed to run base-linux. There are still
some syscalls that allow accessing global state which should
be further reduced.

The combination of seccomp and socket descriptor caps should
provide an intermediate level of security for base-linux
thereby enabling base-linux as a migration path from using
the Linux kernel to the use of microkernel-based Genode.

Fixes 
2020-05-27 11:56:46 +02:00

24 lines
528 B
C++

/*
* \brief Generate seccomp filter policy for base-linux on x86_64
* \author Stefan Thoeni
* \date 2019-12-13
*/
/*
* Copyright (C) 2019 Genode Labs GmbH
* Copyright (C) 2019 gapfruit AG
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
*/
#include <stdio.h> /* printf */
#include <seccomp.h> /* libseccomp */
#include "seccomp_bpf_compiler.h"
int main()
{
Filter filter(SCMP_ARCH_X86_64);
return filter.create();
}