kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Kernel Project : Implement network interface default labeling for Smack
@ 2020-04-28 14:15 Suraj Upadhyay
  2020-04-29  1:08 ` Valdis Klētnieks
  0 siblings, 1 reply; 2+ messages in thread
From: Suraj Upadhyay @ 2020-04-28 14:15 UTC (permalink / raw)
  To: casey; +Cc: kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 994 bytes --]

Hello Casey and List,

	I saw a kernel project on kernelnewbies.org [1].
Which goes like this :-

> Implement network interfce default labeling for Smack.

> Today all unlabeled networking traffic is treated with one
> "ambient" Smack label. This project consists of taking advantage
> of mechanisms already in the labeled networking code to allow
> different labels to be assigned to packets based on the itnerface
> upon which they appeared.

> Difficulty 5.

I see that the project has not been done yet, as I cannot find any
described implementation, correct my if I go wrong here.

I really want this to be my first kernel project. I am a relatively
new comer to the community, and I want to contribute in all my capacity.

Could you please advise me a starting point for this project ?
Like the area of the codebase I need to study before attempting
this.
Any help would be appreciated.

[1] : https://kernelnewbies.org/KernelProjects/SmackInterface

Thanks,
Best wishes,

Suraj Upadhyay

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

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

* Re: Kernel Project : Implement network interface default labeling for Smack
  2020-04-28 14:15 Kernel Project : Implement network interface default labeling for Smack Suraj Upadhyay
@ 2020-04-29  1:08 ` Valdis Klētnieks
  0 siblings, 0 replies; 2+ messages in thread
From: Valdis Klētnieks @ 2020-04-29  1:08 UTC (permalink / raw)
  To: Suraj Upadhyay; +Cc: casey, kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 1518 bytes --]

On Tue, 28 Apr 2020 19:45:56 +0530, Suraj Upadhyay said:
> 	I saw a kernel project on kernelnewbies.org [1].
> Which goes like this :-
>
> > Implement network interfce default labeling for Smack.
>
> > Today all unlabeled networking traffic is treated with one
> > "ambient" Smack label. This project consists of taking advantage
> > of mechanisms already in the labeled networking code to allow
> > different labels to be assigned to packets based on the itnerface
> > upon which they appeared.
>
> > Difficulty 5.
>
> I see that the project has not been done yet, as I cannot find any
> described implementation, correct my if I go wrong here.
>
> I really want this to be my first kernel project. I am a relatively
> new comer to the community, and I want to contribute in all my capacity.

Note that this is a lot harder to do correctly than it looks.   For starters,
it's not entirely obvious that "label according to interface" is the best
semantic. A better one is probably "based on packet origin" - which gets
interesting now that Wireguard has landed in the kernel. VLANs need to be
considered, and you *definitely* want to re-use the CONFIG_NETWORK_SECMARK code
that AppArmor and SELinux use for network packets. Also, supporting CIPSO would
be pretty much mandatory...

And looking at Documentation/admin-guide/LSM/Smack.rst, it appears that SMACK
is a lot more label-aware than the project description indicates.

In any case, I'm quite sure that Casey will agree with me that "Here There Be Dragons". :)

[-- Attachment #1.2: Type: application/pgp-signature, Size: 832 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

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

end of thread, other threads:[~2020-04-29  1:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-28 14:15 Kernel Project : Implement network interface default labeling for Smack Suraj Upadhyay
2020-04-29  1:08 ` Valdis Klētnieks

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).