diff options
| author | Sebastien Braun | 2010-10-05 15:15:36 +0200 |
|---|---|---|
| committer | Sebastien Braun | 2010-10-05 18:15:50 +0200 |
| commit | ee159229bcfb6f2dbd19ef16e37fa2c65cd3846d (patch) | |
| tree | 2a2abe7105f23acc4dee555eb3a6e2ca77fe1ff8 /src/input/inputEventHandler.h | |
| parent | Refactor InputEvent handler code. (diff) | |
| download | pvs-ee159229bcfb6f2dbd19ef16e37fa2c65cd3846d.tar.gz pvs-ee159229bcfb6f2dbd19ef16e37fa2c65cd3846d.tar.xz pvs-ee159229bcfb6f2dbd19ef16e37fa2c65cd3846d.zip | |
Add Permission checking and session information code.
Diffstat (limited to 'src/input/inputEventHandler.h')
| -rw-r--r-- | src/input/inputEventHandler.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/input/inputEventHandler.h b/src/input/inputEventHandler.h index 330f5a7..a0ada2e 100644 --- a/src/input/inputEventHandler.h +++ b/src/input/inputEventHandler.h @@ -100,6 +100,10 @@ struct Security { bool allow(InputEvent const& evt, InputEventContext const* ctx) { + if((flags & SEC_PHYSICAL_SEAT) && !allowPhysicalSeat(evt, ctx)) + return false; + if((flags & SEC_PRIVILEGED_USER) && !allowPrivilegedUser(evt, ctx)) + return false; return true; } }; |
