Skip to content

Commit 1b8b719

Browse files
austindhkimmicah-morton
authored andcommitted
LSM: SafeSetID: Mark safesetid_initialized as __initdata
Mark safesetid_initialized as __initdata since it is only used in initialization routine. Signed-off-by: Austin Kim <[email protected]> Signed-off-by: Micah Morton <[email protected]>
1 parent 614124b commit 1b8b719

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

security/safesetid/lsm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "lsm.h"
2323

2424
/* Flag indicating whether initialization completed */
25-
int safesetid_initialized;
25+
int safesetid_initialized __initdata;
2626

2727
struct setid_ruleset __rcu *safesetid_setuid_rules;
2828
struct setid_ruleset __rcu *safesetid_setgid_rules;

security/safesetid/lsm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <linux/hashtable.h>
2020

2121
/* Flag indicating whether initialization completed */
22-
extern int safesetid_initialized;
22+
extern int safesetid_initialized __initdata;
2323

2424
enum sid_policy_type {
2525
SIDPOL_DEFAULT, /* source ID is unaffected by policy */

0 commit comments

Comments
 (0)