# vim:syntax=apparmor # ------------------------------------------------------------------ # # Copyright (C) 2018-2021 Mikhail Morfikov # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU General Public # License published by the Free Software Foundation. # # ------------------------------------------------------------------ abi , include @{CHROMIUM_INSTALLDIR} = /{usr/,}lib/chromium @{CHROMIUM_HOMEDIR} = @{HOME}/.config/chromium @{CHROMIUM_CACHEDIR} = @{HOME}/.cache/chromium @{exec_path} = /{usr/,}bin/chromium profile chromium @{exec_path} { include include include @{exec_path} r, @{CHROMIUM_INSTALLDIR}/chromium rPx, /{usr/,}bin/{,ba,da}sh rix, /{usr/,}bin/uname rix, /{usr/,}bin/{,e}grep rix, /{usr/,}bin/expr rix, /{usr/,}bin/cat rix, /{usr/,}bin/rm rix, /{usr/,}bin/cut rix, /{usr/,}bin/tr rix, /{usr/,}bin/ls rix, /{usr/,}bin/mktemp rix, # For chromium -g /{usr/,}bin/gdb rPUx, owner /tmp/chromiumargs.?????? rw, # For a temp profile owner /tmp/tmp.*/ rw, owner /tmp/tmp.*/** rwk, # For "chromium --help" /{usr/,}bin/man rPUx, /{usr/,}bin/sed rix, /etc/chromium.d/{,*} r, /etc/debian_version r, /usr/share/chromium/extensions/ r, # file_inherit owner /dev/tty[0-9]* rw, owner @{HOME}/.xsession-errors w, include if exists }