diff options
author | katzj <katzj> | 2005-06-23 20:00:45 +0000 |
---|---|---|
committer | katzj <katzj> | 2005-06-23 20:00:45 +0000 |
commit | 150ffab02a44a80df533feb6c7bc854be57cdeda (patch) | |
tree | 45a0859bb82c00c97554e530668c1a1178423d13 /src | |
parent | 8c96aadf4e9ee140ce5dba4257799f38c70a10a8 (diff) | |
download | mock-150ffab02a44a80df533feb6c7bc854be57cdeda.tar.gz mock-150ffab02a44a80df533feb6c7bc854be57cdeda.tar.xz mock-150ffab02a44a80df533feb6c7bc854be57cdeda.zip |
don't do the libselinux preload if selinux is disabled
Diffstat (limited to 'src')
-rw-r--r-- | src/mock-helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mock-helper.c b/src/mock-helper.c index 2ed77c6..3697633 100644 --- a/src/mock-helper.c +++ b/src/mock-helper.c @@ -163,7 +163,7 @@ do_command (const char *filename, char *const argv[]) #ifdef USE_SELINUX /* add LD_PRELOAD for our selinux lib if selinux is in use is set */ - if (is_selinux_enabled() != -1) + if (is_selinux_enabled() > 0) { ld_preload = strdup("LD_PRELOAD=libselinux-mock.so"); printf("adding ld_preload of %s\n", ld_preload); |