Skip to content

Commit

Permalink
LSM: Remove initcall tracing
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Casey Schaufler <[email protected]>
Reviewed-by: James Morris <[email protected]>
Signed-off-by: James Morris <[email protected]>
  • Loading branch information
kees authored and James Morris committed Oct 11, 2018
1 parent b048ae6 commit 6907e37
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions security/security.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
#include <linux/string.h>
#include <net/flow.h>

#include <trace/events/initcall.h>

#define MAX_LSM_EVM_XATTR 2

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

static void __init do_security_initcalls(void)
{
int ret;
initcall_t call;
initcall_entry_t *ce;

ce = __start_lsm_info;
trace_initcall_level("security");
while (ce < __end_lsm_info) {
call = initcall_from_entry(ce);
trace_initcall_start(call);
ret = call();
trace_initcall_finish(call, ret);
call();
ce++;
}
}
Expand Down

0 comments on commit 6907e37

Please sign in to comment.