[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openais
Subject:    [Openais] [patch whitetank] ipc segfault
From:       Steven Dake <sdake () redhat ! com>
Date:       2008-11-24 21:35:10
Message-ID: 1227562510.6754.6.camel () balance
[Download RAW message or body]

Patch to fix ipc segfault when user with inappropriate permissions
accesses aisexec.

Regards
-steve


["whitetank-ipc-segfault.patch" (whitetank-ipc-segfault.patch)]

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
Openais@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/openais

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic