diff options
Diffstat (limited to 'sys-cluster/heartbeat/files/heartbeat-2.0.4-fix-local-DOS-attack.patch')
-rw-r--r-- | sys-cluster/heartbeat/files/heartbeat-2.0.4-fix-local-DOS-attack.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys-cluster/heartbeat/files/heartbeat-2.0.4-fix-local-DOS-attack.patch b/sys-cluster/heartbeat/files/heartbeat-2.0.4-fix-local-DOS-attack.patch new file mode 100644 index 000000000000..c688e2964661 --- /dev/null +++ b/sys-cluster/heartbeat/files/heartbeat-2.0.4-fix-local-DOS-attack.patch @@ -0,0 +1,11 @@ +--- heartbeat-2.0.4/heartbeat/heartbeat.c.orig 2006-02-24 17:52:26.000000000 +0100 ++++ heartbeat-2.0.4/heartbeat/heartbeat.c 2006-07-24 20:11:14.000000000 +0200 +@@ -502,7 +502,7 @@ + int ipcid; + struct pstat_shm * shm; + +- if ((ipcid = shmget(IPC_PRIVATE, sizeof(*procinfo), 0666)) < 0) { ++ if ((ipcid = shmget(IPC_PRIVATE, sizeof(*procinfo), 0600)) < 0) { + cl_perror("Cannot shmget for process status"); + return; + } |