[PATCH 1/3 xserver] xace: Add new hook to override Xtrans Read and Write invocations

Andrew Eikum aeikum at codeweavers.com
Fri Dec 21 12:32:51 PST 2012


This hook is useful for environments where the security extension might
need to inject data into the stream or process out-of-band information
from clients. Between this and the following patch, I believe I have
added relevant hooks to all accept/read/write/close/disconnect calls in
the tree.

I only hook those five calls. I don't add hooks for other auxiliary
Xtrans calls such as XTransSetOption. The idea is that a security
extension would copy the existing Xtrans implementation and add
modifications. I didn't intend to allow security extensions to create an
entirely "hot-pluggable" Xtrans in a security extension.

Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
---

As always with a new project, it's hard to be sure if I'm following
all of the submission rules :)

Looking at the calendar, I think I missed the 1.13 merge window.
Hopefully we can get any problems worked out and target 1.14 with this
series, then.

I appreciate any feedback!

Thanks,
Andrew

 Xext/xace.c     | 17 ++++++++++++++++-
 Xext/xace.h     |  8 +++++++-
 Xext/xacestr.h  | 12 ++++++++++++
 os/connection.c | 12 +++++++++---
 os/io.c         | 30 +++++++++++++++++++++++++-----
 5 files changed, 69 insertions(+), 10 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-xace-Add-new-hook-to-override-Xtrans-Read-and-Write-.patch
Type: text/x-patch
Size: 6508 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20121221/7010671b/attachment.bin>


More information about the xorg-devel mailing list