Skip to content

Commit 6907e37

Browse files
keesJames Morris
authored andcommitted
LSM: Remove initcall tracing
This partially reverts commit 58eacff ("init, tracing: instrument security and console initcall trace events") since security init calls are about to no longer resemble regular init calls. Signed-off-by: Kees Cook <keescook@chromium.org> Reviewed-by: Casey Schaufler <casey@schaufler-ca.com> Reviewed-by: James Morris <james.morris@microsoft.com> Signed-off-by: James Morris <james.morris@microsoft.com>
1 parent b048ae6 commit 6907e37

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

security/security.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
#include <linux/string.h>
3131
#include <net/flow.h>
3232

33-
#include <trace/events/initcall.h>
34-
3533
#define MAX_LSM_EVM_XATTR 2
3634

3735
/* Maximum number of letters for an LSM name string */
@@ -47,17 +45,13 @@ static __initdata char chosen_lsm[SECURITY_NAME_MAX + 1] =
4745

4846
static void __init do_security_initcalls(void)
4947
{
50-
int ret;
5148
initcall_t call;
5249
initcall_entry_t *ce;
5350

5451
ce = __start_lsm_info;
55-
trace_initcall_level("security");
5652
while (ce < __end_lsm_info) {
5753
call = initcall_from_entry(ce);
58-
trace_initcall_start(call);
59-
ret = call();
60-
trace_initcall_finish(call, ret);
54+
call();
6155
ce++;
6256
}
6357
}

0 commit comments

Comments
 (0)