]> git.neil.brown.name Git - history.git/commit
[PATCH] mqueue permission fix
authorAndrew Morton <akpm@osdl.org>
Sat, 17 Apr 2004 10:29:22 +0000 (03:29 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 17 Apr 2004 10:29:22 +0000 (03:29 -0700)
commit25aa73df408537bcdbfcafd08ee2696b0db90edc
treed659249850eb8de325e7c3d2b55f73761792eca1
parent485583e1488ed55b3ee2d52e4ef238ae647966d2
[PATCH] mqueue permission fix

From: Manfred Spraul <manfred@colorfullife.com>

Any user can delete any entries in a mqueue mounted filesystem.  The attached
patch prevents that.

- remove the writable test from mq_unlink.

- set the sticky bit in the root inode.  This affects both mq_unlink and
  sys_unlink: only the owner (and root) should be allowed to remove queues.
ipc/mqueue.c