Gitiles
Code Review
Sign In
192.168.1.100
/
T108
/
e958203796650e3959a43708d67534bf36f4c83b
/
.
/
external
/
subpack
/
utils
/
prometheus-node-exporter-ucode
/
files
/
base
/
selinux.uc
blob: 11840a8305b8b794786cdb22b04a565c5a3d2714 [
file
] [
log
] [
blame
]
const
mode
=
oneline
(
"/sys/fs/selinux/enforce"
);
const
enabled
=
gauge
(
"node_selinux_enabled"
);
if
(
mode
==
null
)
{
enabled
(
null
,
0
);
return
;
}
enabled
(
null
,
1
);
gauge
(
"node_selinux_current_mode"
)(
null
,
mode
);