Skip to content

Commit 32f4870

Browse files
authored
Feedback from the HotFix today in main and related update to the reference policy definitions matching latest main build (#906)
1 parent 2357053 commit 32f4870

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/adapters/mc/asb/AzureLinuxBaseline_DeployIfNotExists.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"properties": {
3-
"displayName": "Audit Azure security baseline for Linux (powered by OSConfig)",
3+
"displayName": "Audit and configure Azure security baseline for Linux (powered by OSConfig)",
44
"policyType": "Custom",
55
"mode": "Indexed",
6-
"description": "This demo policy audits (and can also optionally configure) the Azure security baseline for Linux",
6+
"description": "This policy audits and configures the Azure security baseline on Linux machines (Azure VMs and Arc-enabled machines). For more information, see https://aka.ms/azsecbaselinelinuxdocs",
77
"metadata": {
88
"category": "Guest Configuration",
99
"version": "1.0.0",
@@ -15,7 +15,7 @@
1515
"version": "1.0.0",
1616
"contentType": "Custom",
1717
"contentUri": "https://github.com/Azure/azure-osconfig/releases/download/test_policy_package/AzureLinuxBaseline.zip",
18-
"contentHash": "2EE557B1F9843F2FDD4ACF29563B51A9D1D7EF7721C73D920AEF2C412A1E2499"
18+
"contentHash": "4E6BF9AC06618C97EFE07B7A01A2DFAA009130D1FC9E9628F9A38C7765C881A6"
1919
}
2020
},
2121
"parameters": {
@@ -341,7 +341,7 @@
341341
"version": "1.0.0",
342342
"contentType": "Custom",
343343
"contentUri": "https://github.com/Azure/azure-osconfig/releases/download/test_policy_package/AzureLinuxBaseline.zip",
344-
"contentHash": "2EE557B1F9843F2FDD4ACF29563B51A9D1D7EF7721C73D920AEF2C412A1E2499",
344+
"contentHash": "4E6BF9AC06618C97EFE07B7A01A2DFAA009130D1FC9E9628F9A38C7765C881A6",
345345
"assignmentType": "ApplyAndAutoCorrect"
346346
}
347347
}
@@ -358,7 +358,7 @@
358358
"version": "1.0.0",
359359
"contentType": "Custom",
360360
"contentUri": "https://github.com/Azure/azure-osconfig/releases/download/test_policy_package/AzureLinuxBaseline.zip",
361-
"contentHash": "2EE557B1F9843F2FDD4ACF29563B51A9D1D7EF7721C73D920AEF2C412A1E2499",
361+
"contentHash": "4E6BF9AC06618C97EFE07B7A01A2DFAA009130D1FC9E9628F9A38C7765C881A6",
362362
"assignmentType": "ApplyAndAutoCorrect"
363363
}
364364
}
@@ -375,7 +375,7 @@
375375
"version": "1.0.0",
376376
"contentType": "Custom",
377377
"contentUri": "https://github.com/Azure/azure-osconfig/releases/download/test_policy_package/AzureLinuxBaseline.zip",
378-
"contentHash": "2EE557B1F9843F2FDD4ACF29563B51A9D1D7EF7721C73D920AEF2C412A1E2499",
378+
"contentHash": "4E6BF9AC06618C97EFE07B7A01A2DFAA009130D1FC9E9628F9A38C7765C881A6",
379379
"assignmentType": "ApplyAndAutoCorrect"
380380
}
381381
}

src/adapters/mc/ssh/LinuxSshServerSecurityBaseline_DeployIfNotExists.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"version": "1.0.0",
1616
"contentType": "Custom",
1717
"contentUri": "https://github.com/Azure/azure-osconfig/releases/download/test_policy_package/LinuxSshServerSecurityBaseline.zip",
18-
"contentHash": "88B900762F29AF01A059573D17036D4B970308413B987C6AE1B9F74CEC250D3B",
18+
"contentHash": "5B5C2F46FE15B3549B390EFD6817AE889397F80E574C6C49E3E0FAC66474531F",
1919
"configurationParameter": {
2020
"accessPermissionsForSshdConfig": "Ensure that permissions on /etc/ssh/sshd_config are configured;DesiredObjectValue",
2121
"ignoreHosts": "Ensure that the SSH IgnoreRhosts is configured;DesiredObjectValue",
@@ -624,7 +624,7 @@
624624
"version": "1.0.0",
625625
"contentType": "Custom",
626626
"contentUri": "https://github.com/Azure/azure-osconfig/releases/download/test_policy_package/LinuxSshServerSecurityBaseline.zip",
627-
"contentHash": "88B900762F29AF01A059573D17036D4B970308413B987C6AE1B9F74CEC250D3B",
627+
"contentHash": "5B5C2F46FE15B3549B390EFD6817AE889397F80E574C6C49E3E0FAC66474531F",
628628
"assignmentType": "ApplyAndAutoCorrect",
629629
"configurationParameter": [
630630
{
@@ -715,7 +715,7 @@
715715
"version": "1.0.0",
716716
"contentType": "Custom",
717717
"contentUri": "https://github.com/Azure/azure-osconfig/releases/download/test_policy_package/LinuxSshServerSecurityBaseline.zip",
718-
"contentHash": "88B900762F29AF01A059573D17036D4B970308413B987C6AE1B9F74CEC250D3B",
718+
"contentHash": "5B5C2F46FE15B3549B390EFD6817AE889397F80E574C6C49E3E0FAC66474531F",
719719
"assignmentType": "ApplyAndAutoCorrect",
720720
"configurationParameter": [
721721
{
@@ -806,7 +806,7 @@
806806
"version": "1.0.0",
807807
"contentType": "Custom",
808808
"contentUri": "https://github.com/Azure/azure-osconfig/releases/download/test_policy_package/LinuxSshServerSecurityBaseline.zip",
809-
"contentHash": "88B900762F29AF01A059573D17036D4B970308413B987C6AE1B9F74CEC250D3B",
809+
"contentHash": "5B5C2F46FE15B3549B390EFD6817AE889397F80E574C6C49E3E0FAC66474531F",
810810
"assignmentType": "ApplyAndAutoCorrect",
811811
"configurationParameter": [
812812
{

src/common/logging/Logging.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static bool g_consoleLoggingEnabled = true;
4242

4343
bool IsConsoleLoggingEnabled(void)
4444
{
45-
return g_consoleLoggingEnabled;
45+
return IsDaemon() ? false : g_consoleLoggingEnabled;
4646
}
4747

4848
void SetConsoleLoggingEnabled(bool enabledOrDisabled)

src/common/logging/Logging.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ bool IsDaemon(void);
7171
OSCONFIG_LOG_TO_FILE(log, level, FORMAT, ##__VA_ARGS__);\
7272
fflush(GetLogFile(log));\
7373
}\
74-
if ((false == IsDaemon()) && (true == IsConsoleLoggingEnabled())) {\
74+
if (IsConsoleLoggingEnabled()) {\
7575
OSCONFIG_LOG(log, level, FORMAT, ##__VA_ARGS__);\
7676
}\
7777
}\

0 commit comments

Comments
 (0)