Skip to content

Linux uninstall scripts produce no error message when tamper protection blocks removal #491

@carlosmmatos

Description

@carlosmmatos

When a Linux host has tamper protection enabled and no maintenance token is provided, falcon-linux-uninstall.sh exits with the package manager's error code (e.g., 100 for apt) but prints no error message. The user sees:

Removing Falcon Sensor  ...

...and then silence with a non-zero exit code. They have no idea tamper protection is the cause or that they need to set FALCON_MAINTENANCE_TOKEN.

The Windows uninstall script already handles this (exit code 106 detection with a clear message). The Linux scripts need parity.

Affected scripts

  • bash/install/falcon-linux-uninstall.sh
  • bash/migrate/falcon-linux-migrate.sh

Both have a cs_sensor_remove() function where remove_package "falcon-sensor" runs under set -e, causing the script to silently exit on failure with no diagnostic output.

Expected behavior

When remove_package fails, the script should print an actionable error message indicating that tamper protection may be enabled and that the user should provide FALCON_MAINTENANCE_TOKEN or use API credentials to retrieve one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions