• Andrew Morton's avatar
    [PATCH] mqueue permission fix · 25aa73df
    Andrew Morton authored
    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.
    25aa73df
mqueue.c 27.9 KB