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

Make pfilter.h more generic #403

Merged
merged 1 commit into from
Sep 15, 2022
Merged

Make pfilter.h more generic #403

merged 1 commit into from
Sep 15, 2022

Conversation

tpapagian
Copy link
Member

@tpapagian tpapagian commented Sep 13, 2022

bpf/process/pfilter.h implements several selectors for generic kprobes
and tracepoints. These include matchPIDs, matchNamespaces,
matchNamespaceChanges, matchCapabilities, and matchCapabilityChanges.

The main function generic_process_filter() gets as argument a pointer
to msg_generic_kprobe.

This commit changes this function in order to get more generic arguments
in order to be used for other use cases as well.

Signed-off-by: Anastasios Papagiannis [email protected]

@tpapagian tpapagian force-pushed the pr/apapag/generic_pfilter branch 2 times, most recently from 9e020d4 to 55507d6 Compare September 14, 2022 06:40
@tpapagian tpapagian changed the title Test Make pfilter.h more generic Sep 14, 2022
@tpapagian tpapagian force-pushed the pr/apapag/generic_pfilter branch from 55507d6 to 5820a6a Compare September 14, 2022 06:42
bpf/process/pfilter.h implements several selectors for generic kprobes
and tracepoints. These include matchPIDs, matchNamespaces,
matchNamespaceChanges, matchCapabilities, and matchCapabilityChanges.

The main function generic_process_filter() gets as argument a pointer
to msg_generic_kprobe.

This commit changes this function in order to get more generic arguments
in order to be used for other use cases as well.

Signed-off-by: Anastasios Papagiannis <[email protected]>
@tpapagian tpapagian force-pushed the pr/apapag/generic_pfilter branch from 5820a6a to bd3946f Compare September 14, 2022 07:14
@tpapagian tpapagian marked this pull request as ready for review September 14, 2022 07:50
@tpapagian tpapagian requested a review from a team as a code owner September 14, 2022 07:50
@tpapagian tpapagian requested a review from sharlns September 14, 2022 07:50
@jrfastab jrfastab merged commit dffe621 into main Sep 15, 2022
@jrfastab jrfastab deleted the pr/apapag/generic_pfilter branch September 15, 2022 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants