summaryrefslogtreecommitdiff
path: root/Xext/xace.c
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2007-03-21 14:39:00 -0400
committerEamon Walsh <ewalsh@moss-uranus.epoch.ncsc.mil>2007-03-21 14:39:00 -0400
commit9c144f8ac5cea25deaa543767dbaf371d029c608 (patch)
treee35a336f333e27f0b8170eed7755c99a6673aff0 /Xext/xace.c
parent2945deba1d4a7dce4f6dd0c568297a1c537fdfb4 (diff)
xace: add XACE_SELECTION_ACCESS hook for selection redirection/access.
Diffstat (limited to 'Xext/xace.c')
-rw-r--r--Xext/xace.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/Xext/xace.c b/Xext/xace.c
index ee0f39c20..2b873cbf0 100644
--- a/Xext/xace.c
+++ b/Xext/xace.c
@@ -147,6 +147,16 @@ int XaceHook(int hook, ...)
prv = &rec.rval;
break;
}
+ case XACE_SELECTION_ACCESS: {
+ XaceSelectionAccessRec rec = {
+ va_arg(ap, ClientPtr),
+ va_arg(ap, Selection*),
+ TRUE /* default allow */
+ };
+ calldata = &rec;
+ prv = &rec.rval;
+ break;
+ }
case XACE_SITE_POLICY: {
XaceSitePolicyRec rec = {
va_arg(ap, char*),