From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1XoxSP-0006N3-AS for ptxdist@pengutronix.de; Thu, 13 Nov 2014 17:41:17 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1XoxSP-0008Rf-8s for ptxdist@pengutronix.de; Thu, 13 Nov 2014 17:41:17 +0100 Date: Thu, 13 Nov 2014 17:41:17 +0100 From: Michael Olbrich Message-ID: <20141113164117.GJ30196@pengutronix.de> References: <1413088039-27720-1-git-send-email-jon@ringle.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1413088039-27720-1-git-send-email-jon@ringle.org> Subject: Re: [ptxdist] [PATCH] libcap: option to install setcap/getcap Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 On Sun, Oct 12, 2014 at 12:27:19AM -0400, jon@ringle.org wrote: > From: Jon Ringle > > Signed-off-by: Jon Ringle Thanks, applied. Michael > --- > rules/libcap.in | 10 ++++++++++ > rules/libcap.make | 13 ++++++++++--- > 2 files changed, 20 insertions(+), 3 deletions(-) > > diff --git a/rules/libcap.in b/rules/libcap.in > index c820658..6fe0230 100644 > --- a/rules/libcap.in > +++ b/rules/libcap.in > @@ -3,5 +3,15 @@ > config LIBCAP > tristate > prompt "libcap" > + select ATTR if LIBCAP_SETCAP > + select ATTR_SHARED if LIBCAP_SETCAP > help > A library for getting and setting POSIX.1e capabilities. > + > +if LIBCAP > + > +config LIBCAP_SETCAP > + bool > + prompt "Install setcap/getcap" > + > +endif > diff --git a/rules/libcap.make b/rules/libcap.make > index 666d8c2..47f28d2 100644 > --- a/rules/libcap.make > +++ b/rules/libcap.make > @@ -32,11 +32,15 @@ LIBCAP_LICENSE := BSD, GPL > # ---------------------------------------------------------------------------- > > LIBCAP_MAKE_OPT := \ > - prefix= PAM_CAP=no DYNAMIC=yes LIBATTR=no lib=lib \ > + prefix= PAM_CAP=no DYNAMIC=yes \ > + LIBATTR=$(call ptx/ifdef, PTXCONF_LIBCAP_SETCAP,yes,no) \ > + lib=lib \ > CC=$(CROSS_CC) \ > BUILD_CC=$(HOSTCC) > > -LIBCAP_INSTALL_OPT := $(LIBCAP_MAKE_OPT) install > +LIBCAP_INSTALL_OPT := $(LIBCAP_MAKE_OPT) \ > + RAISE_SETFCAP=no \ > + install > > # ---------------------------------------------------------------------------- > # Target-Install > @@ -54,7 +58,10 @@ $(STATEDIR)/libcap.targetinstall: > @$(call install_copy, libcap, 0, 0, 0755, -, /sbin/getpcaps) > @$(call install_copy, libcap, 0, 0, 0755, -, /sbin/capsh) > @$(call install_lib, libcap, 0, 0, 0644, libcap) > - > +ifdef PTXCONF_LIBCAP_SETCAP > + @$(call install_copy, libcap, 0, 0, 0755, -, /sbin/setcap) > + @$(call install_copy, libcap, 0, 0, 0755, -, /sbin/getcap) > +endif > @$(call install_finish, libcap) > > @$(call touch) > -- > 1.8.5.4 > > > -- > 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