lkml.org 
[lkml]   [1996]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: real POSIX.1b semaphores
From
Date

"Theodore Y. Ts'o" <tytso@MIT.EDU> writes:

> Err.... be careful about the security issues. It should not be possible
> for a process which doesn't have access to a semaphore to just go into
> the shared page and much with the sempahores. This pretty much tosses
> out any idea where you use a single global page for all sempahores.....

Unfortunately there are not many security consideration in the POSIX
semaphores. Either they are process local or they are available
for any process. I read the section about semaphores twice and
found no sign for protection.

Gallmeister's book speaks about protection for named semaphores (and
it sounds reasonable). Nothing is specified for memory semaphores.
This really seems to be a whole in the standard.

Oh well. But since it is not specified otherwise we might allow
every process to read the value of a semaphore. Since the changing
(wait or post) happens in the kernel the later can perform the
needed verification.

-- Uli
--------------. drepper@cygnus.com ,-. Rubensstrasse 5
Ulrich Drepper \ ,--------------------' \ 76149 Karlsruhe/Germany
Cygnus Support `--' drepper@gnu.ai.mit.edu `------------------------

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.069 / U:0.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site