mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-08 05:56:38 +00:00
show disk encryption for mac
This commit is contained in:
@@ -95,9 +95,9 @@ function getPlatformPostureData(
|
|||||||
}
|
}
|
||||||
// macOS: Hard drive encryption, Biometric configuration, Firewall, System Integrity Protection (SIP), Gatekeeper, Firewall stealth mode
|
// macOS: Hard drive encryption, Biometric configuration, Firewall, System Integrity Protection (SIP), Gatekeeper, Firewall stealth mode
|
||||||
else if (normalizedPlatform === "macos") {
|
else if (normalizedPlatform === "macos") {
|
||||||
// if (fingerprint.diskEncrypted !== null && fingerprint.diskEncrypted !== undefined) {
|
if (fingerprint.diskEncrypted !== null && fingerprint.diskEncrypted !== undefined) {
|
||||||
// posture.diskEncrypted = fingerprint.diskEncrypted;
|
posture.diskEncrypted = fingerprint.diskEncrypted;
|
||||||
// }
|
}
|
||||||
if (fingerprint.biometricsEnabled !== null && fingerprint.biometricsEnabled !== undefined) {
|
if (fingerprint.biometricsEnabled !== null && fingerprint.biometricsEnabled !== undefined) {
|
||||||
posture.biometricsEnabled = fingerprint.biometricsEnabled;
|
posture.biometricsEnabled = fingerprint.biometricsEnabled;
|
||||||
}
|
}
|
||||||
@@ -110,9 +110,9 @@ function getPlatformPostureData(
|
|||||||
if (fingerprint.macosGatekeeperEnabled !== null && fingerprint.macosGatekeeperEnabled !== undefined) {
|
if (fingerprint.macosGatekeeperEnabled !== null && fingerprint.macosGatekeeperEnabled !== undefined) {
|
||||||
posture.macosGatekeeperEnabled = fingerprint.macosGatekeeperEnabled;
|
posture.macosGatekeeperEnabled = fingerprint.macosGatekeeperEnabled;
|
||||||
}
|
}
|
||||||
if (fingerprint.macosFirewallStealthMode !== null && fingerprint.macosFirewallStealthMode !== undefined) {
|
// if (fingerprint.macosFirewallStealthMode !== null && fingerprint.macosFirewallStealthMode !== undefined) {
|
||||||
posture.macosFirewallStealthMode = fingerprint.macosFirewallStealthMode;
|
// posture.macosFirewallStealthMode = fingerprint.macosFirewallStealthMode;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
// Linux: Hard drive encryption, Firewall, AppArmor, SELinux, TPM availability
|
// Linux: Hard drive encryption, Firewall, AppArmor, SELinux, TPM availability
|
||||||
else if (normalizedPlatform === "linux") {
|
else if (normalizedPlatform === "linux") {
|
||||||
|
|||||||
@@ -73,6 +73,13 @@ export async function recoverOlmWithFingerprint(
|
|||||||
)
|
)
|
||||||
.orderBy(currentFingerprint.lastSeen);
|
.orderBy(currentFingerprint.lastSeen);
|
||||||
|
|
||||||
|
logger.debug(`currentFingerprint = ${platformFingerprint}`);
|
||||||
|
logger.debug(`userId = ${userId}`);
|
||||||
|
|
||||||
|
logger.debug(
|
||||||
|
`recoverOlmWithFingerprint: found ${result.length} olms for userId ${userId} with provided fingerprint`
|
||||||
|
);
|
||||||
|
|
||||||
if (!result || result.length == 0) {
|
if (!result || result.length == 0) {
|
||||||
return next(
|
return next(
|
||||||
createHttpError(
|
createHttpError(
|
||||||
|
|||||||
Reference in New Issue
Block a user