From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtprelay06.ispgateway.de ([80.67.31.95]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1UXc7u-0002DM-W7 for ptxdist@pengutronix.de; Wed, 01 May 2013 20:51:41 +0200 Received: from [78.47.165.117] (helo=regiomontanus.your-server.de) by smtprelay06.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1UXc7u-0001Gs-Mw for ptxdist@pengutronix.de; Wed, 01 May 2013 20:51:38 +0200 From: Bernhard Walle Date: Wed, 1 May 2013 20:51:32 +0200 Message-Id: <1367434292-12287-2-git-send-email-bernhard@bwalle.de> In-Reply-To: <1367434292-12287-1-git-send-email-bernhard@bwalle.de> References: <51801359.6040508@pengutronix.de> <1367434292-12287-1-git-send-email-bernhard@bwalle.de> Subject: [ptxdist] [PATCH 2/2] tomoyo-tools: New package Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de This are the userspace tools needed to use the TOMOYO security module that is included in the Linux kernel >= 3.2. In addition, we modify Kconfig to include the tomoyo-tools package directly beyond the "Security" group. Signed-off-by: Bernhard Walle --- rules/Kconfig | 1 + rules/tomoyo-tools.in | 8 +++++ rules/tomoyo-tools.make | 88 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100644 rules/tomoyo-tools.in create mode 100644 rules/tomoyo-tools.make diff --git a/rules/Kconfig b/rules/Kconfig index 6ebc681..d98ba0d 100644 --- a/rules/Kconfig +++ b/rules/Kconfig @@ -90,6 +90,7 @@ menu "Security " menu "SELinux " source "generated/selinux.in" endmenu +source "generated/security.in" endmenu menu "Middleware " diff --git a/rules/tomoyo-tools.in b/rules/tomoyo-tools.in new file mode 100644 index 0000000..61aed38 --- /dev/null +++ b/rules/tomoyo-tools.in @@ -0,0 +1,8 @@ +## SECTION=security + +config TOMOYO_TOOLS + tristate + prompt "tomoyo-tools" + select NCURSES + help + TOMOYO Linux userspace tools for Linux kernels >=3.2 diff --git a/rules/tomoyo-tools.make b/rules/tomoyo-tools.make new file mode 100644 index 0000000..b40c450 --- /dev/null +++ b/rules/tomoyo-tools.make @@ -0,0 +1,88 @@ +# -*-makefile-*- +# +# Copyright (C) 2013 by Bernhard Walle +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_TOMOYO_TOOLS) += tomoyo-tools + +# +# Paths and names +# +TOMOYO_TOOLS_VERSION := 2.5.0-20130406 +TOMOYO_TOOLS_MD5 := 8888f83fcb87823d714ff551e8680d0d +TOMOYO_TOOLS := tomoyo-tools-$(TOMOYO_TOOLS_VERSION) +TOMOYO_TOOLS_SUFFIX := tar.gz +TOMOYO_TOOLS_URL := http://sourceforge.jp/frs/redir.php?m=jaist&f=/tomoyo/53357/$(TOMOYO_TOOLS).$(TOMOYO_TOOLS_SUFFIX) +TOMOYO_TOOLS_SOURCE := $(SRCDIR)/$(TOMOYO_TOOLS).$(TOMOYO_TOOLS_SUFFIX) +TOMOYO_TOOLS_DIR := $(BUILDDIR)/tomoyo-tools +TOMOYO_TOOLS_LICENSE := GPL + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +TOMOYO_TOOLS_CONF_TOOL := NO +TOMOYO_TOOLS_MAKE_ENV := $(CROSS_ENV) INSTALLDIR=$(TOMOYO_TOOLS_PKGDIR) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +TOMOYO_TOOLS_SBIN_PROGS := \ + tomoyo-auditd \ + tomoyo-checkpolicy \ + tomoyo-diffpolicy \ + tomoyo-domainmatch \ + tomoyo-editpolicy \ + tomoyo-findtemp \ + tomoyo-loadpolicy \ + tomoyo-notifyd \ + tomoyo-patternize \ + tomoyo-pstree \ + tomoyo-queryd \ + tomoyo-savepolicy \ + tomoyo-selectpolicy \ + tomoyo-setlevel \ + tomoyo-setprofile \ + tomoyo-sortpolicy + +TOMOYO_TOOLS_LIBEXEC_PROGS := \ + audit-exec-param \ + convert-audit-log \ + convert-exec-param \ + init_policy \ + tomoyo-editpolicy-agent + + +$(STATEDIR)/tomoyo-tools.targetinstall: + @$(call targetinfo) + + @$(call install_init, tomoyo-tools) + @$(call install_fixup, tomoyo-tools,PRIORITY,optional) + @$(call install_fixup, tomoyo-tools,SECTION,base) + @$(call install_fixup, tomoyo-tools,AUTHOR,"Bernhard Walle ") + @$(call install_fixup, tomoyo-tools,DESCRIPTION,missing) + + @$(call install_copy, tomoyo-tools, 0, 0, 0755, -, /sbin/tomoyo-init) + + @$(foreach prog, $(TOMOYO_TOOLS_SBIN_PROGS), \ + $(call install_copy, tomoyo-tools, 0, 0, 0755, -, /usr/sbin/$(prog));) + + @$(foreach prog, $(TOMOYO_TOOLS_LIBEXEC_PROGS), \ + $(call install_copy, tomoyo-tools, 0, 0, 0755, -, /usr/lib/tomoyo/$(prog));) + + @$(call install_lib, tomoyo-tools, 0, 0, 0644, libtomoyotools) + + @$(call install_finish, tomoyo-tools) + + @$(call touch) + +# vim: syntax=make -- 1.8.2.2 -- ptxdist mailing list ptxdist@pengutronix.de