diff options
author | Jason Zaman <jason@perfinion.com> | 2016-03-06 16:22:51 +0800 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2016-05-13 12:52:21 -0500 |
commit | 3fa9015b8e5610d38366f781a08789e34159b0dc (patch) | |
tree | bb42cbe9be46101bd96d26267b8ec56c7411a682 | |
parent | 3b5a8b331e81ecd9a9362553c16f4527291d5528 (diff) |
rc-selinux: access check was backwards
-rw-r--r-- | src/rc/rc-selinux.c | 2 |
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); |