Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
Sign in
Groups
netlabel
Conversations
About
how to trigger CALIPSO netlable opt insert
8 views
Skip to first unread message
T. Williams
unread,
Sep 4, 2023, 2:44:13 PM
9/4/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to netlabel
Hello,
i want to trigger this line of code
https://elixir.bootlin.com/
linux/v6.0.1/source/net/ipv6/
calipso.c#L916
but the hop variable always ends up as NULL when I send an Ipv6 calipso packet
I
n order to do that get the hop as non-NULL I think I need calipso_opt_getattr to be called. That requires selinux
_netlbl
_socket
_
setsockopt
https://elixir.bootlin.com/
linux/v6.0.1/source/security/
selinux/netlabel.c#L504to
to set the secattr type to NETLBL
_NLTYPE
_CALIPSO here
https://elixir.bootlin.com/
linux/v6.0.1/source/net/ipv6/
calipso.c#L1050
(it follows from selinux
_netlbl
_socket
_
setsockopt
-
> netlbl
_sock
_getattr
-
> calipso
_opt
_getattr). However when I do this I still get that hop is NULL in the
code:
https://elixir.bootlin.com/
linux/v6.0.1/source/net/ipv6/
calipso.c#L916
.
Is there any way I trigger this line of code from userspace? Where or who should I ask this question to?
Paul Moore
unread,
Sep 4, 2023, 3:14:37 PM
9/4/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to T. Williams, netlabel
As I mentioned to you earlier, the LSM list is likely the best forum
for this question.
Beyond that, what Linux distribution are you using, what LSMs do you
have enabled, and how are you configuring the LSMs and NetLabel?
--
paul-moore.com
Reply all
Reply to author
Forward
0 new messages