[PATCH 0/3] Fix initialization when iopl is forbidden

Adam Jackson ajax at redhat.com
Tue Jun 26 13:33:44 PDT 2012


The following series, when combined with appropriate DDX driver fixes,
allows X to initialize without a config file even when iopl/ioperm are
unavailable on an architecture which otherwise has them.  This is useful
when the system security policy forbids it, for example for UEFI Secure
Boot compliance.

The requisite driver changes, assuming you're not trying to work against
arbitrary server ABIs, amount to "if xorgHWAccess is exported at build
time, check it early in probe".  This happens to be source-compatible
with a fairly long range of servers due to xf86Priv.h inexplicably being
an SDK header despite the name.  That's a mistake we ought to fix, so
subsequent to this series the declaration moves to xf86.h.

Tested with a KMS radeon config on F17.

 common/xf86.h                |    1 
 common/xf86Bus.c             |   11 -----
 common/xf86Configure.c       |   27 -------------
 common/xf86Init.c            |   23 +++++------
 common/xf86Priv.h            |    1 
 os-support/linux/lnx_video.c |   89 ++++++++++++++++++++++++-------------------
 6 files changed, 63 insertions(+), 89 deletions(-)

- ajax



More information about the xorg-devel mailing list