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 unix activity plugin #469

Merged
merged 2 commits into from
Dec 14, 2023
Merged

Conversation

JSCU-CNI
Copy link
Contributor

@JSCU-CNI JSCU-CNI commented Dec 6, 2023

When a target system contains (broken) symlinks in `/var/log, the activity plugin could break. This is now fixed by checking if a file is a symlink or if it exists at all.

Copy link

codecov bot commented Dec 7, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (a6546d9) 74.01% compared to head (7555ce4) 74.00%.

Files Patch % Lines
dissect/target/tools/info.py 0.00% 2 Missing ⚠️
dissect/target/plugins/os/unix/generic.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #469      +/-   ##
==========================================
- Coverage   74.01%   74.00%   -0.01%     
==========================================
  Files         259      259              
  Lines       20952    20955       +3     
==========================================
+ Hits        15507    15508       +1     
- Misses       5445     5447       +2     
Flag Coverage Δ
unittests 74.00% <25.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

When a target system contains (broken) symlinks in /var/log,
the activity plugin could break.
@pyrco pyrco force-pushed the fix/unix-activity-plugin branch from ffb3e36 to 7555ce4 Compare December 14, 2023 10:31
@pyrco pyrco merged commit b534f3a into fox-it:main Dec 14, 2023
JSCU-CNI added a commit to JSCU-CNI/dissect.target that referenced this pull request Jan 2, 2024
When a target system contains (broken) symlinks in /var/log,
the activity plugin could break.
@JSCU-CNI JSCU-CNI deleted the fix/unix-activity-plugin branch January 4, 2024 13:04
Poeloe pushed a commit that referenced this pull request Feb 29, 2024
When a target system contains (broken) symlinks in /var/log,
the activity plugin could break.
Zawadidone pushed a commit to Zawadidone/dissect.target that referenced this pull request Apr 5, 2024
When a target system contains (broken) symlinks in /var/log,
the activity plugin could break.
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.

3 participants