XACE lookup/verify macro cleanups in dix

Daniel Stone daniel at fooishbar.org
Mon Dec 18 09:33:14 PST 2006


On Mon, Dec 18, 2006 at 12:14:36PM -0500, Eamon Walsh wrote:
> Eamon Walsh wrote:
> >To continue cleaning up the security-related ifdefs and macros in 
> >master, something needs to be done about the macros in dix.h.  I propose 
> >consolidating:
> >
> >LookupWindow()
> >SecurityLookupWindow()		-> dixLookupWindow()
> >
> >LookupDrawable()
> >SecurityLookupDrawable()
> >LOOKUP_DRAWABLE
> >VERIFY_DRAWABLE
> >SECURITY_VERIFY_DRAWABLE
> >VERIFY_GEOMETRABLE
> >SECURITY_VERIFY_GEOMETRABLE	-> dixLookupDrawable()
> >
> >VERIFY_GC
> >SECURITY_VERIFY_GC		-> dixLookupGC()
> 
> This is now done; I'm in the process of updating the documentation. 
> Branch developers - on your next rebase to master, there may be 
> conflicts as every caller in the code base has been changed over.
> 
> If this goes over well, there are a few more to do:
> 
> VALIDATE_DRAWABLE_AND_GC	-> dixLookupDrawableGCPair()
> 
> LookupIDByType()
> SecurityLookupIDByType()
> LookupIDByClass()
> SecurityLookupIDByClass()	-> dixLookupResource()

Thanks Eamon!  This looks great.  One of the major annoyances gone.

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20061218/49e1133b/attachment.pgp>


More information about the xorg mailing list