feat(profile): add epiphany.

Fix  #322
This commit is contained in:
Alexandre Pujol 2024-05-04 13:19:03 +01:00
parent 9dba91296a
commit d69dcad46d
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
3 changed files with 98 additions and 1 deletions

View File

@ -0,0 +1,22 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{lib}/epiphany/ephy-profile-migrator
profile ephy-profile-migrator @{exec_path} {
include <abstractions/base>
include <abstractions/dconf-write>
include <abstractions/gnome-strict>
@{exec_path} mr,
owner @{user_cache_dirs}/epiphany/** rw,
owner @{user_config_dirs}/epiphany/{,**} rw,
owner @{user_share_dirs}/epiphany/.migrated{,.@{rand6}} rw,
include if exists <local/ephy-profile-migrator>
}

View File

@ -0,0 +1,74 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/epiphany
profile epiphany @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/audio-server>
include <abstractions/bus-accessibility>
include <abstractions/bus-system>
include <abstractions/bus/org.freedesktop.GeoClue2>
include <abstractions/common/bwrap>
include <abstractions/common/gnome>
include <abstractions/gstreamer>
include <abstractions/nameservice-strict>
include <abstractions/p11-kit>
include <abstractions/ssl_certs>
include <abstractions/user-download-strict>
capability dac_override,
network inet dgram,
network inet stream,
network inet6 dgram,
network inet6 stream,
network netlink raw,
mount options=(rw rbind) /bindfile@{rand6} -> /newroot/.flatpak-info,
@{exec_path} mr,
@{bin}/bwrap rix,
@{bin}/xdg-dbus-proxy rix,
@{lib}/{,@{multiarch}/}webkit{,2}gtk-*/WebKit{Web,Network}Process rix,
owner /bindfile@{rand6} rw,
owner /.flatpak-info r,
owner @{user_config_dirs}/glib-2.0/ w,
owner @{user_config_dirs}/glib-2.0/settings/ w,
owner @{tmp}/epiphany-*-@{rand6}/{,**} rw,
owner @{tmp}/Serialized@{rand9} rw,
owner @{tmp}/WebKit-Media-@{rand6} rw,
owner @{run}/user/@{uid}/.dbus-proxy/{system,session,a11y}-bus-proxy-@{rand6} rw,
owner @{run}/user/@{uid}/.flatpak/ w,
owner @{run}/user/@{uid}/.flatpak/webkit-*/{,bwrapinfo.json} rw,
owner @{run}/user/@{uid}/webkitgtk/ w,
owner @{run}/user/@{uid}/webkitgtk/a11y-proxy-@{rand6} rw,
owner @{run}/user/@{uid}/webkitgtk/bus-proxy-@{rand6} rw,
owner @{run}/user/@{uid}/webkitgtk/dbus-proxy-@{rand6} rw,
@{sys}/devices/virtual/dmi/id/chassis_type r,
@{sys}/firmware/acpi/pm_profile r,
@{sys}/fs/cgroup/user.slice/user-@{uid}.slice/user@@{uid}.service/app.slice/app-gnome-org.gnome.Epiphany-@{int}.scope/memory.* r,
@{PROC}/@{pid}/cgroup r,
@{PROC}/sys/net/ipv6/conf/all/disable_ipv6 r,
@{PROC}/zoneinfo r,
owner @{PROC}/@{pid}/smaps r,
owner @{PROC}/@{pid}/statm r,
owner @{PROC}/@{pid}/task/@{tid}/comm rw,
deny @{user_share_dirs}/gvfs-metadata/* r,
/dev/video@{int} rw,
include if exists <local/epiphany>
}

View File

@ -98,6 +98,8 @@ dpkg-genbuildinfo complain
drkonqi complain
drkonqi-coredump-cleanup complain
drkonqi-coredump-processor complain
ephy-profile-migrator complain
epiphany attach_disconnected,complain
epiphany-search-provider complain
epiphany-webapp-provider complain
evolution-user-prompter complain
@ -396,4 +398,3 @@ xsettingsd complain
xwaylandvideobridge complain
YACReader attach_disconnected,mediate_deleted,complain
YACReaderLibrary attach_disconnected,mediate_deleted,complain