Skip to content

Commit

Permalink
Tighten firefox (#275)
Browse files Browse the repository at this point in the history
* Update firefox

* Remove `sys_ptrace` line
  • Loading branch information
nobody43 authored Jan 19, 2024
1 parent 7581eac commit 6556856
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions apparmor.d/groups/browsers/firefox
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ profile firefox @{exec_path} flags=(attach_disconnected) {
owner @{user_share_dirs}/applications/userapp-Firefox-@{rand6}.desktop{,.@{rand6}} rw,
owner @{user_share_dirs}/mime/packages/user-extension-{htm,html,xht,xhtml,shtml}.xml rw,
owner @{user_share_dirs}/mime/packages/user-extension-{htm,html,xht,xhtml,shtml}.xml.* rw,
owner @{user_share_dirs}/sounds/__custom/index.theme r,
owner @{user_share_dirs}/sounds/__custom/*.ogg r,

owner @{config_dirs}/ rw,
owner @{config_dirs}/{extensions,systemextensionsdev}/ rw,
Expand All @@ -172,15 +174,22 @@ profile firefox @{exec_path} flags=(attach_disconnected) {
owner /tmp/user/@{uid}/@{name}/* rwk,
owner /tmp/@{name}/ rw,
owner /tmp/@{name}/* rwk,
owner /tmp/* rw,
owner /tmp/firefox_*/ rw,
owner /tmp/firefox_*/* rwk,
owner /tmp/mozilla_*/ rw,
owner /tmp/mozilla_*/* rw,
owner /tmp/MozillaBackgroundTask-*-removeDirectory/ rw,
owner /tmp/MozillaBackgroundTask-*-removeDirectory/** rwk,
owner /tmp/Mozillato-be-removed-cachePurge-* k,
owner /tmp/Temp-@{uuid}/ rw,
owner /tmp/MozillaBackgroundTask-???????????????-removeDirectory/{**,} rw,
owner /tmp/MozillaBackgroundTask-???????????????-removeDirectory/.parentlock k,
owner /tmp/Mozillato-be-removed-cachePurge-??????????????? rwk,
owner /tmp/Mozilla@{uuid}-cachePurge-??????????????? rwk,
owner /tmp/Mozilla\{@{uuid}\}-cachePurge-??????????????? rwk,
owner /tmp/Temp-@{uuid}/{**,} rw,
owner /tmp/mozilla-temp-@{int} rw,
owner /tmp/@{rand8}.txt w,
owner /tmp/tmp-???.xpi rw,
owner /tmp/.xfsm-ICE-@{rand6} rw,
owner /tmp/tmpaddon r,
owner /tmp/* w, # file downloads (to anywhere)

@{run}/mount/utab r,

Expand Down

0 comments on commit 6556856

Please sign in to comment.