Added to the firefox policy

This commit is contained in:
n0th1ng 2025-12-18 22:44:07 +01:00
commit fff52cfcee

View file

@ -2,16 +2,29 @@ printf "[daemon]\nAutomaticLoginEnable=true\nAutomaticLogin=kiosk\n\n[security]\
# Firefox policy # Firefox policy
mkdir -p /usr/lib/firefox-esr/distribution # (I used to put this in /etc/firefox/policies/policies.json instead)
tee /usr/lib/firefox-esr/distribution/policies.json > /dev/null <<'EOF' mkdir -p /usr/lib/firefox-esr/distribution
tee /usr/lib/firefox-esr/distribution/policies.json > /dev/null <<'EOF'
{ {
"policies": { "policies": {
"AppAutoUpdate": true,
"BackgroundAppUpdate": true,
"BlockAboutAddons": true,
"BlockAboutConfig": true,
"BlockAboutProfiles": true,
"BlockAboutSupport": true,
"DisableDeveloperTools": true, "DisableDeveloperTools": true,
"BlockAboutAddons": true, "BlockAboutAddons": true,
"BlockAboutConfig": true, "BlockAboutConfig": true,
"BlockAboutProfiles": true, "BlockAboutProfiles": true,
"BlockAboutSupport": true, "BlockAboutSupport": true,
"DisableFeedbackCommands": true,
"DisableFirefoxAccounts": true, "DisableFirefoxAccounts": true,
"DisableFirefoxScreenshots": true,
"DisableFirefoxStudies": true,
"DisableForgetButton": true,
"DisableFormHistory": true,
"DisablePocket": true,
"DisablePrivateBrowsing": true, "DisablePrivateBrowsing": true,
"DisableProfileImport": true, "DisableProfileImport": true,
"DisableProfileRefresh": true, "DisableProfileRefresh": true,
@ -19,10 +32,33 @@ tee /usr/lib/firefox-esr/distribution/policies.json > /dev/null <<'EOF'
"DisablePocket": true, "DisablePocket": true,
"DisableFirefoxScreenshots": true, "DisableFirefoxScreenshots": true,
"DisableSetDesktopBackground": true, "DisableSetDesktopBackground": true,
"DisableTelemetry": true,
"DisplayBookmarksToolbar": "never",
"DisplayMenuBar": "never",
"EnableTrackingProtection": {
"Cryptomining": true,
"Fingerprinting": true,
"Value": true
},
"ExtensionSettings": {
"*": {
"installation_mode": "allowed"
}
},
"FirefoxHome": {
"Highlights": false,
"Pocket": false,
"Search": false,
"SponsoredPocket": false,
"SponsoredTopSites": false,
"TopSites": false
},
"Homepage": { "Homepage": {
"StartPage": "homepage",
"URL": "https://mahn.ke", "URL": "https://mahn.ke",
"Locked": true "Locked": true
}, },
"ManualAppUpdateOnly": true,
"NewTabPage": { "NewTabPage": {
"Enabled": false "Enabled": false
}, },
@ -30,6 +66,21 @@ tee /usr/lib/firefox-esr/distribution/policies.json > /dev/null <<'EOF'
"Path": "C:\\KioskDownloads", "Path": "C:\\KioskDownloads",
"Locked": true "Locked": true
}, },
"PictureInPicture": {
"Enabled": false
},
"Preferences": {
"extensions.getAddons.showPane": {
"Status": "locked",
"Type": "boolean",
"Value": false
},
"ui.key.menuAccessKeyFocuses": {
"Status": "locked",
"Type": "boolean",
"Value": false
}
},
"PromptForDownloadLocation": false, "PromptForDownloadLocation": false,
"StartDownloadsInTempDirectory": false, "StartDownloadsInTempDirectory": false,
"DisableAppUpdate": true, "DisableAppUpdate": true,
@ -39,19 +90,40 @@ tee /usr/lib/firefox-esr/distribution/policies.json > /dev/null <<'EOF'
"Location": "deny", "Location": "deny",
"Notifications": "deny" "Notifications": "deny"
}, },
"SanitizeOnShutdown": {
"Cache": true,
"Cookies": true,
"Downloads": true,
"FormData": true,
"History": true,
"OfflineApps": true,
"Sessions": true,
"SiteSettings": true
},
"ShowHomeButton": false, "ShowHomeButton": false,
"UserMessaging": {
"ExtensionRecommendations": false,
"FeatureRecommendations": false,
"MoreFromMozilla": false,
"SkipOnboarding": false,
"UrlbarInterventions": false,
"WhatsNew": false,
"FirefoxLabs": false,
"Locked": false
},
"DisplayMenuBar": false, "DisplayMenuBar": false,
"DisplayBookmarksToolbar": false, "DisplayBookmarksToolbar": false,
"policies": { "WebsiteFilter": {
"UserMessaging": { "Block": [
"ExtensionRecommendations": false, "<all_urls>"
"FeatureRecommendations": false, ],
"UrlbarInterventions": false, "Exceptions": [
"SkipOnboarding": false, "*://*.c3nav.de/*",
"MoreFromMozilla": false, "*://*.hvv.de/*",
"FirefoxLabs": false, "*://engel.events.ccc.de/*",
"Locked": false "*://*.chaos.social/*",
} "*://*.events.ccc.de/*"
]
} }
} }
} }