Commit 1b8b7192 authored by Austin Kim's avatar Austin Kim Committed by Micah Morton
Browse files

LSM: SafeSetID: Mark safesetid_initialized as __initdata



Mark safesetid_initialized as __initdata since it is only used
in initialization routine.

Signed-off-by: default avatarAustin Kim <austindh.kim@gmail.com>
Signed-off-by: default avatarMicah Morton <mortonm@chromium.org>
parent 614124be
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@
#include "lsm.h"

/* Flag indicating whether initialization completed */
int safesetid_initialized;
int safesetid_initialized __initdata;

struct setid_ruleset __rcu *safesetid_setuid_rules;
struct setid_ruleset __rcu *safesetid_setgid_rules;
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@
#include <linux/hashtable.h>

/* Flag indicating whether initialization completed */
extern int safesetid_initialized;
extern int safesetid_initialized __initdata;

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