aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Zaman <jason@perfinion.com>2016-03-06 16:22:51 +0800
committerWilliam Hubbs <w.d.hubbs@gmail.com>2016-05-13 12:52:21 -0500
commit3fa9015b8e5610d38366f781a08789e34159b0dc (patch)
treebb42cbe9be46101bd96d26267b8ec56c7411a682
parent3b5a8b331e81ecd9a9362553c16f4527291d5528 (diff)
rc-selinux: access check was backwards
-rw-r--r--src/rc/rc-selinux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/rc-selinux.c b/src/rc/rc-selinux.c
index ed89be1e..a792fe28 100644
--- a/src/rc/rc-selinux.c
+++ b/src/rc/rc-selinux.c
@@ -370,7 +370,7 @@ void selinux_setup(char **argv)
* which will open the pty with initrc_devpts_t, if it doesnt exist,
* fall back to plain exec
*/
- if (access("/usr/sbin/open_init_pty", X_OK)) {
+ if (!access("/usr/sbin/open_init_pty", X_OK)) {
if (execvp("/usr/sbin/open_init_pty", argv)) {
perror("execvp");
exit(-1);