Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

threads: don't drop capabilities for packet threads #11839

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jasonish
Copy link
Member

Remove the call to SCDropCaps for packet processing threads. This
logic in this function is required to setup packet processing even
when the thread is provided by a library user, in which case Suricata
should not be touching is capabilities.

As SCDropCaps is currently a no-op its clear this feature needs to
be (re)designed properly, taking into consideration library users as
well.

Related ticket: https://redmine.openinfosecfoundation.org/issues/2375

Remove the call to SCDropCaps for packet processing threads. This
logic in this function is required to setup packet processing even
when the thread is provided by a library user, in which case Suricata
should not be touching is capabilities.

As SCDropCaps is currently a no-op its clear this feature needs to
be (re)designed properly, taking into consideration library users as
well.

Related ticket: https://redmine.openinfosecfoundation.org/issues/2375
@jasonish
Copy link
Member Author

Using this to discuss possibly removing SCDropCaps altogether. I think the design of this is its own reasonably sized project and other than the list of needed capabilities, I don't think keeping this function around provides much value.

Copy link

codecov bot commented Sep 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.01%. Comparing base (45eb7e4) to head (0dc1e60).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11839      +/-   ##
==========================================
- Coverage   82.60%   79.01%   -3.59%     
==========================================
  Files         912      912              
  Lines      249351   249173     -178     
==========================================
- Hits       205965   196886    -9079     
- Misses      43386    52287    +8901     
Flag Coverage Δ
fuzzcorpus 60.42% <ø> (-0.18%) ⬇️
livemode 18.72% <ø> (+<0.01%) ⬆️
pcap 44.12% <ø> (+0.06%) ⬆️
suricata-verify ?
unittests 58.94% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@suricata-qa
Copy link

WARNING:

field baseline test %
SURI_TLPR1_stats_chk
.uptime 649 625 96.3%

Pipeline 22885

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants