Exploit databaseDownload repository ZIP
GH-1813a0de211df53e0dda1f9ab58c9f9c
0xkol/badspin
Sources for CVE-2022-20421
3 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files26
0xkol/badspinRevision 5db87120b221
- ↑..Parent directory
- policydb/
- boolean_record.h
- booleans.h
- context.h
- context_record.h
- debug.h
- errcodes.h
- handle.h
- ibendport_record.h
- ibendports.h
- ibpkey_record.h
- ibpkeys.h
- iface_record.h
- interfaces.h
- kernel_to_cil.h
- kernel_to_conf.h
- module.h
- module_to_cil.h
- node_record.h
- nodes.h
- policydb.h
- port_record.h
- ports.h
- sepol.h
- user_record.h
- users.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/libsepol/include/sepol/handle.h
Text · 1,393 bytes#ifndef _SEPOL_HANDLE_H_
#define _SEPOL_HANDLE_H_
#ifdef __cplusplus
extern "C" {
#endif
struct sepol_handle;
typedef struct sepol_handle sepol_handle_t;
/* Create and return a sepol handle. */
sepol_handle_t *sepol_handle_create(void);
/* Get whether or not dontaudits will be disabled, same values as
* specified by set_disable_dontaudit. This value reflects the state
* your system will be set to upon commit, not necessarily its
* current state.*/
int sepol_get_disable_dontaudit(sepol_handle_t * sh);
/* Set whether or not to disable dontaudits, 0 is default and does
* not disable dontaudits, 1 disables them */
void sepol_set_disable_dontaudit(sepol_handle_t * sh, int disable_dontaudit);
/* Set whether module_expand() should consume the base policy passed in.
* This should reduce the amount of memory required to expand the policy. */
void sepol_set_expand_consume_base(sepol_handle_t * sh, int consume_base);
/* Destroy a sepol handle. */
void sepol_handle_destroy(sepol_handle_t *);
/* Get whether or not needless unused branch of tunables would be preserved */
int sepol_get_preserve_tunables(sepol_handle_t * sh);
/* Set whether or not to preserve the needless unused branch of tunables,
* 0 is default and discard such branch, 1 preserves them */
void sepol_set_preserve_tunables(sepol_handle_t * sh, int preserve_tunables);
#ifdef __cplusplus
}
#endif
#endif