feat(profiles): add sdcv.

Co-authored-by: Andy Ramos <maplewood_broer@8shield.net>
This commit is contained in:
Alexandre Pujol 2023-02-08 16:39:37 +00:00
parent b4a09ab13a
commit 77b9699270
Failed to generate hash of commit
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,24 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
# Copyright (C) 2023 Andy Ramos <maplewood_broer@8shield.net>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/sdcv
profile sdcv @{exec_path} {
include <abstractions/base>
@{exec_path} mr,
@{system_share_dirs}/stardict/dic/{,**} rw,
owner @{HOME}/.stardict/dic/{,**} rw,
owner @{HOME}/{.sdcv,sdcv,.stardict,stardict}* rw,
owner @{user_cache_dirs}/sdcv/{,**} rwk,
include if exists <local/sdcv>
}

View file

@ -172,6 +172,7 @@ runuser complain
s3fs complain
sbctl complain
scrcpy complain
sdcv complain
setpriv complain
sftp-server complain
slirp4netns attach_disconnected,complain