public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [Bug debuginfod/27532] New: debuginfod should ask the user for permission before downloading files
@ 2021-03-06  7:53 sergiodj at sergiodj dot net
  2021-03-06 11:30 ` [Bug debuginfod/27532] " fche at redhat dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: sergiodj at sergiodj dot net @ 2021-03-06  7:53 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27532

            Bug ID: 27532
           Summary: debuginfod should ask the user for permission before
                    downloading files
           Product: elfutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: debuginfod
          Assignee: unassigned at sourceware dot org
          Reporter: sergiodj at sergiodj dot net
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

One of the suggestions/complaints I got when we discussed Debian's debuginfod
service on debian-devel was that the debuginfod client should inform the user
before downloading the first file and ask for her consent before proceeding.

I'm not a debuginfod hacker, but I think this would probably require some sort
of permanent file (under ~/.config/, maybe?) where the decision can be stored,
and some way to allow the user to easily change this decision later.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug debuginfod/27532] debuginfod should ask the user for permission before downloading files
  2021-03-06  7:53 [Bug debuginfod/27532] New: debuginfod should ask the user for permission before downloading files sergiodj at sergiodj dot net
@ 2021-03-06 11:30 ` fche at redhat dot com
  2021-03-06 17:51 ` sergiodj at sergiodj dot net
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: fche at redhat dot com @ 2021-03-06 11:30 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27532

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fche at redhat dot com

--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> ---
Getting all interactive from within a library such as libdebuginfod client is
not really good practice nor generally practical.  I'd think that the setting
of the environment variable & call into the library embodies consent by the
enveloping application.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug debuginfod/27532] debuginfod should ask the user for permission before downloading files
  2021-03-06  7:53 [Bug debuginfod/27532] New: debuginfod should ask the user for permission before downloading files sergiodj at sergiodj dot net
  2021-03-06 11:30 ` [Bug debuginfod/27532] " fche at redhat dot com
@ 2021-03-06 17:51 ` sergiodj at sergiodj dot net
  2021-03-06 18:05 ` fche at redhat dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sergiodj at sergiodj dot net @ 2021-03-06 17:51 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27532

--- Comment #2 from Sergio Durigan Junior <sergiodj at sergiodj dot net> ---
Thanks for the reply, Frank.

Yeah, I thought about the good practices, too.  My rationale for filing this
bug against debuginfod instead of e.g. GDB is that it is more uniform to have
the actual agent who performs the download worry about obtaining permission,
instead of having each library user (GDB, perf, etc.) do it.

As for the setting of the environment variable being considered consent, one of
the points raised in the discussion on debian-devel is that, with the way
things are implemented now (using a /etc/profile.d/ snippet), the user will
likely not be aware that DEBUGINFOD_URLS is set unless she herself was the one
who installed the system.  Also, and arguably, DEBUGINFOD_URLS's purpose is
just to specify which debuginfod servers should be consulted, not if it is OK
to do the actual request.

Anyway, I'm not opposed to the idea that it is the actual library user who
should obtain explicit user consent here.  In a way, you could even consider
that libdebuginfod is a wrapper around libcurl, and I totally agree that the
library should implement the mechanism and that its clients should implement
the policy.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug debuginfod/27532] debuginfod should ask the user for permission before downloading files
  2021-03-06  7:53 [Bug debuginfod/27532] New: debuginfod should ask the user for permission before downloading files sergiodj at sergiodj dot net
  2021-03-06 11:30 ` [Bug debuginfod/27532] " fche at redhat dot com
  2021-03-06 17:51 ` sergiodj at sergiodj dot net
@ 2021-03-06 18:05 ` fche at redhat dot com
  2021-03-07 20:41 ` [Bug gdb/27532] GDB should ask the user for permission before downloading debuginfod files sergiodj at sergiodj dot net
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: fche at redhat dot com @ 2021-03-06 18:05 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27532

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #3 from Frank Ch. Eigler <fche at redhat dot com> ---
> the user will likely not be aware that DEBUGINFOD_URLS is set unless
> she herself was the one who installed the system.

The way I'd address this is to advise the sysadmin to set this by default
systemwide only if the user base is going to be copacetic with this, or
if they are informed somehow (release notes?) so they can easily opt out.
If pure documentation is not enough, maybe have some path from logon
through to the calling application print out the env var that first time.

Note that hypothetical unintentional information leakage is very small:
buildids, and perhaps the curl User-Agent: field.  That's it.  (It won't
get to querying source files unless the debuginfo is found first.)

Closing as WONTFIX on account of the impropriety of a low level library
engaging in interactive dialogue.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/27532] GDB should ask the user for permission before downloading debuginfod files
  2021-03-06  7:53 [Bug debuginfod/27532] New: debuginfod should ask the user for permission before downloading files sergiodj at sergiodj dot net
                   ` (2 preceding siblings ...)
  2021-03-06 18:05 ` fche at redhat dot com
