Skip to content

Commit

Permalink
include: add a seccomp filter install wrapper
Browse files Browse the repository at this point in the history
Signed-off-by: John Crispin <[email protected]>

SVN-Revision: 45006
  • Loading branch information
John Crispin committed Mar 26, 2015
1 parent 006f8c9 commit d95e068
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions include/package-seccomp.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Copyright (C) 2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

PKG_CONFIG_DEPENDS+= CONFIG_KERNEL_SECCOMP

ifeq ($(CONFIG_KERNEL_SECCOMP),y)
define InstallSeccomp
$(INSTALL_DIR) $(1)/etc/seccomp
$(INSTALL_DATA) $(2) $(1)/etc/seccomp/
endef
endif

0 comments on commit d95e068

Please sign in to comment.