mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] util-linux-ng: make nsenter configurable
@ 2017-03-06 11:42 Bastian Stender
  2017-03-10  9:46 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Bastian Stender @ 2017-03-06 11:42 UTC (permalink / raw)
  To: ptxdist; +Cc: Bastian Stender

nsenter is useful to enter a namespace of a process.

Signed-off-by: Bastian Stender <bst@pengutronix.de>
---
 rules/util-linux-ng.in   | 6 ++++++
 rules/util-linux-ng.make | 5 ++++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/rules/util-linux-ng.in b/rules/util-linux-ng.in
index 1478a2ff4..dafe3d835 100644
--- a/rules/util-linux-ng.in
+++ b/rules/util-linux-ng.in
@@ -86,6 +86,12 @@ config UTIL_LINUX_NG_DMESG
 comment "BusyBox' dmesg is selected!"
 	depends on BUSYBOX_DMESG
 
+config UTIL_LINUX_NG_NSENTER
+	bool
+	prompt "nsenter"
+	help
+	  The nsenter utility
+
 config UTIL_LINUX_NG_MOUNTPOINT
 	bool
 	select UTIL_LINUX_NG_LIBMOUNT
diff --git a/rules/util-linux-ng.make b/rules/util-linux-ng.make
index 49184a9b0..1682c2188 100644
--- a/rules/util-linux-ng.make
+++ b/rules/util-linux-ng.make
@@ -76,7 +76,7 @@ UTIL_LINUX_NG_CONF_OPT	:= \
 	--$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_MOUNTPOINT)-mountpoint \
 	--disable-fallocate \
 	--disable-unshare \
-	--disable-nsenter \
+	--$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_NSENTER)-nsenter \
 	--disable-setpriv \
 	--disable-eject \
 	--$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_AGETTY)-agetty \
@@ -193,6 +193,9 @@ endif
 ifdef PTXCONF_UTIL_LINUX_NG_MOUNTPOINT
 	@$(call install_copy, util-linux-ng, 0, 0, 0755, -, /bin/mountpoint)
 endif
+ifdef PTXCONF_UTIL_LINUX_NG_NSENTER
+	@$(call install_copy, util-linux-ng, 0, 0, 0755, -, /usr/bin/nsenter)
+endif
 ifdef PTXCONF_UTIL_LINUX_NG_ADDPART
 	@$(call install_copy, util-linux-ng, 0, 0, 0755, -, /usr/sbin/addpart)
 endif
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] [PATCH] util-linux-ng: make nsenter configurable
  2017-03-06 11:42 [ptxdist] [PATCH] util-linux-ng: make nsenter configurable Bastian Stender
@ 2017-03-10  9:46 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2017-03-10  9:46 UTC (permalink / raw)
  To: ptxdist

On Mon, Mar 06, 2017 at 12:42:18PM +0100, Bastian Stender wrote:
> nsenter is useful to enter a namespace of a process.
> 
> Signed-off-by: Bastian Stender <bst@pengutronix.de>

Thanks, applied,

Michael

> ---
>  rules/util-linux-ng.in   | 6 ++++++
>  rules/util-linux-ng.make | 5 ++++-
>  2 files changed, 10 insertions(+), 1 deletion(-)
> 
> diff --git a/rules/util-linux-ng.in b/rules/util-linux-ng.in
> index 1478a2ff4..dafe3d835 100644
> --- a/rules/util-linux-ng.in
> +++ b/rules/util-linux-ng.in
> @@ -86,6 +86,12 @@ config UTIL_LINUX_NG_DMESG
>  comment "BusyBox' dmesg is selected!"
>  	depends on BUSYBOX_DMESG
>  
> +config UTIL_LINUX_NG_NSENTER
> +	bool
> +	prompt "nsenter"
> +	help
> +	  The nsenter utility
> +
>  config UTIL_LINUX_NG_MOUNTPOINT
>  	bool
>  	select UTIL_LINUX_NG_LIBMOUNT
> diff --git a/rules/util-linux-ng.make b/rules/util-linux-ng.make
> index 49184a9b0..1682c2188 100644
> --- a/rules/util-linux-ng.make
> +++ b/rules/util-linux-ng.make
> @@ -76,7 +76,7 @@ UTIL_LINUX_NG_CONF_OPT	:= \
>  	--$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_MOUNTPOINT)-mountpoint \
>  	--disable-fallocate \
>  	--disable-unshare \
> -	--disable-nsenter \
> +	--$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_NSENTER)-nsenter \
>  	--disable-setpriv \
>  	--disable-eject \
>  	--$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_AGETTY)-agetty \
> @@ -193,6 +193,9 @@ endif
>  ifdef PTXCONF_UTIL_LINUX_NG_MOUNTPOINT
>  	@$(call install_copy, util-linux-ng, 0, 0, 0755, -, /bin/mountpoint)
>  endif
> +ifdef PTXCONF_UTIL_LINUX_NG_NSENTER
> +	@$(call install_copy, util-linux-ng, 0, 0, 0755, -, /usr/bin/nsenter)
> +endif
>  ifdef PTXCONF_UTIL_LINUX_NG_ADDPART
>  	@$(call install_copy, util-linux-ng, 0, 0, 0755, -, /usr/sbin/addpart)
>  endif
> -- 
> 2.11.0
> 
> 
> _______________________________________________
> 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] 2+ messages in thread

end of thread, other threads:[~2017-03-10  9:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-06 11:42 [ptxdist] [PATCH] util-linux-ng: make nsenter configurable Bastian Stender
2017-03-10  9:46 ` Michael Olbrich

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