mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] tomoyo-tools: New package
@ 2013-04-30 16:09 Bernhard Walle
  2013-04-30 18:54 ` Marc Kleine-Budde
  0 siblings, 1 reply; 5+ messages in thread
From: Bernhard Walle @ 2013-04-30 16:09 UTC (permalink / raw)
  To: ptxdist

This are the userspace tools needed to use the TOMOYO security module
that is included in the Linux kernel >= 3.2.

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
---
Maybe it would make sense to create a new group 'Security' and move the SELinux
stuff there, too?

 rules/tomoyo-tools.in   |  8 +++++
 rules/tomoyo-tools.make | 88 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 96 insertions(+)
 create mode 100644 rules/tomoyo-tools.in
 create mode 100644 rules/tomoyo-tools.make

diff --git a/rules/tomoyo-tools.in b/rules/tomoyo-tools.in
new file mode 100644
index 0000000..caeb4c1
--- /dev/null
+++ b/rules/tomoyo-tools.in
@@ -0,0 +1,8 @@
+## SECTION=shell_and_console
+
+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 <bernhard@bwalle.de>
+#
+# 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 <bernhard@bwalle.de>")
+	@$(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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] [PATCH] tomoyo-tools: New package
  2013-04-30 16:09 [ptxdist] [PATCH] tomoyo-tools: New package Bernhard Walle
@ 2013-04-30 18:54 ` Marc Kleine-Budde
  2013-05-01 18:51   ` [ptxdist] [PATCH 1/2] Add new top-level group 'Security' Bernhard Walle
  0 siblings, 1 reply; 5+ messages in thread
From: Marc Kleine-Budde @ 2013-04-30 18:54 UTC (permalink / raw)
  To: ptxdist; +Cc: Bernhard Walle


[-- Attachment #1.1: Type: text/plain, Size: 628 bytes --]

On 04/30/2013 06:09 PM, Bernhard Walle wrote:
> This are the userspace tools needed to use the TOMOYO security module
> that is included in the Linux kernel >= 3.2.
> 
> Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
> ---
> Maybe it would make sense to create a new group 'Security' and move the SELinux
> stuff there, too?

+1

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ptxdist] [PATCH 1/2] Add new top-level group 'Security'
  2013-04-30 18:54 ` Marc Kleine-Budde
@ 2013-05-01 18:51   ` Bernhard Walle
  2013-05-01 18:51     ` [ptxdist] [PATCH 2/2] tomoyo-tools: New package Bernhard Walle
  0 siblings, 1 reply; 5+ messages in thread
From: Bernhard Walle @ 2013-05-01 18:51 UTC (permalink / raw)
  To: ptxdist

The SELinux stuff is now a subgroup.

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
---
 rules/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rules/Kconfig b/rules/Kconfig
index b8aed5f..6ebc681 100644
--- a/rules/Kconfig
+++ b/rules/Kconfig
@@ -86,9 +86,11 @@ menu "System Libraries              "
 source "generated/system_libraries.in"
 endmenu
 
+menu "Security                      "
 menu "SELinux                       "
 source "generated/selinux.in"
 endmenu
+endmenu
 
 menu "Middleware                    "
 source "generated/middleware.in"
-- 
1.8.2.2


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ptxdist] [PATCH 2/2] tomoyo-tools: New package
  2013-05-01 18:51   ` [ptxdist] [PATCH 1/2] Add new top-level group 'Security' Bernhard Walle
@ 2013-05-01 18:51     ` Bernhard Walle
  2013-05-03 16:58       ` Michael Olbrich
  0 siblings, 1 reply; 5+ messages in thread
From: Bernhard Walle @ 2013-05-01 18:51 UTC (permalink / raw)
  To: ptxdist

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 <bernhard@bwalle.de>
---
 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 <bernhard@bwalle.de>
+#
+# 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 <bernhard@bwalle.de>")
+	@$(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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] [PATCH 2/2] tomoyo-tools: New package
  2013-05-01 18:51     ` [ptxdist] [PATCH 2/2] tomoyo-tools: New package Bernhard Walle
@ 2013-05-03 16:58       ` Michael Olbrich
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Olbrich @ 2013-05-03 16:58 UTC (permalink / raw)
  To: ptxdist

On Wed, May 01, 2013 at 08:51:32PM +0200, Bernhard Walle wrote:
> 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.

tnx, both applied.

Michael

> Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
> ---
>  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 <bernhard@bwalle.de>
> +#
> +# 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 <bernhard@bwalle.de>")
> +	@$(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
> 

-- 
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-05-03 16:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-30 16:09 [ptxdist] [PATCH] tomoyo-tools: New package Bernhard Walle
2013-04-30 18:54 ` Marc Kleine-Budde
2013-05-01 18:51   ` [ptxdist] [PATCH 1/2] Add new top-level group 'Security' Bernhard Walle
2013-05-01 18:51     ` [ptxdist] [PATCH 2/2] tomoyo-tools: New package Bernhard Walle
2013-05-03 16:58       ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox