Thread (20 messages) 20 messages, 4 authors, 2018-08-01

Re: [PATCH net-next v5 1/4] net/sched: user-space can't set unknown tcfa_action values

From: Jamal Hadi Salim <jhs@mojatatu.com>
Date: 2018-07-30 15:39:06

On 30/07/18 08:30 AM, Paolo Abeni wrote:
  	}
  
+	if (!tcf_action_valid(a->tcfa_action)) {
+		NL_SET_ERR_MSG(extack, "invalid action value, using TC_ACT_UNSPEC instead");
+		a->tcfa_action = TC_ACT_UNSPEC;
+	}
+
  	return a;
  

I think it would make a lot more sense to just reject the entry than
changing it underneath the user to a default value. Least element of
suprise.

cheers,
jamal
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help