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

mdatp: Add noexec workaround #3279

Merged
merged 8 commits into from
May 8, 2024
Merged

mdatp: Add noexec workaround #3279

merged 8 commits into from
May 8, 2024

Conversation

mcgov
Copy link
Collaborator

@mcgov mcgov commented Apr 24, 2024

LISA has a bug where it (edited) won't consider mount permissions before placing the working path. This means you'll end with a path where you can maybe read and write but not execute anything regardless of the file permissions.

This example workaround demonstrates how to detect the issue and a possible workaround, remounting the partition with the executable permission.

LISA has a bug where it won't consider mount permissions before placing
the working path. This example workaround demonstrates a possible fix.
@mcgov mcgov marked this pull request as ready for review April 25, 2024 06:15
@mcgov mcgov force-pushed the mcgov/mount-bug-demo-fix branch 2 times, most recently from 2fde734 to a917a3f Compare April 25, 2024 08:28
lisa/tools/mount.py Outdated Show resolved Hide resolved
Updating the warning messages to specify that this condition
is not fatal *for the mdatp test*.

If this code is hoisted outside of the test, it should be fatal.
It indicates that our Mount and DF tools are broken and we cannot
validate the mount options on partitions.
- Address more code comments
- add comments to warn and success paths
- re-order if/elseif to put positive case first
- rename functions for clarity
lisa/tools/df.py Outdated Show resolved Hide resolved
lisa/tools/df.py Outdated Show resolved Hide resolved
@mcgov mcgov requested a review from squirrelsc May 1, 2024 19:42
@mcgov mcgov force-pushed the mcgov/mount-bug-demo-fix branch from 826d76e to 2babe3d Compare May 6, 2024 15:25
@squirrelsc
Copy link
Member

@LiliDeng LGTM

@LiliDeng LiliDeng merged commit 8ec5f89 into main May 8, 2024
45 checks passed
@LiliDeng LiliDeng deleted the mcgov/mount-bug-demo-fix branch May 8, 2024 03:11
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