mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
lsm: move the perf hook comments to security/security.c
This patch relocates the LSM hook function comments to the function definitions, in keeping with the current kernel conventions. This should make the hook descriptions more easily discoverable and easier to maintain. While formatting changes have been done to better fit the kernel-doc style, content changes have been kept to a minimum and limited to text which was obviously incorrect and/or outdated. It is expected the future patches will improve the quality of the function header comments. Acked-by: Casey Schaufler <casey@schaufler-ca.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
@@ -196,23 +196,6 @@
|
||||
* @what: kernel feature being accessed.
|
||||
* Return 0 if permission is granted.
|
||||
*
|
||||
* Security hooks for perf events
|
||||
*
|
||||
* @perf_event_open:
|
||||
* Check whether the @type of perf_event_open syscall is allowed.
|
||||
* Return 0 if permission is granted.
|
||||
* @perf_event_alloc:
|
||||
* Allocate and save perf_event security info.
|
||||
* Return 0 on success, error on failure.
|
||||
* @perf_event_free:
|
||||
* Release (free) perf_event security info.
|
||||
* @perf_event_read:
|
||||
* Read perf_event security info if allowed.
|
||||
* Return 0 if permission is granted.
|
||||
* @perf_event_write:
|
||||
* Write perf_event security info if allowed.
|
||||
* Return 0 if permission is granted.
|
||||
*
|
||||
* Security hooks for io_uring
|
||||
*
|
||||
* @uring_override_creds:
|
||||
|
||||
Reference in New Issue
Block a user