diff options
Diffstat (limited to 'security/security.c')
-rw-r--r-- | security/security.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/security/security.c b/security/security.c index d2a84cda7e8d..7bc2fde023a7 100644 --- a/security/security.c +++ b/security/security.c | |||
@@ -30,6 +30,8 @@ | |||
30 | #include <linux/string.h> | 30 | #include <linux/string.h> |
31 | #include <net/flow.h> | 31 | #include <net/flow.h> |
32 | 32 | ||
33 | #include <trace/events/initcall.h> | ||
34 | |||
33 | #define MAX_LSM_EVM_XATTR 2 | 35 | #define MAX_LSM_EVM_XATTR 2 |
34 | 36 | ||
35 | /* Maximum number of letters for an LSM name string */ | 37 | /* Maximum number of letters for an LSM name string */ |
@@ -45,10 +47,14 @@ static __initdata char chosen_lsm[SECURITY_NAME_MAX + 1] = | |||
45 | 47 | ||
46 | static void __init do_security_initcalls(void) | 48 | static void __init do_security_initcalls(void) |
47 | { | 49 | { |
50 | int ret; | ||
48 | initcall_t *call; | 51 | initcall_t *call; |
49 | call = __security_initcall_start; | 52 | call = __security_initcall_start; |
53 | trace_initcall_level("security"); | ||
50 | while (call < __security_initcall_end) { | 54 | while (call < __security_initcall_end) { |
51 | (*call) (); | 55 | trace_initcall_start((*call)); |
56 | ret = (*call) (); | ||
57 | trace_initcall_finish((*call), ret); | ||
52 | call++; | 58 | call++; |
53 | } | 59 | } |
54 | } | 60 | } |