Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xorg-server
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Mike Hommey
xorg-server
Commits
77740891
Commit
77740891
authored
Dec 18, 2008
by
Eamon Walsh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add xace headers to the SDK when enabled and export the XaceHooks symbol
to modules.
parent
9e4ef3cf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
8 deletions
+12
-8
Xext/Makefile.am
Xext/Makefile.am
+3
-0
Xext/xace.c
Xext/xace.c
+1
-1
Xext/xace.h
Xext/xace.h
+7
-7
hw/xfree86/loader/sdksyms.sh
hw/xfree86/loader/sdksyms.sh
+1
-0
No files found.
Xext/Makefile.am
View file @
77740891
...
...
@@ -73,6 +73,9 @@ endif
XACE_SRCS
=
xace.c xace.h xacestr.h
if
XACE
BUILTIN_SRCS
+=
$(XACE_SRCS)
if
XORG
sdk_HEADERS
+=
xace.h xacestr.h
endif
endif
# SELinux extension: provides SELinux policy support for X objects
...
...
Xext/xace.c
View file @
77740891
...
...
@@ -29,7 +29,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "gcstruct.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.
*/
...
...
Xext/xace.h
View file @
77740891
...
...
@@ -61,19 +61,19 @@ extern CallbackListPtr XaceHooks[XACE_NUM_HOOKS];
/* Entry point for hook functions. Called by Xserver.
* Required by libdbe and libextmod
*/
extern
_X_EXPORT
int
XaceHook
(
_X_EXPORT
int
XaceHook
(
int
/*hook*/
,
...
/*appropriate args for hook*/
);
/* Special-cased hook functions
*/
extern
int
XaceHookDispatch
(
ClientPtr
ptr
,
int
major
);
extern
int
XaceHookPropertyAccess
(
ClientPtr
ptr
,
WindowPtr
pWin
,
PropertyPtr
*
ppProp
,
Mask
access_mode
);
extern
int
XaceHookSelectionAccess
(
ClientPtr
ptr
,
int
XaceHookDispatch
(
ClientPtr
ptr
,
int
major
);
int
XaceHookPropertyAccess
(
ClientPtr
ptr
,
WindowPtr
pWin
,
PropertyPtr
*
ppProp
,
Mask
access_mode
);
int
XaceHookSelectionAccess
(
ClientPtr
ptr
,
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.
*/
...
...
@@ -89,7 +89,7 @@ extern void XaceHookAuditEnd(ClientPtr ptr, int result);
/* From the original Security extension...
*/
extern
void
XaceCensorImage
(
void
XaceCensorImage
(
ClientPtr
client
,
RegionPtr
pVisibleRegion
,
long
widthBytesLine
,
...
...
hw/xfree86/loader/sdksyms.sh
View file @
77740891
...
...
@@ -311,6 +311,7 @@ cat > sdksyms.c << EOF
#include "validate.h"
#include "window.h"
#include "windowstr.h"
#include "xace.h"
#include "xkbfile.h"
#include "xkbsrv.h"
#include "xkbstr.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment