mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Multicast netlink for non-root process
@ 2002-06-11 20:44 Jean Tourrilhes
  0 siblings, 0 replies; 12+ messages in thread
From: Jean Tourrilhes @ 2002-06-11 20:44 UTC (permalink / raw)
  To: Alexey Kuznetsov, Andi Kleen, Alan Cox, Jeff Garzik,
	Linux kernel mailing list

	Hi,

	I'm developping an application that need to monitor every
network interface of the system. Network interfaces are
virtual/dynamic and go up and down all the time, so to keep track of
my interface list, I'm listening for RTM_NEWLINK events on the
RTnetLink socket (RTMGRP_LINK multicast group).

	Problem : this works only as ROOT.
	And my mother told me that having my application running as
root is bad for my health.

	The cause is here :
----------- net/netlink/af_netlink.c - l322 ------------------

static int netlink_bind(struct socket *sock, struct sockaddr *addr, int addr_len)
{
[...]
	/* Only superuser is allowed to listen multicasts */
	if (nladdr->nl_groups && !capable(CAP_NET_ADMIN))
		return -EPERM;
--------------------------------------------------------------

	Why ?
	Why ?
	Why ?

	Have a good day...

	Jean

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2002-06-12 23:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20020611134418.A22893@bougret.hpl.hp.com.suse.lists.linux.kernel>
2002-06-11 21:02 ` Multicast netlink for non-root process Andi Kleen
2002-06-11 21:13   ` Jean Tourrilhes
2002-06-11 21:23     ` Andi Kleen
2002-06-11 21:40     ` kuznet
2002-06-11 23:31       ` Andi Kleen
2002-06-11 23:55         ` Jean Tourrilhes
2002-06-12  4:25       ` James Morris
2002-06-12 17:25         ` kuznet
2002-06-12 17:45           ` James Morris
2002-06-12 17:54             ` kuznet
2002-06-12 22:53           ` David S. Miller
2002-06-11 20:44 Jean Tourrilhes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®