Re: setsockopt(IP_TOS) being privileged or distinct capability?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Philip Prindeville
Date: Monday, July 5, 2010 - 11:04 am

On 7/3/10 5:48 PM, Alexander Clouter wrote:

The logic being that if having a RAW socket requires privilege, but it's 
necessary to have reasonable security for user-invokable programs... and 
we manage to do this without too much trouble for those to programs, 
then it shouldn't be an undue hardship to do the same for ssh.


Right.  And I'm saying because of the potentially disruptive nature of 
setsockopt(IP_TOS), perhaps it should require privilege.



That would be a very good guess.

And google-stalking is fine.  I draw the line at leaving dead cats at my 
front door.



I understand that.  That's part of the reason that I've submitted 
patches for APR, Apache, Thunderbird, Firefox, Proftpd, Curl, wget, 
etc.  There is pressure within certain technical groups to get ISP's to 
voluntarily implement RFC-4594... that's the carrot.  The stick being 
FCC heavy-handed regulation of the ISP's if they don't.

Once QoS markings actually *are* implemented in carrier networks, the 
potential for abuse is non-insignificant.  Hence the suggestion to make 
it privileged.



Except that "iptables" is also a privileged operation.



Like I said, there's an effort to push the ISP's into implementing 
RFC-4594 widespread.  Their previous arguments for not doing so were (a) 
most software doesn't implement QoS (hence the scrub I did above), and 
(b) there were no standard markings.  RFC-4594 attempts to impose a 
standard.



When you say "interactive" and "low latency" are you referring to the 
RFC-791 mappings for those, or to the RFC-4594 mappings of those classes?

Here we use Arno's Iptables Firewall with the traffic-shaper plugin I 
wrote.  This does shaping and policing within traffic classes.

And yes, doing an out-of-the-box shaper for Fedora is on my TODO list.

-Philip

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
setsockopt(IP_TOS) being privileged or distinct capability?, Philip Prindeville, (Sat Jul 3, 10:58 am)
Re: setsockopt(IP_TOS) being privileged or distinct capabi ..., Alexander Clouter, (Sat Jul 3, 11:55 am)
Re: setsockopt(IP_TOS) being privileged or distinct capabi ..., Philip Prindeville, (Sat Jul 3, 4:07 pm)
Re: setsockopt(IP_TOS) being privileged or distinct capabi ..., Philip Prindeville, (Mon Jul 5, 11:04 am)
Re: setsockopt(IP_TOS) being privileged or distinct capabi ..., Philip Prindeville, (Mon Jul 5, 11:08 am)
Re: setsockopt(IP_TOS) being privileged or distinct capabi ..., Hagen Paul Pfeifer, (Mon Jul 5, 7:07 pm)
Re: setsockopt(IP_TOS) being privileged or distinct capabi ..., Philip Prindeville, (Mon Jul 5, 8:08 pm)
Re: setsockopt(IP_TOS) being privileged or distinct capabi ..., Rémi Denis-Courmont, (Tue Jul 6, 1:17 am)