<<On Tue, 24 Dec 2002 15:43:56 +0100, [EMAIL PROTECTED] said:

> There is no way you can close the race between:

>       revoke("/dev/ttyfoo");
> and
>       open("/dev/ttyfoo");

> Not even in init(8).  There is always the risk that another process
> opens the device between the two.

If that process belongs to root then it doesn't matter.

If that process belongs to the user who's logging in, then it doesn't
matter (the user can hose himself, but that's his own fault).

If that process belongs to someone else, then the permissions on the
device are set wrong, and that's a security problem that revoke()
isn't trying to fix.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to