Searched refs:cached_use (Results 1 – 6 of 6) sorted by relevance
72 static int cached_use = -1; in use_audit() local74 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()
8 static int cached_use = -1; in mac_tomoyo_use() local10 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()
11 static int cached_use = -1; in mac_apparmor_use() local13 if (cached_use < 0) { in mac_apparmor_use()16 cached_use = in mac_apparmor_use()21 return cached_use; in mac_apparmor_use()
37 static int cached_use = -1; variable61 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()
28 static int cached_use = -1; in mac_smack_use() local30 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()
95 static int cached_use = -1; in mac_bpf_use() local98 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()