apparmor.d/apparmor.d/groups/gnome/gnome-keyring-daemon

40 lines
1.1 KiB
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2017-2021 Mikhail Morfikov
# 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/gnome-keyring-daemon
profile gnome-keyring-daemon @{exec_path} {
include <abstractions/base>
include <abstractions/openssl>
include <abstractions/deny-root-dir-access>
# Remove the following error:
# gnome-keyring-daemon: insufficient process capabilities, unsecure memory might get used
capability ipc_lock,
signal (send) set=(term) peer=ssh-agent,
@{exec_path} mr,
/{usr/,}bin/ssh-add rix,
/{usr/,}bin/ssh-agent rPx,
# Keyrings location
owner @{user_share_dirs}/keyrings/ rw,
owner @{user_share_dirs}/keyrings/* rwl,
# Seahorse and SSH keys
owner @{HOME}/@{XDG_SSH_DIR}/{,**} r,
owner @{run}/user/@{uid}/keyring/ rw,
owner @{run}/user/@{uid}/keyring/* rw,
owner @{run}/user/@{uid}/ssh-askpass.[0-9A-Z]*/{,*} rw,
@{PROC}/[0-9]*/fd/ r,
include if exists <local/gnome-keyring-daemon>
}