shm creation: use temporary name with O_CREAT | O_EXCL
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 29 Aug 2011 14:07:37 +0000 (10:07 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 29 Aug 2011 14:07:37 +0000 (10:07 -0400)
commit8da6cd6d27941d7b3b67ea1878e32a0c20206468
treecec7572899dd7465beb0db53a36a6a5bbd455bfc
parentb5a146978c14a3b7e690996ac129ce8f7e0f2bad
shm creation: use temporary name with O_CREAT | O_EXCL

Tolerate that a rogue process could try inhibiting buffer creation by
reserving the shm name. Fix this by using a random suffix.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libringbuffer/shm.c
This page took 0.024796 seconds and 4 git commands to generate.