[PATCH] [PR server/18976] fallback to open if multifs_open fails

Josh Gao jmgao@google.com
Wed Sep 16 21:36:00 GMT 2015


gdbserver on linux currently tries to open files from within the
target's mount namespace via setns in a helper process, but this only
works for users with CAP_SYS_CHROOT and CAP_SYS_ADMIN, which regular
users generally don't have (particularly on android).

This patch retries with a regular open if multifs_open reports failure.

--
gdb/gdbserver:

2015-09-16  Josh Gao  <jmgao@google.com>
        PR server/18976
        * hostio.c(handle_open): fallback to open if multifs_open fails.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb-multifs.patch
Type: text/x-patch
Size: 860 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20150916/693a2e2b/attachment.bin>


More information about the Gdb-patches mailing list