Home
last modified time | relevance | path

Searched refs:cached_use (Results 1 – 6 of 6) sorted by relevance

/systemd-251/src/basic/
Daudit-util.c72 static int cached_use = -1; in use_audit() local
74 if (cached_use < 0) { in use_audit()
79 cached_use = !IN_SET(errno, EAFNOSUPPORT, EPROTONOSUPPORT, EPERM); in use_audit()
80 if (!cached_use) in use_audit()
83 cached_use = true; in use_audit()
88 return cached_use; in use_audit()
/systemd-251/src/shared/
Dtomoyo-util.c8 static int cached_use = -1; in mac_tomoyo_use() local
10 if (cached_use < 0) in mac_tomoyo_use()
11 cached_use = (access("/sys/kernel/security/tomoyo/version", in mac_tomoyo_use()
14 return cached_use; in mac_tomoyo_use()
Dapparmor-util.c11 static int cached_use = -1; in mac_apparmor_use() local
13 if (cached_use < 0) { in mac_apparmor_use()
16 cached_use = in mac_apparmor_use()
21 return cached_use; in mac_apparmor_use()
Dselinux-util.c37 static int cached_use = -1; variable
61 if (_unlikely_(cached_use < 0)) { in mac_selinux_use()
62 cached_use = is_selinux_enabled() > 0; in mac_selinux_use()
63 … log_debug("SELinux enabled state cached to: %s", cached_use ? "enabled" : "disabled"); in mac_selinux_use()
66 return cached_use; in mac_selinux_use()
90 cached_use = -1; in mac_selinux_retest()
Dsmack-util.c28 static int cached_use = -1; in mac_smack_use() local
30 if (cached_use < 0) in mac_smack_use()
31 cached_use = access("/sys/fs/smackfs/", F_OK) >= 0; in mac_smack_use()
33 return cached_use; in mac_smack_use()
/systemd-251/src/core/
Dbpf-lsm.c95 static int cached_use = -1; in mac_bpf_use() local
98 if (cached_use >= 0) in mac_bpf_use()
99 return cached_use; in mac_bpf_use()
101 cached_use = 0; in mac_bpf_use()
124 return cached_use = 1; in mac_bpf_use()