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(userspace/libsinsp): define HAVE_PWD_H and HAVE_GRP_H on every non-windows system #383

Merged
merged 1 commit into from
Jun 8, 2022

Conversation

jasondellaluce
Copy link
Contributor

@jasondellaluce jasondellaluce commented Jun 8, 2022

What type of PR is this?

/kind bug

Any specific area of the project related to this PR?

/area build

What this PR does / why we need it:

HAVE_PWD_H and HAVE_GRP_H represent feature gates in libsinsp, which are expected to be compiled in any non-windows system. However, those definitions are added depending on the presence of an include file using CMake, which seems to be non-totally predictable in all systems. In case this section is now compiled, libsinsp fails to consistently fetch user data and extract fields such as user.name.

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

…n-windows system

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
@FedeDP
Copy link
Contributor

FedeDP commented Jun 8, 2022

See falcosecurity/falco#2048 for the issue!

Thanks @jasondellaluce !

Copy link
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
Contributor

poiana commented Jun 8, 2022

[APPROVALNOTIFIER] This PR is APPROVED

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

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

The pull request process is described here

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
Contributor

poiana commented Jun 8, 2022

LGTM label has been added.

Git tree hash: 8b984f75266d48d4d7ffe34894c86a0947f0210c

@poiana poiana added the approved label Jun 8, 2022
@poiana poiana merged commit 0c238ac into falcosecurity:master Jun 8, 2022
@jasondellaluce jasondellaluce deleted the fix/cmake-pwdh branch June 9, 2022 08:59
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.

4 participants