@ 2021-03-07 20:41 ` sergiodj at sergiodj dot net
  2021-11-24  0:32 ` amerey at redhat dot com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sergiodj at sergiodj dot net @ 2021-03-07 20:41 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27532

Sergio Durigan Junior <sergiodj at sergiodj dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|WONTFIX                     |---
            Product|elfutils                    |gdb
            Summary|debuginfod should ask the   |GDB should ask the user for
                   |user for permission before  |permission before
                   |downloading files           |downloading debuginfod
                   |                            |files
             Status|RESOLVED                    |REOPENED
            Version|unspecified                 |HEAD
          Component|debuginfod                  |gdb

--- Comment #4 from Sergio Durigan Junior <sergiodj at sergiodj dot net> ---
Instead of WONTFIX for debuginfod, I am reopening this against GDB because I
still think it is a good idea for the client to implement this feature.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/27532] GDB should ask the user for permission before downloading debuginfod files
  2021-03-06  7:53 [Bug debuginfod/27532] New: debuginfod should ask the user for permission before downloading files sergiodj at sergiodj dot net
                   ` (3 preceding siblings ...)
  2021-03-07 20:41 ` [Bug gdb/27532] GDB should ask the user for permission before downloading debuginfod files sergiodj at sergiodj dot net
@ 2021-11-24  0:32 ` amerey at redhat dot com
  2021-11-24  3:51 ` sergiodj at sergiodj dot net
  2022-01-09 16:36 ` hjl.tools at gmail dot com
  6 siblings, 0 replies; 8+ messages in thread
From: amerey at redhat dot com @ 2021-11-24  0:32 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27532

Aaron Merey <amerey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED
                 CC|                            |amerey at redhat dot com

--- Comment #5 from Aaron Merey <amerey at redhat dot com> ---
(In reply to Sergio Durigan Junior from comment #4)
> Instead of WONTFIX for debuginfod, I am reopening this against GDB because I
> still think it is a good idea for the client to implement this feature.

Hi Sergio. Since commit 7811fa5995 gdb will print a notice when debuginfod is
enabled and give the user a chance to opt out. Closing this bug as FIXED.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/27532] GDB should ask the user for permission before downloading debuginfod files
  2021-03-06  7:53 [Bug debuginfod/27532] New: debuginfod should ask the user for permission before downloading files sergiodj at sergiodj dot net
                   ` (4 preceding siblings ...)
  2021-11-24  0:32 ` amerey at redhat dot com
@ 2021-11-24  3:51 ` sergiodj at sergiodj dot net
  2022-01-09 16:36 ` hjl.tools at gmail dot com
  6 siblings, 0 replies; 8+ messages in thread
From: sergiodj at sergiodj dot net @ 2021-11-24  3:51 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27532

--- Comment #6 from Sergio Durigan Junior <sergiodj at sergiodj dot net> ---
(In reply to Aaron Merey from comment #5)
> (In reply to Sergio Durigan Junior from comment #4)
> > Instead of WONTFIX for debuginfod, I am reopening this against GDB because I
> > still think it is a good idea for the client to implement this feature.
> 
> Hi Sergio. Since commit 7811fa5995 gdb will print a notice when debuginfod
> is enabled and give the user a chance to opt out. Closing this bug as FIXED.

That's awesome, Aaron.  Thanks a lot.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/27532] GDB should ask the user for permission before downloading debuginfod files
  2021-03-06  7:53 [Bug debuginfod/27532] New: debuginfod should ask the user for permission before downloading files sergiodj at sergiodj dot net
                   ` (5 preceding siblings ...)
  2021-11-24  3:51 ` sergiodj at sergiodj dot net
@ 2022-01-09 16:36 ` hjl.tools at gmail dot com
  6 siblings, 0 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2022-01-09 16:36 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27532

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://sourceware.org/bugz
                   |                            |illa/show_bug.cgi?id=28757

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-01-09 16:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-06  7:53 [Bug debuginfod/27532] New: debuginfod should ask the user for permission before downloading files sergiodj at sergiodj dot net
2021-03-06 11:30 ` [Bug debuginfod/27532] " fche at redhat dot com
2021-03-06 17:51 ` sergiodj at sergiodj dot net
2021-03-06 18:05 ` fche at redhat dot com
2021-03-07 20:41 ` [Bug gdb/27532] GDB should ask the user for permission before downloading debuginfod files sergiodj at sergiodj dot net
2021-11-24  0:32 ` amerey at redhat dot com
2021-11-24  3:51 ` sergiodj at sergiodj dot net
2022-01-09 16:36 ` hjl.tools at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).