Exploit database

GH-a4473dcd9930d1ae4c0775adc06b1cfb

satheesh575555/linux-4.19.72_cve-2022-36946

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2022-36946

2 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files17

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

security/selinux/exports.c

C · 709 bytes
/*
 * SELinux services exported to the rest of the kernel.
 *
 * Author: James Morris <[email protected]>
 *
 * Copyright (C) 2005 Red Hat, Inc., James Morris <[email protected]>
 * Copyright (C) 2006 Trusted Computer Solutions, Inc. <[email protected]>
 * Copyright (C) 2006 IBM Corporation, Timothy R. Chavez <[email protected]>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2,
 * as published by the Free Software Foundation.
 */
#include <linux/module.h>
#include <linux/selinux.h>

#include "security.h"

bool selinux_is_enabled(void)
{
	return selinux_enabled;
}
EXPORT_SYMBOL_GPL(selinux_is_enabled);