diff options
Diffstat (limited to 'src/input/inputEventHandler.h')
| -rw-r--r-- | src/input/inputEventHandler.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/input/inputEventHandler.h b/src/input/inputEventHandler.h index 46e688c..3879b80 100644 --- a/src/input/inputEventHandler.h +++ b/src/input/inputEventHandler.h @@ -26,6 +26,11 @@ #include "detail/policyChain.h" #include "detail/systemTraits.h" +///////////////////////////////////////////////////////////////////////// +// InputEventContext: +// For handling access control, this specifies who sent the input event. +// This only makes sense in the privileged input handler chain. +///////////////////////////////////////////////////////////////////////// struct InputEventContext { InputEventContext() @@ -37,6 +42,7 @@ struct InputEventContext virtual uid_t senderUid() const = 0; virtual gid_t senderGid() const = 0; + // Support the generation of meaningful log messages: mutable bool hasBeenDenied; }; @@ -203,6 +209,7 @@ template<POLICY_PARAMS> class InputEventHandler : public InputEventHandlerBase { protected: + // instantiate our policy: typedef USE_POLICY(input_policy::detail::InputEventHandlerPolicyBase) policy_type; policy_type policy; |
