diff options
author | Mickaël Salaün <mic@digikod.net> | 2024-03-07 12:39:23 +0300 |
---|---|---|
committer | Mickaël Salaün <mic@digikod.net> | 2024-03-08 20:22:16 +0300 |
commit | e3e37fe022a486d83c71eacb59fb5b6b0ebdbf78 (patch) | |
tree | a311a8f53d93c571dd90666ffdfc90eeababb0da /security/landlock/task.h | |
parent | 088e2efaf3d25be67f5dbcc26cfe08d7797dff39 (diff) | |
download | linux-e3e37fe022a486d83c71eacb59fb5b6b0ebdbf78.tar.xz |
landlock: Rename "ptrace" files to "task"
ptrace.[ch] are currently only used for the ptrace LSM hooks but their
scope will expand with IPCs and audit support. Rename ptrace.[ch] to
task.[ch], which better reflect their content. Similarly, rename
landlock_add_ptrace_hooks() to landlock_add_task_hooks(). Keep header
files for now.
Cc: Günther Noack <gnoack@google.com>
Cc: Paul Moore <paul@paul-moore.com>
Link: https://lore.kernel.org/r/20240307093923.1466071-2-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'security/landlock/task.h')
-rw-r--r-- | security/landlock/task.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/security/landlock/task.h b/security/landlock/task.h new file mode 100644 index 000000000000..7c00360219a2 --- /dev/null +++ b/security/landlock/task.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Landlock LSM - Ptrace hooks + * + * Copyright © 2017-2019 Mickaël Salaün <mic@digikod.net> + * Copyright © 2019 ANSSI + */ + +#ifndef _SECURITY_LANDLOCK_TASK_H +#define _SECURITY_LANDLOCK_TASK_H + +__init void landlock_add_task_hooks(void); + +#endif /* _SECURITY_LANDLOCK_TASK_H */ |