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

From: Ruslan Ermilov (ru@FreeBSD.org)
Date: 08/30/01


Date: Thu, 30 Aug 2001 14:58:40 +0300
From: Ruslan Ermilov <ru@FreeBSD.org>
To: net@FreeBSD.org, security@FreeBSD.org


Hi!

The attached patch allows non-superuser to open, listen to, and send
safe commands on the routing socket. Superuser privilege is required
for all commands but RTM_GET.

This has been in NetBSD and OpenBSD since 1997. This also allows us
to drop setuid root privilege from the route(8) command.

I would like to commit this patch on Monday if I hear no reasonable
objections.

Cheers,

-- 
Ruslan Ermilov		Oracle Developer/DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine
http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

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




Relevant Pages

  • Re: smp dead lock of io_request_lock/queue_lock patch
    ... >> aware of the SCSI stack problems. ... > has a problem handling QUEUE_FULL and BUSY status commands. ... The mlqueue patch changes it so that the mid layer implements ... > this is a problem that older drivers with workaround code didn't need, ...
    (Linux-Kernel)
  • Re: 2.6.19-rc3 system freezes when ripping with cdparanoia at ioctl(SG_IO)
    ... scsi_inquiryto identify the device and determine interface type. ... seems to be the first time to actually issue commands to the device. ... cdparanoia can handle both cases as long as the kernel ... Coincidentally I am sitting on a patch from Luben Tuikov ...
    (Linux-Kernel)
  • RE: PATCH: Further aacraid work
    ... commands quiesce to give the Firmware some breathing space to respond to ... The `Adaptec' driver has a beefed up health checker ... called a `blinkLED' report from the adapter. ... Subject: PATCH: Further aacraid work ...
    (Linux-Kernel)
  • Re: is there any Hard-disk shock-protection for 2.6.18 and above?
    ... I've ported the patch to 2.6.19-rc6. ... commands you have in mind that should be used in such a patch. ... immediate with head unload or a standby immediate command as ... Should we have kernel doing auto-unfreeze? ...
    (Linux-Kernel)
  • Re: [06/07] [PATCH] SCSI tape security: require CAP_ADMIN for SG_IO etc.
    ... > This patch is just wrong on so many different levels its hard to know ... SELECT (and some other commands useful for CD/DVD writers but being ... Controlling high-level access and pass-through with the same permissions ... the tape driver does not know it. ...
    (Linux-Kernel)