-
Notifications
You must be signed in to change notification settings - Fork 0
feat(matic): enable PAM fingerprint auth and fix falcon init #743
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,19 +17,13 @@ let | |
| #!${pkgs.bash}/bin/sh | ||
| set -euo pipefail | ||
|
|
||
| # Remove immutable attributes set by CrowdStrike (security feature) | ||
| if [ -d /opt/CrowdStrike ]; then | ||
| ${pkgs.e2fsprogs}/bin/chattr -i -R /opt/CrowdStrike 2>/dev/null || true | ||
| # Only initialize if not already set up (CrowdStrike protects its files) | ||
| if [ ! -f /opt/CrowdStrike/falcond ]; then | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P1: The current initialization logic completely skips the copy step if Using Prompt for AI agents |
||
| install -d -m 0770 /opt/CrowdStrike | ||
| cp -a ${falcon}/opt/CrowdStrike/. /opt/CrowdStrike/ | ||
| chown -R root:root /opt/CrowdStrike | ||
| fi | ||
|
Comment on lines
+20
to
25
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The current logic with According to the PR description, the agent's files are protected from removal, but |
||
|
|
||
| rm -rf /opt/CrowdStrike | ||
| install -d -m 0770 /opt/CrowdStrike | ||
|
|
||
| # Copy real files so Falcon can write falconstore/CsConfig | ||
| cp -a ${falcon}/opt/CrowdStrike/. /opt/CrowdStrike/ | ||
|
|
||
| chown -R root:root /opt/CrowdStrike | ||
|
|
||
| # load CID from /etc/falcon-sensor.env (root-only) | ||
| . /etc/falcon-sensor.env | ||
|
|
||
|
|
||
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.
The
security.pam.services.sudo.fprintAuth = truesetting is redundant given thatsecurity.sudo.wheelNeedsPassword = false(line 70) already allows passwordless sudo for wheel group members. While this doesn't cause any functional issues, it may create confusion about the actual authentication mechanism being used for sudo.Consider either:
If the intent is to require authentication (via fingerprint or password) for sudo, you should set
security.sudo.wheelNeedsPassword = true.