feat(profiles): refractor all chromium based browsers.
All chromium based browser now use the new chromium abstraction.
This commit is contained in:
parent
7f231caf1b
commit
dd232695d3
19 changed files with 366 additions and 645 deletions
40
apparmor.d/groups/browsers/chrome-wrapper
Normal file
40
apparmor.d/groups/browsers/chrome-wrapper
Normal 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>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue