-
Notifications
You must be signed in to change notification settings - Fork 165
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): user id 0 or group id 0 default values #2177
Conversation
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
b2e91c6
to
d178abd
Compare
TO BE REMOVED.
Perf diff from master - unit tests
Heap diff from master - unit tests
Heap diff from master - scap file
Benchmarks diff from master
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2177 +/- ##
==========================================
+ Coverage 75.07% 75.16% +0.09%
==========================================
Files 256 257 +1
Lines 33659 33736 +77
Branches 5752 5755 +3
==========================================
+ Hits 25268 25359 +91
+ Misses 8391 8377 -14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…up manager. Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
@@ -285,9 +285,8 @@ void sinsp::init() { | |||
m_inited = true; | |||
} | |||
|
|||
void sinsp::set_import_users(bool import_users, bool user_details) { | |||
void sinsp::set_import_users(bool import_users) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cleaned up unused flag.
/milestone 0.20.0 |
…t static pointer. Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
313688a
to
451a3d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[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
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
/area libsinsp
/area tests
Does this PR require a change in the driver versions?
What this PR does / why we need it:
Fixed a possible case were the
root
,/root
default values for uid 0 users and gid 0 groups were not set (after #2165).Moreover, properly use different
static
members forthreadinfo::get_user()
andthreadinfo::get_loginuser
.Also, added tests to avoid future failures.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: