This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Improve ptrace-error detection on Linux targets
- From: Sergio Durigan Junior <sergiodj at redhat dot com>
- To: Christian Biesinger <cbiesinger at google dot com>
- Cc: Ruslan Kabatsayev <b7 dot 10110111 at gmail dot com>, GDB Patches <gdb-patches at sourceware dot org>
- Date: Mon, 19 Aug 2019 13:04:13 -0400
- Subject: Re: [PATCH] Improve ptrace-error detection on Linux targets
- References: <20190819032918.3536-1-sergiodj@redhat.com> <CAHEcG97SCuNoLTXG-myf-uow7_W8DTgij-=umxqqvK=xCoDN_w@mail.gmail.com> <87wof9nu65.fsf@redhat.com> <CAPTJ0XEfQKFm6FzjzHz=aB5s4T5aM0=frOEWqfbKwPx_Jc10YA@mail.gmail.com>
On Monday, August 19 2019, Christian Biesinger wrote:
> On Mon, Aug 19, 2019 at 8:47 AM Sergio Durigan Junior
> <sergiodj@redhat.com> wrote:
>> I'm
>> also concerned that it's unreasonable to expect users to have
>> libselinux-devel (on Fedora) installed.
>
> I'm confused, why would users have to have the -dev version installed?
> Can't you just dlopen("libselinux.so.1") and it'll work fine without
> the -dev package?
libselinux.so is present in the libselinux-devel package, but
libselinux.so.1 is present in the libselinux package. We could dlopen
it, sure. I don't know if libselinux is installed by default, though.
--
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
http://sergiodj.net/