Skip to content

fix(driver): check rename family syscalls are defined#401

Merged
poiana merged 1 commit intofalcosecurity:masterfrom
Andreagit97:fix_renameat_define
Jun 17, 2022
Merged

fix(driver): check rename family syscalls are defined#401
poiana merged 1 commit intofalcosecurity:masterfrom
Andreagit97:fix_renameat_define

Conversation

@Andreagit97
Copy link
Copy Markdown
Member

What type of PR is this?

/kind bug

/kind cleanup

Any specific area of the project related to this PR?

/area driver-kmod

/area driver-bpf

/area driver-modern-bpf

What this PR does / why we need it:

This PR defines entries in our tables only when the syscall number is defined in that architecture. More precisely, this pull request fixes the bug on riscv64 highlighted by @dkogan here 👉 #399

The changes proposed are just an extension of the patch suggested by @dkogan.

Please note: I would love to have the conditional compilation around every single syscall in our tables, right now I just addressed the rename family.

Which issue(s) this PR fixes:

Fixes #399

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

Signed-off-by: Andrea Terzolo <andrea.terzolo@polito.it>
Co-authored-by: Dima Kogan <dima@secretsauce.net>
Copy link
Copy Markdown
Contributor

@FedeDP FedeDP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@poiana
Copy link
Copy Markdown
Contributor

poiana commented Jun 16, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Andreagit97, FedeDP

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana
Copy link
Copy Markdown
Contributor

poiana commented Jun 16, 2022

LGTM label has been added.

DetailsGit tree hash: 020891afdbb9396a534c7bd7fc2b95c7b8686e24

@FedeDP
Copy link
Copy Markdown
Contributor

FedeDP commented Jun 17, 2022

Honestly, the more i see these kind of issues, the more i think my approach in #86 is a winning one...

@poiana poiana merged commit b048eaf into falcosecurity:master Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build failure on riscv64 and patch

4 participants