fix(sensors): add error message when tamper protection blocks uninstall#492
Merged
carlosmmatos merged 2 commits intomainfrom Mar 16, 2026
Merged
fix(sensors): add error message when tamper protection blocks uninstall#492carlosmmatos merged 2 commits intomainfrom
carlosmmatos merged 2 commits intomainfrom
Conversation
When tamper protection is enabled and no maintenance token is provided, the uninstall silently exits with the package manager's error code. Capture the exit code and surface an actionable error message pointing users to FALCON_MAINTENANCE_TOKEN or API credentials. Closes #491
redhatrises
approved these changes
Mar 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a Linux host has tamper protection enabled and no maintenance token is provided,
falcon-linux-uninstall.shandfalcon-linux-migrate.shexit with the package manager's error code but print no error message. The user seesRemoving Falcon Sensor ...and then silence with a non-zero exit, with no indication that tamper protection is the cause.This wraps the
remove_packagecall incs_sensor_remove()withset +e/set -eto capture the exit code, then callsdie()with an actionable message pointing users toFALCON_MAINTENANCE_TOKENor API credentials. This brings the Linux scripts to parity with the Windows uninstall script which already handles this case.Also fixes a pre-existing
shfmtredirect spacing issue infalcon-linux-migrate.sh.Closes #491