Home
last modified time | relevance | path

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

/third_party/eudev/src/shared/
Dsmack-util.c37 static int cached_use = -1; in mac_smack_use() local
39 if (cached_use < 0) in mac_smack_use()
40 cached_use = access("/sys/fs/smackfs/", F_OK) >= 0; in mac_smack_use()
42 return cached_use; in mac_smack_use()
Dselinux-util.c43 static int cached_use = -1; variable
51 if (cached_use < 0) in mac_selinux_use()
52 cached_use = is_selinux_enabled() > 0; in mac_selinux_use()
54 return cached_use; in mac_selinux_use()
62 cached_use = -1; in mac_selinux_retest()