From: Clemens Gruber <clemens.gruber@pqgruber.com>
To: ptxdist@pengutronix.de
Cc: Clemens Gruber <clemens.gruber@pqgruber.com>
Subject: [ptxdist] [PATCH 2/2] systemd: add option for seccomp support
Date: Tue, 9 Feb 2016 17:31:14 +0100 [thread overview]
Message-ID: <1455035474-14246-2-git-send-email-clemens.gruber@pqgruber.com> (raw)
In-Reply-To: <1455035474-14246-1-git-send-email-clemens.gruber@pqgruber.com>
With seccomp support enabled, service files can limit the syscalls a
process is allowed to use through the SystemCallFilter option.
Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
---
rules/systemd.in | 8 ++++++++
rules/systemd.make | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/rules/systemd.in b/rules/systemd.in
index 979e32c..c58e424 100644
--- a/rules/systemd.in
+++ b/rules/systemd.in
@@ -17,6 +17,7 @@ menuconfig SYSTEMD
select MACHINE_ID if RUNTIME
select XZ if SYSTEMD_XZ
select LZ4 if SYSTEMD_LZ4
+ select LIBSECCOMP if SYSTEMD_SECCOMP
select LIBSELINUX if GLOBAL_SELINUX
# for udev:
select ROOTFS_DEV
@@ -94,5 +95,12 @@ config SYSTEMD_COREDUMP
help
Enable this only if you need to debug a crashing systemd service
+config SYSTEMD_SECCOMP
+ bool
+ prompt "enable seccomp filtering support"
+ help
+ Enable this if you want to use SystemCallFilter in service files
+
+
endif
diff --git a/rules/systemd.make b/rules/systemd.make
index b2edb3d..5c87023 100644
--- a/rules/systemd.make
+++ b/rules/systemd.make
@@ -73,7 +73,7 @@ SYSTEMD_CONF_OPT := \
--enable-kmod \
--disable-xkbcommon \
--enable-blkid \
- --disable-seccomp \
+ --$(call ptx/endis,PTXCONF_SYSTEMD_SECCOMP)-seccomp \
--disable-ima \
$(GLOBAL_SELINUX_OPTION) \
--disable-apparmor \
--
2.7.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2016-02-09 16:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-09 16:31 [ptxdist] [PATCH 1/2] libseccomp: new package Clemens Gruber
2016-02-09 16:31 ` Clemens Gruber [this message]
2016-02-11 11:33 ` [ptxdist] [PATCH 2/2] systemd: add option for seccomp support Michael Olbrich
2016-02-11 11:32 ` [ptxdist] [PATCH 1/2] libseccomp: new package Michael Olbrich
2016-02-11 11:45 ` Clemens Gruber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1455035474-14246-2-git-send-email-clemens.gruber@pqgruber.com \
--to=clemens.gruber@pqgruber.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox