]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/tomoyo-util.c
tree-wide: beautify remaining copyright statements
[thirdparty/systemd.git] / src / shared / tomoyo-util.c
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 /***
3 Copyright © 2017 Shawn Landden
4 ***/
5
6 #include <unistd.h>
7
8 #include "tomoyo-util.h"
9
10 bool mac_tomoyo_use(void) {
11 static int cached_use = -1;
12
13 if (cached_use < 0)
14 cached_use = (access("/sys/kernel/security/tomoyo/version",
15 F_OK) == 0);
16
17 return cached_use;
18 }