From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 2/2] systemd: add option for seccomp support
Date: Thu, 11 Feb 2016 12:33:13 +0100 [thread overview]
Message-ID: <20160211113313.GU32288@pengutronix.de> (raw)
In-Reply-To: <1455035474-14246-2-git-send-email-clemens.gruber@pqgruber.com>
On Tue, Feb 09, 2016 at 05:31:14PM +0100, Clemens Gruber wrote:
> 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>
Thanks, applied.
Michael
> ---
> 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
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2016-02-11 11:33 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 ` [ptxdist] [PATCH 2/2] systemd: add option for seccomp support Clemens Gruber
2016-02-11 11:33 ` Michael Olbrich [this message]
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=20160211113313.GU32288@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--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