xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH for-4.12 0/4] tools: Internal fd access, etc.
@ 2018-05-14 17:08 Ian Jackson
  2018-05-14 17:08 ` [PATCH 1/4] libxc: Drop declarations of osdep_privcmd_open and _close Ian Jackson
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Ian Jackson @ 2018-05-14 17:08 UTC (permalink / raw)
  To: xen-devel; +Cc: Wei Liu, Roger Pau Monné

I am working on auditing whether deprvileging qemu has actually
worked.  The approach I have chosen is to fish the descriptors out of
qemu (by using debugging facilities), and try to make hypercalls
etc. using them.

To take making a hypercall as an example: this is not easily done
without libxc.  So I need to make libxc make a hypercall with a
different fd - actually, a different open-file.  I do this by using
dup2 to overwrite libxc's fd with the one stolen from qemu.  That
means I need to know libxc's fd number.  Hence the middle two patches
in this series.

Also, I drop some obsolete declarations and improve an error message.

I doubt this is 4.11 material.  qemu depriv is not covered by support
in 4.11 anyway.  In 4.12 I want it to be supported, and, therefore,
tested and audited.  If it becomes fully supported there, it might be
worth backporting some of these patches.

Thanks,
Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

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

end of thread, other threads:[~2018-06-11 13:49 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-14 17:08 [PATCH for-4.12 0/4] tools: Internal fd access, etc Ian Jackson
2018-05-14 17:08 ` [PATCH 1/4] libxc: Drop declarations of osdep_privcmd_open and _close Ian Jackson
2018-05-15  8:37   ` Wei Liu
2018-05-15  8:49   ` Roger Pau Monné
2018-05-14 17:08 ` [PATCH 2/4] libxc: Provide access to internal handles Ian Jackson
2018-05-15  8:37   ` Wei Liu
2018-05-15  8:58   ` Roger Pau Monné
2018-06-11 13:49     ` Ian Jackson
2018-05-14 17:08 ` [PATCH 3/4] tools: xencall, xengnttab, xengntshr: Provide access to internal fds Ian Jackson
2018-05-14 17:18   ` Andrew Cooper
2018-05-15 11:10     ` Ian Jackson
2018-05-14 17:08 ` [PATCH 4/4] libxl: Provide better error message when qemu restrict user not found Ian Jackson
2018-05-15  8:38   ` Wei Liu
2018-05-15  9:02   ` Roger Pau Monné

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 NNTP newsgroup(s).