summaryrefslogtreecommitdiff
path: root/src/label.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-07-29 01:48:18 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-29 01:49:46 +0200
commit4ef31082884e1c8df8887a8f53c428a894d53fb7 (patch)
tree112821cafe4970869ddc9e29e5695e4b3002e427 /src/label.c
parent0b3325e79eb98f2e5bc19a1b0efd99e693b31a99 (diff)
selinux: mount /sys, /proc, /dev before we load the SELinux policy
Diffstat (limited to 'src/label.c')
-rw-r--r--src/label.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/label.c b/src/label.c
index b34ee2d3dc..a5994622c7 100644
--- a/src/label.c
+++ b/src/label.c
@@ -34,12 +34,12 @@
static struct selabel_handle *label_hnd = NULL;
static inline bool use_selinux(void) {
- static int use_selinux_ind = -1;
+ static int use_selinux_cached = -1;
- if (use_selinux_ind < 0)
- use_selinux_ind = is_selinux_enabled() > 0;
+ if (use_selinux_cached < 0)
+ use_selinux_cached = is_selinux_enabled() > 0;
- return use_selinux_ind;
+ return use_selinux_cached;
}
#endif