Rivoreo Source Code Repositories
src.rivoreo.one
/
systemd-stable
/
v239-28
/
.
/
src
/
shared
/
ima-util.c
blob: 0d4ce3cafcb9b7c6bc75bbdd54386b86d66c760e [
file
] [
log
] [
blame
] [
raw
]
/* SPDX-License-Identifier: LGPL-2.1+ */
#include
<unistd.h>
#include
"ima-util.h"
static
int
use_ima_cached
=
-
1
;
bool
use_ima
(
void
)
{
if
(
use_ima_cached
<
0
)
use_ima_cached
=
access
(
"/sys/kernel/security/ima/"
,
F_OK
)
>=
0
;
return
use_ima_cached
;
}