From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10403 invoked by alias); 24 Aug 2017 15:00:53 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 9541 invoked by uid 89); 24 Aug 2017 15:00:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=Hx-languages-length:604 X-HELO: mail-qk0-f180.google.com Received: from mail-qk0-f180.google.com (HELO mail-qk0-f180.google.com) (209.85.220.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 24 Aug 2017 15:00:29 +0000 Received: by mail-qk0-f180.google.com with SMTP id y77so4426799qka.4 for ; Thu, 24 Aug 2017 08:00:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=poyKEc0tpQJRF7lLvKTaNwnnr3BIRTvBvNKEXKq7DfA=; b=PGQJgp96Fb58AFYSgMu9Ke5tHrf4UtlyNIlDU0o85ykcZ8Qh0goEnRoOBMIaOBq0eK jHOSrbblKqrlza5nCzn30M6pXM0ZJ+mrfv7cIlmqolk6tGGicA4L/7yIQvIoZs0XjLMn W4vrRqhI/n1Q2EkGp6GpKC7I3wBlyFanmTuKmGBIBawKSC3pTHb/wtDi8ahV94T+AOEY +eg1ua7Fr6STfiYB6n1qJocxxFBygl+djluLfhVTg4G6BLO8Db5dpsLiKh1EZxXY84Rb /Uk2aA+khC4veZgZuicpED/6S8jVIGbFwpojCmbT6YCf/Yp2Rm0tb3FMG9zJwhrzCsG9 +RFA== X-Gm-Message-State: AHYfb5izvX9gkLXR+HXJIBlroRKiGkRFTuAAc4lqMZCUdGidZlblL2yy qNpj4H/yrYnZGBKO8gxisQ/21Crn/Q== X-Received: by 10.233.220.130 with SMTP id q124mr9013522qkf.284.1503586827235; Thu, 24 Aug 2017 08:00:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.43.226 with HTTP; Thu, 24 Aug 2017 08:00:26 -0700 (PDT) In-Reply-To: References: <1503549910-24770-1-git-send-email-jon@ringle.org> <402cb282-9cd1-2725-f6de-ec5f9eb15e0d@redhat.com> From: Jon Ringle Date: Thu, 24 Aug 2017 15:00:00 -0000 Message-ID: Subject: Re: [PATCH v2] gdbserver: linux_low: elf_64_file_p cache results To: Pedro Alves Cc: gdb-patches@sourceware.org, Jon Ringle Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2017-08/txt/msg00473.txt.bz2 On Thu, Aug 24, 2017 at 10:53 AM, Pedro Alves 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