Add xace headers to the SDK when enabled and export the XaceHooks symbol
to modules.
This commit is contained in:
		
							parent
							
								
									9e4ef3cfe5
								
							
						
					
					
						commit
						777408914d
					
				|  | @ -73,6 +73,9 @@ endif | ||||||
| XACE_SRCS = xace.c xace.h xacestr.h | XACE_SRCS = xace.c xace.h xacestr.h | ||||||
| if XACE | if XACE | ||||||
| BUILTIN_SRCS += $(XACE_SRCS) | BUILTIN_SRCS += $(XACE_SRCS) | ||||||
|  | if XORG | ||||||
|  | sdk_HEADERS += xace.h xacestr.h | ||||||
|  | endif | ||||||
| endif | endif | ||||||
| 
 | 
 | ||||||
| # SELinux extension: provides SELinux policy support for X objects
 | # SELinux extension: provides SELinux policy support for X objects
 | ||||||
|  |  | ||||||
|  | @ -29,7 +29,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||||||
| #include "gcstruct.h" | #include "gcstruct.h" | ||||||
| #include "xacestr.h" | #include "xacestr.h" | ||||||
| 
 | 
 | ||||||
| CallbackListPtr XaceHooks[XACE_NUM_HOOKS] = {0}; | _X_EXPORT CallbackListPtr XaceHooks[XACE_NUM_HOOKS] = {0}; | ||||||
| 
 | 
 | ||||||
| /* Special-cased hook functions.  Called by Xserver.
 | /* Special-cased hook functions.  Called by Xserver.
 | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
							
								
								
									
										14
									
								
								Xext/xace.h
								
								
								
								
							
							
						
						
									
										14
									
								
								Xext/xace.h
								
								
								
								
							|  | @ -61,19 +61,19 @@ extern CallbackListPtr XaceHooks[XACE_NUM_HOOKS]; | ||||||
| /* Entry point for hook functions.  Called by Xserver.
 | /* Entry point for hook functions.  Called by Xserver.
 | ||||||
|  * Required by libdbe and libextmod |  * Required by libdbe and libextmod | ||||||
|  */ |  */ | ||||||
| extern _X_EXPORT int XaceHook( | _X_EXPORT int XaceHook( | ||||||
|     int /*hook*/, |     int /*hook*/, | ||||||
|     ... /*appropriate args for hook*/ |     ... /*appropriate args for hook*/ | ||||||
|     );  |     );  | ||||||
| 
 | 
 | ||||||
| /* Special-cased hook functions
 | /* Special-cased hook functions
 | ||||||
|  */ |  */ | ||||||
| extern int XaceHookDispatch(ClientPtr ptr, int major); | int XaceHookDispatch(ClientPtr ptr, int major); | ||||||
| extern int XaceHookPropertyAccess(ClientPtr ptr, WindowPtr pWin, | int XaceHookPropertyAccess(ClientPtr ptr, WindowPtr pWin, | ||||||
| 				  PropertyPtr *ppProp, Mask access_mode); | 			   PropertyPtr *ppProp, Mask access_mode); | ||||||
| extern int XaceHookSelectionAccess(ClientPtr ptr, | int XaceHookSelectionAccess(ClientPtr ptr, | ||||||
| 				   Selection **ppSel, Mask access_mode); | 				   Selection **ppSel, Mask access_mode); | ||||||
| extern void XaceHookAuditEnd(ClientPtr ptr, int result); | void XaceHookAuditEnd(ClientPtr ptr, int result); | ||||||
| 
 | 
 | ||||||
| /* Register a callback for a given hook.
 | /* Register a callback for a given hook.
 | ||||||
|  */ |  */ | ||||||
|  | @ -89,7 +89,7 @@ extern void XaceHookAuditEnd(ClientPtr ptr, int result); | ||||||
| /* From the original Security extension...
 | /* From the original Security extension...
 | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| extern void XaceCensorImage( | void XaceCensorImage( | ||||||
|     ClientPtr client, |     ClientPtr client, | ||||||
|     RegionPtr pVisibleRegion, |     RegionPtr pVisibleRegion, | ||||||
|     long widthBytesLine, |     long widthBytesLine, | ||||||
|  |  | ||||||
|  | @ -311,6 +311,7 @@ cat > sdksyms.c << EOF | ||||||
| #include "validate.h" | #include "validate.h" | ||||||
| #include "window.h" | #include "window.h" | ||||||
| #include "windowstr.h" | #include "windowstr.h" | ||||||
|  | #include "xace.h" | ||||||
| #include "xkbfile.h" | #include "xkbfile.h" | ||||||
| #include "xkbsrv.h" | #include "xkbsrv.h" | ||||||
| #include "xkbstr.h" | #include "xkbstr.h" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue