2 Jan 2010 14:04
[RFC 8/9] snet: introduce snet_verdict.c and snet_verdict.h
Samir Bellabes <sam <at> synack.fr>
2010-01-02 13:04:15 GMT
2010-01-02 13:04:15 GMT
This patch adds the snet's subsystem responsive of managing verdicts snet is using the word 'verdict' for the returning value of LSM hooks. Different states exist (grant/deny/pending/none). This patch introduces a hashtable 'verdict_hash' and operations (set/get/search..) in order to manage verdicts. Syscalls are waiting, inside a classical waitqueue, for theirs verdicts or for a timeout. Timeout value and the default verdict policy are configurable at boot. With the help of the communication's subsystem, verdicts are coming from userspace. Signed-off-by: Samir Bellabes <sam <at> synack.fr> --- security/snet/include/snet_verdict.h | 33 ++++++ security/snet/snet_verdict.c | 210 ++++++++++++++++++++++++++++++++++ 2 files changed, 243 insertions(+), 0 deletions(-) create mode 100644 security/snet/include/snet_verdict.h create mode 100644 security/snet/snet_verdict.c diff --git a/security/snet/include/snet_verdict.h b/security/snet/include/snet_verdict.h new file mode 100644 index 0000000..fd9a5e5 --- /dev/null +++ b/security/snet/include/snet_verdict.h <at> <at> -0,0 +1,33 <at> <at> +#ifndef _SNET_VERDICT_H +#define _SNET_VERDICT_H + +extern unsigned int verdict_hash_size; +extern unsigned int snet_verdict_delay;(Continue reading)
RSS Feed