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

test: run dfuzzer against Polkit's D-Bus interface #526

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

mrc0mmand
Copy link
Member

@mrc0mmand mrc0mmand commented Nov 7, 2024

Let's run dfuzzer to fuzz polkit's own D-Bus interface to catch issues
like [0][1][2] early.

The test implementation is a bit convoluted, caused by the fact that
we have to rebuild polkit with Address and Undefined sanitizers to make
dfuzzer considerably more effective. This also involves running the just
built polkit in a lightweight container so we don't mess with the
already installed polkit (which could affect tests running after this
one that don't expect sanitized polkit). All this extra code can be
potentially dropped once we're able to do multiple Packit builds in one
PR (currently in an RFC stage).

Resolves: #515

[0] #506
[1] b709b69
[2] 5cce296

@mrc0mmand

This comment was marked as resolved.

Let's run dfuzzer to fuzz polkit's own D-Bus interface to catch issues
like [0][1][2] early.

The test implementation is a _bit_ convoluted, caused by the fact that
we have to rebuild polkit with Address and Undefined sanitizers to make
dfuzzer considerably more effective. This also involves running the just
built polkit in a lightweight container so we don't mess with the
already installed polkit (which could affect tests running after this
one that don't expect sanitized polkit). All this extra code can be
potentially dropped once we're able to do multiple Packit builds in one
PR (currently in an RFC stage).

Resolves: polkit-org#515

[0] polkit-org#506
[1] polkit-org@b709b69
[2] polkit-org@5cce296
@jrybar-rh jrybar-rh merged commit e01b6b9 into polkit-org:main Nov 14, 2024
33 checks passed
@mrc0mmand mrc0mmand deleted the dfuzzer branch November 14, 2024 12: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.

dfuzzer should probably be run by the CI
3 participants