On Fri, 19 Apr 2013 16:52:46 -0400
Vlad Yasevich <[email protected]> wrote:

> +
> +static int store_flag(struct net_bridge_port *p, unsigned long v,
> +                  unsigned long mask)
> +{
> +     unsigned long flags = p->flags;
> +
> +     if (v)
> +             flags |= mask;
> +     else
> +             flags &= ~mask;
> +
> +     if (flags != p->flags) {
> +             p->flags = flags;
> +             br_ifinfo_notify(RTM_NEWLINK, p);
> +     }
> +     return 0;
> +}

I don't want to allow arbitrary flag stores (and shows).
It exposes kernel bits to user space and creates an unintended ABI.

Reply via email to