[RFC 1/3] security: Add safe, dynamic (runtime-loadable) hook support

2017-11-26 Thread Sargun Dhillon
This patch adds dynamic security hooks. These hooks are designed to allow for safe runtime loading, and unloading. Each dynamic_security_hook is protected by an SRCU, allowing for arbitrary computation inside of the callback. Concurrency-control, loading, and unloading is done on a

[RFC 1/3] security: Add safe, dynamic (runtime-loadable) hook support

2017-11-26 Thread Sargun Dhillon
This patch adds dynamic security hooks. These hooks are designed to allow for safe runtime loading, and unloading. Each dynamic_security_hook is protected by an SRCU, allowing for arbitrary computation inside of the callback. Concurrency-control, loading, and unloading is done on a