netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] cipso: make cipso_v4_skbuff_delattr() fully remove the CIPSO options
@ 2024-06-07 16:07 Ondrej Mosnacek
  2024-06-07 16:07 ` [PATCH v2 1/2] cipso: fix total option length computation Ondrej Mosnacek
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Ondrej Mosnacek @ 2024-06-07 16:07 UTC (permalink / raw)
  To: Paul Moore; +Cc: netdev, linux-security-module

This series aims to improve cipso_v4_skbuff_delattr() to fully
remove the CIPSO options instead of just clearing them with NOPs.
That is implemented in the second patch, while the first patch is
a bugfix for cipso_v4_delopt() that the second patch depends on.

Tested using selinux-testsuite a TMT/Beakerlib test from this PR:
https://src.fedoraproject.org/tests/selinux/pull-request/488

Changes in v2:
- drop the paranoid WARN_ON() usage
- reword the description of the second patch

v1: https://lore.kernel.org/linux-security-module/20240416152913.1527166-1-omosnace@redhat.com/

Ondrej Mosnacek (2):
  cipso: fix total option length computation
  cipso: make cipso_v4_skbuff_delattr() fully remove the CIPSO options

 net/ipv4/cipso_ipv4.c | 75 +++++++++++++++++++++++++++++++------------
 1 file changed, 54 insertions(+), 21 deletions(-)

-- 
2.45.1


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

end of thread, other threads:[~2024-07-26 19:41 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-07 16:07 [PATCH v2 0/2] cipso: make cipso_v4_skbuff_delattr() fully remove the CIPSO options Ondrej Mosnacek
2024-06-07 16:07 ` [PATCH v2 1/2] cipso: fix total option length computation Ondrej Mosnacek
2024-06-07 16:07 ` [PATCH v2 2/2] cipso: make cipso_v4_skbuff_delattr() fully remove the CIPSO options Ondrej Mosnacek
2024-06-07 18:50 ` [PATCH v2 0/2] " Casey Schaufler
2024-06-10 15:14   ` Ondrej Mosnacek
2024-06-10 16:53     ` Casey Schaufler
2024-06-11  9:42       ` Ondrej Mosnacek
2024-06-14  7:20 ` patchwork-bot+netdevbpf
2024-06-14 15:08   ` Paul Moore
2024-06-19  2:46     ` Paul Moore
2024-06-20 10:02       ` Ondrej Mosnacek
2024-06-20 14:39         ` Paul Moore
2024-07-26 12:44           ` Ondrej Mosnacek
2024-07-26 19:41             ` Paul Moore
2024-06-14  7:30 ` patchwork-bot+netdevbpf

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