All of lore.kernel.org
 help / color / mirror / Atom feed
* Netlabel
@ 2012-04-26 16:12 Christophe Hauser
  0 siblings, 0 replies; 6+ messages in thread
From: Christophe Hauser @ 2012-04-26 16:12 UTC (permalink / raw)
  To: kernelnewbies

Hi all,

is anyone here familiar with Netlabel ? I am trying to label network packets
using CIPSO tags from a LSM module. Rather than using the Netlink interface to
configure Netlabel from userspace, I try to setup everything from kernelspace.
The way I initialize netlabel is similar to what smack does in smk_cipso_doi()
(security/smack/smackfs.c).

What I am trying to do is the following :
- no packet should ever get dropped
- unlabeled packets can stay unlabeled, I don't need to assign them any DOI
- labeled packets carry information that is only useful to my LSM module
  (bitmaps)

Now, everytime I label a socket, packets get dropped. I read in the RFC about
configuration settings such as HOST_LABEL_MAX and so on, but as far as I
understand, it is up to the module itself to make such verifications. Is
netlabel enforcing any sort of policy here ? Is there anyway I can configure
netlabel to never drop packets ?

Kind regards,
-- 
Christophe

^ permalink raw reply	[flat|nested] 6+ messages in thread
* NetLabel
@ 2008-06-04  6:55 Justin Mattock
  2008-06-04 14:31 ` NetLabel Paul Moore
  0 siblings, 1 reply; 6+ messages in thread
From: Justin Mattock @ 2008-06-04  6:55 UTC (permalink / raw)
  To: selinux

Hello; Hopefully this is the right list to post this question,
after looking at  NetLabel, in dmesg I couldn't help but see:
[    0.570655] NetLabel: Initializing
[    0.570660] NetLabel:  domain hash size = 128
[    0.570663] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.570730] NetLabel:  unlabeled traffic allowed by default

"unlabeled traffic allowed by default."
is this similar to selinux (handle_unkown=deny, if so is there an
option to change this to "unlabeled traffic deny."
Also is there a location for this in the kernel i.g. /proc/sys/net/*
regards;
-- 
Justin P. Mattock

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

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

end of thread, other threads:[~2012-04-26 16:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-26 16:12 Netlabel Christophe Hauser
  -- strict thread matches above, loose matches on Subject: below --
2008-06-04  6:55 NetLabel Justin Mattock
2008-06-04 14:31 ` NetLabel Paul Moore
2008-06-04 19:05   ` NetLabel Justin Mattock
2008-06-04 19:14     ` NetLabel Paul Moore
2008-06-04 19:25       ` NetLabel Justin Mattock

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.