.
I think only the root should be able to set the flags.
On Fri, Aug 8, 2008 at 9:33 PM, Samuel Thibault
<samuel.thibault@ens-lyon.org> wrote:
Hello,
zhengda, le Fri 08 Aug 2008 06:44:16 +0200, a écrit :
> + dev->flags = (flags &
> + (IFF_BROADCAST | IFF_DEBUG | IFF_LOOPBACK |
> + IFF_POINTOPOINT | IFF_NOTRAILERS | IFF_RUNNING |
> + IFF_NOARP | IFF_PROMISC | IFF_ALLMULTI | IFF_SLAVE
> + | IFF_MASTER | IFF_MULTICAST))
> + | (dev->flags & (IFF_SOFTHEADERS|IFF_UP));
Just to make sure: are all of these safe to let userland set?
Samuel