Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd4936b2 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "selinux: Relocate ss_initialized and selinux_enforcing to separate 4k"

parents 7c6bc756 d4807bd6
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -68,6 +68,12 @@ jiffies = jiffies_64;
#define TRAMP_TEXT
#endif

#define RTIC_BSS					\
	. = ALIGN(PAGE_SIZE);				\
	VMLINUX_SYMBOL(__bss_rtic_start) = .;	\
	KEEP(*(.bss.rtic))			\
	. = ALIGN(PAGE_SIZE);				\
	VMLINUX_SYMBOL(__bss_rtic_end) = .;
/*
 * The size of the PE/COFF section that covers the kernel image, which
 * runs from stext to _edata, must be a round multiple of the PE/COFF
@@ -237,6 +243,10 @@ SECTIONS
	STABS_DEBUG

	HEAD_SYMBOLS

	.bss : {			/* bss segment		*/
         RTIC_BSS
	}
}

/*
+2 −0
Original line number Diff line number Diff line
@@ -289,6 +289,8 @@ void __init parse_early_options(char *cmdline);
/* Data marked not to be saved by software suspend */
#define __nosavedata __section(.data..nosave)

#define __rticdata  __attribute__((section(".bss.rtic")))

#ifdef MODULE
#define __exit_p(x) x
#else
+1 −1
Original line number Diff line number Diff line
@@ -102,7 +102,7 @@
static atomic_t selinux_secmark_refcount = ATOMIC_INIT(0);

#ifdef CONFIG_SECURITY_SELINUX_DEVELOP
int selinux_enforcing;
int selinux_enforcing __rticdata;

static int __init enforcing_setup(char *str)
{
+1 −1
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ static DEFINE_RWLOCK(policy_rwlock);

static struct sidtab sidtab;
struct policydb policydb;
int ss_initialized;
int ss_initialized __rticdata;

/*
 * The largest sequence number that has been used when