netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
To: James Morris <jmorris@namei.org>
Cc: netdev@vger.kernel.org, "David S. Miller" <davem@davemloft.net>
Subject: Re: Refactor Netlink connector?
Date: Sat, 27 May 2006 17:46:31 +0400	[thread overview]
Message-ID: <20060527134629.GA16306@2ka.mipt.ru> (raw)
In-Reply-To: <Pine.LNX.4.64.0605261552570.4856@d.namei>

On Fri, May 26, 2006 at 04:04:53PM -0400, James Morris (jmorris@namei.org) wrote:
> I've been looking through the kernel for new subsytems which might need 
> LSM hooks, and we've got a proliferation of Netlink abstractions: generic 
> Netlink, nfnetlink, connector and kobject_uevent.
> 
> I think we should look at consolidating some of these schemes, and if 
> possible, into a unififed Netlink API.
> 
> As a first step, what would it take to adapt the single user of 
> connector (the w1 driver) to use generic Netlink?

Process accounting, CIFS and OFS netfilter module use it too.
As long as quite a lot of out of the tree projects.

> I suspect that some of the nfnetlink infrastructure can be used more 
> generically, and that a simple API for the common case of kernel->user 
> event notifications could be also be provided.
>
> Thoughts?

I would like to ask, how LSM labeling supposed to work with encapsulated
netlink traffic. Will SELinux (for example) have some rules to allow w1
packets and block other for the same socket type?
And what happens when the same socket start to send packets with
different strucutre or some new protocol will be added? 
Should it consult with SELinux so it updated it's security processing code?

Or LSM supposed to work only on top of socket numbers (which could be
the best) and just control "raw" netlink messages?
 
> - James
> -- 
> James Morris
> <jmorris@namei.org>

-- 
	Evgeniy Polyakov

  parent reply	other threads:[~2006-05-27 13:46 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-26 20:04 Refactor Netlink connector? James Morris
2006-05-26 23:06 ` Patrick McHardy
2006-05-27 13:46 ` Evgeniy Polyakov [this message]
2006-05-27 16:45   ` James Morris
2006-05-27 17:21     ` James Morris
2006-05-28 15:33       ` Evgeniy Polyakov
2006-05-29  6:36         ` David Miller
2006-05-29 12:11           ` jamal
2006-05-30 14:22             ` James Morris
2006-05-31 12:00               ` jamal
2006-05-31 13:09                 ` Thomas Graf
2006-05-30 14:18         ` James Morris
2006-05-30 18:03           ` Evgeniy Polyakov
2006-05-30 18:58             ` James Morris
2006-05-30 19:09               ` Evgeniy Polyakov
2006-05-31  3:00       ` Thomas Graf
2006-05-31 12:20         ` jamal
2006-05-31 13:06           ` Thomas Graf
2006-05-31 13:22             ` jamal
2006-05-31 15:42               ` James Morris
2006-06-01 10:45                 ` Thomas Graf
2006-06-01 14:24                   ` James Morris
2006-06-14 12:36                     ` jamal
2006-06-14 15:19                       ` James Morris

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=20060527134629.GA16306@2ka.mipt.ru \
    --to=johnpol@2ka.mipt.ru \
    --cc=davem@davemloft.net \
    --cc=jmorris@namei.org \
    --cc=netdev@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;
as well as URLs for NNTP newsgroup(s).