# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{bin}/chrome-gnome-shell
@{att} = ""
profile chrome-gnome-shell /{,usr/}bin/chrome-gnome-shell flags=(complain) {
  include <abstractions/base-strict>
  include <abstractions/dconf-write>
  include <abstractions/gschemas>
  include <abstractions/nameservice-strict>
  include <abstractions/python>
  include <abstractions/ssl_certs>

  network inet dgram,
  network inet6 dgram,
  network inet stream,
  network inet6 stream,
  network netlink raw,

  @{exec_path} mr,
  @{bin}/ r,

  owner @{PROC}/@{pid}/mounts r,

  deny @{HOME}/.* r,

  include if exists <local/chrome-gnome-shell>
}

# vim:syntax=apparmor
