summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSebastien Braun2010-10-10 01:42:18 +0200
committerSebastien Braun2010-10-10 14:05:37 +0200
commite659552d9b4c3889522d018e76c00adbe507d045 (patch)
tree2f5b743ffb553356ab9d0494411983f7f4269d79 /src
parentIntroduce an implicit logical AND into Require policy (diff)
downloadpvs-e659552d9b4c3889522d018e76c00adbe507d045.tar.gz
pvs-e659552d9b4c3889522d018e76c00adbe507d045.tar.xz
pvs-e659552d9b4c3889522d018e76c00adbe507d045.zip
Add some comments to inputEventHandler.h
Diffstat (limited to 'src')
-rw-r--r--src/input/inputEventHandler.h7
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;