public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/18976] New: Remote shared library transfer fails when gdbserver isn't root
@ 2015-09-16 21:16 jmgao at google dot com
  2015-09-16 21:33 ` [Bug server/18976] " jmgao at google dot com
  2015-09-17 18:10 ` jmgao at google dot com
  0 siblings, 2 replies; 3+ messages in thread
From: jmgao at google dot com @ 2015-09-16 21:16 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 18976
           Summary: Remote shared library transfer fails when gdbserver
                    isn't root
           Product: gdb
           Version: 7.10
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: jmgao at google dot com
  Target Milestone: ---

gdbserver's handle_open tries to use multifs_open which on linux, ultimately
attempts to use setns to open files from within the target's mount namespace.
This fails when the user gdbserver is running as doesn't have CAP_SYS_CHROOT
and CAP_SYS_ADMIN, which means the remote file transfer stuff doesn't work on
android.

Submitting a patch to gdb-patches that'll retry with a regular open if the
multifs one fails

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


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

* [Bug server/18976] Remote shared library transfer fails when gdbserver isn't root
  2015-09-16 21:16 [Bug gdb/18976] New: Remote shared library transfer fails when gdbserver isn't root jmgao at google dot com
@ 2015-09-16 21:33 ` jmgao at google dot com
  2015-09-17 18:10 ` jmgao at google dot com
  1 sibling, 0 replies; 3+ messages in thread
From: jmgao at google dot com @ 2015-09-16 21:33 UTC (permalink / raw)
  To: gdb-prs

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

Josh Gao <jmgao at google dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|gdb                         |server

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


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

* [Bug server/18976] Remote shared library transfer fails when gdbserver isn't root
  2015-09-16 21:16 [Bug gdb/18976] New: Remote shared library transfer fails when gdbserver isn't root jmgao at google dot com
  2015-09-16 21:33 ` [Bug server/18976] " jmgao at google dot com
@ 2015-09-17 18:10 ` jmgao at google dot com
  1 sibling, 0 replies; 3+ messages in thread
From: jmgao at google dot com @ 2015-09-17 18:10 UTC (permalink / raw)
  To: gdb-prs

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

Josh Gao <jmgao at google dot com> changed:

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

--- Comment #1 from Josh Gao <jmgao at google dot com> ---
gdbserver was actually in a different mount namespace, closing as invalid

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


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

end of thread, other threads:[~2015-09-17 18:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-16 21:16 [Bug gdb/18976] New: Remote shared library transfer fails when gdbserver isn't root jmgao at google dot com
2015-09-16 21:33 ` [Bug server/18976] " jmgao at google dot com
2015-09-17 18:10 ` jmgao at google 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).