From: Yoann Vandoorselaere <yoann@mandrakesoft.com>
To: linux-kernel@vger.kernel.org
Subject: PACKET_MR_PROMISC doesn't set IFF_PROMISC
Date: 07 Dec 2001 16:06:04 +0100 [thread overview]
Message-ID: <1007737564.21312.22.camel@alph> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 919 bytes --]
Hi,
I've read a little about the issue at :
http://groups.google.com/groups?hl=en&threadm=linux.kernel.Pine.LNX.4.31.0101240002380.29105-100000%40netcore.fi&rnum=4&prev=/groups%3Fq%3Dgflags%2Blinux%2Bnet%26hl%3Den
Apparently, some people think that it is an application problem, and
that the application should be fixed.
However, having two way of putting the interface in promiscuous mode
(and one which is not reported) look like a security bug to me.
IDS host based sensor might be monitoring the machine in order to alert
if the machine goes into promiscuous mode. This mean that anyone might
volontarily use PACKET_MR_PROMISC in order to bypass the sensor...
The attached patch should fix the problem, but I don't believe it's the
right way to fix it... Maybe the use of dev->gflags should be corrected
? or am I missing something ?
--
Yoann Vandoorselaere
http://www.prelude-ids.org
[-- Attachment #1.2: Type: text/plain, Size: 507 bytes --]
--- net/core/dev.c.orig Thu Dec 6 12:53:21 2001
+++ net/core/dev.c Thu Dec 6 12:54:22 2001
@@ -2082,7 +2082,7 @@ static int dev_ifsioc(struct ifreq *ifr,
switch(cmd)
{
case SIOCGIFFLAGS: /* Get interface flags */
- ifr->ifr_flags = (dev->flags&~(IFF_PROMISC|IFF_ALLMULTI|IFF_RUNNING))
+ ifr->ifr_flags = (dev->flags&~(IFF_ALLMULTI|IFF_RUNNING))
|(dev->gflags&(IFF_PROMISC|IFF_ALLMULTI));
if (netif_running(dev) && netif_carrier_ok(dev))
ifr->ifr_flags |= IFF_RUNNING;
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
next reply other threads:[~2001-12-07 15:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-07 15:06 Yoann Vandoorselaere [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-01-23 22:12 PACKET_MR_PROMISC doesn't set IFF_PROMISC Pekka Savola
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1007737564.21312.22.camel@alph \
--to=yoann@mandrakesoft.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox