From: Marcel Holtmann <marcel@holtmann.org>
To: Steve Grubb <sgrubb@redhat.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Drop Posix Capabilities
Date: Fri, 25 Sep 2009 14:35:21 -0700 [thread overview]
Message-ID: <1253914521.2659.1.camel@localhost.localdomain> (raw)
In-Reply-To: <200909251647.15440.sgrubb@redhat.com>
Hi Steve,
> The following patch against the 4.54 codebase drops posix capabilities
> after startup so that the bluetooth daemon is less of a threat to the
> system should there be any way to compromise it. The retained
> capabilities was compared to selinux policy to make sure that its
> roughly the same. It uses the libcap-ng library which allows patches
> for dropping capabilities to be much smaller.
>
> Signed-off-by: Steve Grubb <sgrubb@redhat.com>
>
>
> diff -urp bluez-4.54.orig/acinclude.m4 bluez-4.54/acinclude.m4
> --- bluez-4.54.orig/acinclude.m4 2009-09-25 11:33:47.000000000 -0400
> +++ bluez-4.54/acinclude.m4 2009-09-25 16:38:32.000000000 -0400
> @@ -352,3 +352,36 @@ AC_DEFUN([AC_ARG_BLUEZ], [
> AM_CONDITIONAL(CONFIGFILES, test "${configfiles_enable}" = "yes")
> AM_CONDITIONAL(CABLE, test "${cable_enable}" = "yes" && test "${cable_found}" = "yes")
> ])
please base the patch against upstream and not the Fedora package.
> +AC_DEFUN([LIBCAP_NG_PATH],
> +[
> + AC_ARG_WITH(libcap-ng,
> + [ --with-libcap-ng=[auto/yes/no] Add Libcap-ng support
> + [default=auto]],, with_libcap_ng=auto)
> +
I mention this to Bastien already. I want pkgconfig support here and not
some old style aclocal magic.
Regards
Marcel
next prev parent reply other threads:[~2009-09-25 21:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-25 20:47 [PATCH] Drop Posix Capabilities Steve Grubb
2009-09-25 21:35 ` Marcel Holtmann [this message]
2009-09-26 14:29 ` Steve Grubb
2009-09-27 20:31 ` Marcel Holtmann
2009-09-28 21:31 ` Steve Grubb
2009-09-28 23:40 ` Marcel Holtmann
2009-09-29 13:00 ` Steve Grubb
2009-09-29 18:03 ` Marcel Holtmann
2009-10-02 9:46 ` Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1253914521.2659.1.camel@localhost.localdomain \
--to=marcel@holtmann.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=sgrubb@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox