diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2015-03-25 00:57:05 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2015-03-25 01:01:38 -0500 |
commit | a4cf61e8bf827dc405a547c314e840dab11fc979 (patch) | |
tree | 7a9d9c900ec5dd0940159e7e9a13bb22148f800a /src/rc/runscript.c | |
parent | d38cc8f2210e839c4935208917138e4809ece758 (diff) |
selinux: unconditionally include the header and provide stub methods
If selinux is disabled, then stub methods will be provided instead of
calling the real methods. This removes some warnings about unused
parameters which used to be covered up with #ifdef HAVE_SELINUX.
Signed-off-by: Jason Zaman <jason@perfinion.com>
Diffstat (limited to 'src/rc/runscript.c')
-rw-r--r-- | src/rc/runscript.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/rc/runscript.c b/src/rc/runscript.c index 0ac19661..e59c6aed 100644 --- a/src/rc/runscript.c +++ b/src/rc/runscript.c @@ -66,10 +66,7 @@ #include "rc.h" #include "rc-misc.h" #include "rc-plugin.h" - -#ifdef HAVE_SELINUX #include "rc-selinux.h" -#endif #define PREFIX_LOCK RC_SVCDIR "/prefix.lock" @@ -1191,10 +1188,8 @@ openrc_run(int argc, char **argv) eprefix(prefix); } -#ifdef HAVE_SELINUX /* Ok, we are ready to go, so setup selinux if applicable */ selinux_setup(argv); -#endif deps = true; |