This repository has been archived by the owner on Feb 6, 2024. It is now read-only.
forked from blue-build/legacy-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: apply patches to harden system (part 2)
* feat: require a password for sudo every time it's called * feat: add hardened chromium config Everything was taken from here: https://github.com/secureblue/secureblue
- Loading branch information
1 parent
3ae25f6
commit f7e5e7c
Showing
5 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
type: script | ||
scripts: | ||
- file-permissions.sh | ||
- system76-scheduler.sh | ||
- brave-browser.sh | ||
- systemwide-themes.sh | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# system wide chromium flags | ||
CHROMIUM_FLAGS="" | ||
CHROMIUM_FLAGS+=" --ozone-platform=wayland" |
24 changes: 24 additions & 0 deletions
24
config/files/usr/etc/chromium/policies/managed/hardening.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"DefaultSensorsSetting": 2, | ||
"EnableMediaRouter": false, | ||
"SuggestedContentEnabled": false, | ||
"AccessibilityImageLabelsEnabled": false, | ||
"BackgroundModeEnabled": false, | ||
"BlockThirdPartyCookies": true, | ||
"ChromeCleanupReportingEnabled": false, | ||
"ClickToCallEnabled": false, | ||
"HttpsOnlyMode": "force_enabled", | ||
"MediaRecommendationsEnabled": false, | ||
"MetricsReportingEnabled": false, | ||
"NetworkPredictionOptions": 2, | ||
"PaymentMethodQueryEnabled": false, | ||
"PromotionalTabsEnabled": false, | ||
"RemoteDebuggingAllowed": false, | ||
"SharedClipboardEnabled": false, | ||
"ShowFullUrlsInAddressBar": true, | ||
"SyncDisabled": true, | ||
"TranslateEnabled": false, | ||
"UrlKeyedAnonymizedDataCollectionEnabled": false, | ||
"WebRtcEventLogCollectionAllowed": false, | ||
"WebRtcIPHandling": "disable_non_proxied_udp" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Defaults timestamp_timeout = 0 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Tell build process to exit if there are any errors. | ||
set -euo pipefail | ||
|
||
chmod 440 /usr/etc/sudoers.d/timeout |