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

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

Merge "RTIC: Move selinux_state to a separate 4k"

parents 6a326ce1 55c09c9b
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -5,6 +5,15 @@
 * Written by Martin Mares <mj@atrey.karlin.mff.cuni.cz>
 */

#ifdef CONFIG_QCOM_RTIC
#define BSS_FIRST_SECTIONS				\
	. = ALIGN(PAGE_SIZE);				\
	KEEP(*(.bss.rtic))				\
	. = ALIGN(PAGE_SIZE);
#else
#define BSS_FIRST_SECTIONS
#endif

#include <asm-generic/vmlinux.lds.h>
#include <asm/cache.h>
#include <asm/kernel-pgtable.h>
+4 −0
Original line number Diff line number Diff line
@@ -322,6 +322,10 @@ void __init parse_early_options(char *cmdline);
/* Data marked not to be saved by software suspend */
#define __nosavedata __section(.data..nosave)

#ifdef CONFIG_QCOM_RTIC
#define __rticdata  __section(.bss.rtic)
#endif

#ifdef MODULE
#define __exit_p(x) x
#else
+4 −0
Original line number Diff line number Diff line
@@ -103,7 +103,11 @@
#include "audit.h"
#include "avc_ss.h"

#ifdef CONFIG_QCOM_RTIC
struct selinux_state selinux_state __rticdata;
#else
struct selinux_state selinux_state;
#endif

/* SECMARK reference count */
static atomic_t selinux_secmark_refcount = ATOMIC_INIT(0);