Skip to content

cipso: make cipso_v4_skbuff_delattr() fully remove the CIPSO options

Ondrej Mosnacek linux-security-module netdev selinux 2 versions – Applied

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 10 repliesApplied 2/2
  2. v12 patches 10 repliesSuperseded

Changes in v2 from the cover letter

- drop the paranoid WARN_ON() usage
- reword the description of the second patch

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2cipso: fix total option length computationnet/ipv4/cipso_ipv4.c+8 -40 repliesApplied
2/2cipso: make cipso_v4_skbuff_delattr() fully remove the CIPSO optionsnet/ipv4/cipso_ipv4.c+54 -250 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] cipso: make cipso_v4_skbuff_delattr() fully remove the CIPSO options

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/[email protected]/

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(-)
Signature · 1 line
2.45.1