Re: Proposed change to route(4) sockets to make them available to non-superuser

From: Garrett Wollman (wollman@khavrinen.lcs.mit.edu)
Date: 08/30/01


Date: Thu, 30 Aug 2001 14:20:16 -0400 (EDT)
From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To: Ruslan Ermilov <ru@FreeBSD.ORG>


<<On Thu, 30 Aug 2001 20:41:32 +0300, Ruslan Ermilov <ru@FreeBSD.ORG> said:

> + if (rtm->rtm_type != RTM_GET && so->so_cred->cr_uid != 0)
> + senderr(EACCES);

I'm certain rwatson would object to this. suser_xxx() allows checking
on the basis of credentials rather than a process, so that's what
should be used. In any case, the correct error is EPERM, not EACCES.

-GAWollman

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message



Relevant Pages

  • Re: [UKSF XI] Crankshaw Appointed Caretaker Manager By Board
    ... > I kinda just assumed on the basis of credentials. ... that would make voting for you even easier. ...
    (uk.sport.football)
  • Re: And yet more shiao jiao clips
    ... can "impugn" a man's MA credentials. ... It does if your credentials are the basis for making some challenge- ... particularly concerning military service. ... Only as it relates to the claim of USMC Judo Team participation. ...
    (rec.martial-arts)
  • Re: Funny to See...
    ... no basis in reality. ... What are your credentials to make such ... Are you a Netcop or something? ...
    (rec.sport.boxing)