52 lines
No EOL
1.5 KiB
Text
52 lines
No EOL
1.5 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{lib}/epiphany-search-provider
|
|
profile epiphany-search-provider @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/dconf-write>
|
|
include <abstractions/enchant>
|
|
include <abstractions/fonts>
|
|
include <abstractions/gnome-strict>
|
|
include <abstractions/graphics>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/p11-kit>
|
|
include <abstractions/ssl_certs>
|
|
include <abstractions/X-strict>
|
|
|
|
network inet dgram,
|
|
network inet6 dgram,
|
|
network inet stream,
|
|
network inet6 stream,
|
|
network netlink raw,
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{lib}/webkitgtk-*/WebKitNetworkProcess rix,
|
|
|
|
owner @{user_cache_dirs}/epiphany/{,**} rwk,
|
|
owner @{user_share_dirs}/epiphany/{,**} rwk,
|
|
|
|
owner /tmp/ContentRuleList@{rand6} rw,
|
|
owner /tmp/Serialized* rw,
|
|
|
|
@{sys}/devices/virtual/dmi/id/chassis_type r,
|
|
@{sys}/fs/cgroup/user.slice/user-@{uid}.slice/user@@{uid}.service/session.slice/dbus.service/memory.* r,
|
|
|
|
@{PROC}/driver/nvidia/params r,
|
|
@{PROC}/modules r,
|
|
@{PROC}/sys/dev/i915/perf_stream_paranoid r,
|
|
@{PROC}/sys/net/ipv6/conf/all/disable_ipv6 r,
|
|
@{PROC}/zoneinfo r,
|
|
owner @{PROC}/@{pid}/cgroup r,
|
|
owner @{PROC}/@{pid}/cmdline r,
|
|
|
|
deny @{user_share_dirs}/gvfs-metadata/* r,
|
|
|
|
include if exists <local/epiphany-search-provider>
|
|
} |