From 3fa9015b8e5610d38366f781a08789e34159b0dc Mon Sep 17 00:00:00 2001 From: Jason Zaman Date: Sun, 6 Mar 2016 16:22:51 +0800 Subject: rc-selinux: access check was backwards --- src/rc/rc-selinux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3