xselinux: Move the extension to extmod instead of being built-in.
This commit is contained in:
parent
f6a78ee143
commit
e915a26397
|
@ -76,7 +76,7 @@ endif
|
|||
# requires X-ACE extension
|
||||
XSELINUX_SRCS = xselinux.c xselinux.h
|
||||
if XSELINUX
|
||||
BUILTIN_SRCS += $(XSELINUX_SRCS)
|
||||
MODULE_SRCS += $(XSELINUX_SRCS)
|
||||
endif
|
||||
|
||||
# Security extension: multi-level security to protect clients from each other
|
||||
|
|
|
@ -38,6 +38,15 @@ static MODULESETUPPROTO(extmodSetup);
|
|||
* Array describing extensions to be initialized
|
||||
*/
|
||||
static ExtensionModule extensionModules[] = {
|
||||
#ifdef XSELINUX
|
||||
{
|
||||
SELinuxExtensionInit,
|
||||
SELINUX_EXTENSION_NAME,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
},
|
||||
#endif
|
||||
#ifdef SHAPE
|
||||
{
|
||||
ShapeExtensionInit,
|
||||
|
|
|
@ -127,6 +127,7 @@ extern void ShmRegisterFuncs(
|
|||
|
||||
#ifdef XSELINUX
|
||||
extern void SELinuxExtensionInit(INITARGS);
|
||||
#include "xselinux.h"
|
||||
#endif
|
||||
|
||||
#if 1
|
||||
|
|
|
@ -690,9 +690,6 @@ static ExtensionModule staticExtensions[] = {
|
|||
#ifdef XCSECURITY
|
||||
{ SecurityExtensionInit, SECURITY_EXTENSION_NAME, &noSecurityExtension, NULL, NULL },
|
||||
#endif
|
||||
#ifdef XSELINUX
|
||||
{ SELinuxExtensionInit, SELINUX_EXTENSION_NAME, NULL, NULL, NULL },
|
||||
#endif
|
||||
#ifdef XPRINT
|
||||
{ XpExtensionInit, XP_PRINTNAME, NULL, NULL, NULL },
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user