diff options
author | Djalal Harouni <tixxdz@opendz.org> | 2016-05-26 22:42:29 +0200 |
---|---|---|
committer | Djalal Harouni <tixxdz@opendz.org> | 2016-05-26 22:42:29 +0200 |
commit | f011b0b87a5ab3b2c85849558d464fcfcad85923 (patch) | |
tree | 5ba5aaa56b684ee7655794cdb102b30474edf10f /src/nspawn/nspawn-seccomp.h | |
parent | 231bfb1b02e0ff3fc335018cc58d83d8ef085dd8 (diff) |
nspawn: split out seccomp call into nspawn-seccomp.[ch]
Split seccomp into nspawn-seccomp.[ch]. Currently there are no changes,
but this will make it easy in the future to share or use the seccomp logic
from systemd core.
Diffstat (limited to 'src/nspawn/nspawn-seccomp.h')
-rw-r--r-- | src/nspawn/nspawn-seccomp.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/nspawn/nspawn-seccomp.h b/src/nspawn/nspawn-seccomp.h new file mode 100644 index 0000000000..5bde16faf9 --- /dev/null +++ b/src/nspawn/nspawn-seccomp.h @@ -0,0 +1,24 @@ +#pragma once + +/*** + This file is part of systemd. + + Copyright 2016 Lennart Poettering + + systemd is free software; you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. + + systemd is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with systemd; If not, see <http://www.gnu.org/licenses/>. +***/ + +#include <sys/types.h> + +int setup_seccomp(uint64_t cap_list_retain); |