This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2] gdbserver: linux_low: elf_64_file_p cache results


On Thu, Aug 24, 2017 at 10:53 AM, Pedro Alves <palves@redhat.com> wrote:
> On 08/24/2017 03:42 PM, Pedro Alves wrote:
>
>> I'm still mystified about why can't gdbserver read
>> the file after "droproot" has changed user.
>> I assume gdbserver is running as root?  Why wouldn't
>> a gdbserver running as root be able to read "jringle"'s
>> /proc file?
>>
>> Does CAP_PTRACE make a difference?
>
> FAOD, I meant CAP_SYS_PTRACE.

Yes, it does make a difference. My testcase works if I add
CAP_SYS_PTRACE to the CapabilityBoundingSet :)

-Jon


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]