feat(profiles): refractor all chromium based browsers.

All chromium based browser now use the new chromium abstraction.
This commit is contained in:
Alexandre Pujol 2022-12-09 18:50:57 +00:00
parent 7f231caf1b
commit dd232695d3
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
19 changed files with 366 additions and 645 deletions

View file

@ -0,0 +1,40 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2018-2021 Mikhail Morfikov
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{chromium_install_dirs} = /opt/google/chrome{,-beta,-unstable}
@{exec_path} = @{chromium_install_dirs}/google-chrome{,-beta,-unstable}
profile chrome-wrapper @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
@{exec_path} r,
/{usr/,}bin/{,ba,da}sh rix,
/{usr/,}bin/cat rix,
/{usr/,}bin/dirname rix,
/{usr/,}bin/mkdir rix,
/{usr/,}bin/readlink rix,
/{usr/,}bin/touch rix,
/{usr/,}bin/which{,.debianutils} rix,
@{chromium_install_dirs}/chrome rPx,
owner @{user_config_dirs}/chrome-flags.conf r,
owner @{PROC}/@{pid}/fd/* rw,
# File Inherit
owner @{HOME}/.xsession-errors w,
# Silencer
deny @{user_share_dirs}/gvfs-metadata/* r,
include if exists <local/chrome-wrapper>
}