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

fix(server): ignore library scan permission errors #15936

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

etnoy
Copy link
Contributor

@etnoy etnoy commented Feb 6, 2025

Description

This fixes the bug where any permission denied error in a library scan cancels the entire scans and throws an error. Instead, we ignore permission errors and warn in the console.

There are several bugs reporting this, including #11177

How Has This Been Tested?

Added e2e test for the specific case. In order to make the docker be able to get permission errors, I added DAC_OVERRIDE as a capability drop.

In case of permission error, we now get a warning in the log:

image

Caveat

The upstream PR is not merged yet, therefore this PR is a draft for now

@etnoy etnoy force-pushed the feat/ignore-library-permission-error branch from 224f4e5 to 43d66c7 Compare February 6, 2025 23:30
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.

1 participant