Patch to fix ipc segfault when user with inappropriate permissions
accesses aisexec.
Regards
-steve
Index: exec/ipc.c
===================================================================
--- exec/ipc.c (revision 1661)
+++ exec/ipc.c (working copy)
@@ -936,6 +936,8 @@
}
if (conn_io->state == CONN_IO_STATE_INITIALIZING) {
log_printf (LOG_LEVEL_SECURITY, "Connection not authenticated because gid is %d, expecting %d\n", egid, g_gid_valid);
+ conn_io->state = CONN_IO_STATE_INIT_FAILED;
+ return;
}
}
#endif
@@ -1012,6 +1014,8 @@
}
if (conn_io->state == CONN_IO_STATE_INITIALIZING) {
log_printf (LOG_LEVEL_SECURITY, "Connection not authenticated because gid is %d, expecting %d\n", cred->gid, g_gid_valid);
+ conn_io->state = CONN_IO_STATE_INIT_FAILED;
+ return;
}
}
#endif
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais