diff --git a/apparmor.d/profiles-s-z/sdcv b/apparmor.d/profiles-s-z/sdcv new file mode 100644 index 00000000..941175f6 --- /dev/null +++ b/apparmor.d/profiles-s-z/sdcv @@ -0,0 +1,24 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2023 Alexandre Pujol +# Copyright (C) 2023 Andy Ramos +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}bin/sdcv +profile sdcv @{exec_path} { + include + + @{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 +} \ No newline at end of file diff --git a/dists/flags/main.flags b/dists/flags/main.flags index 22b0bf5c..380e122a 100644 --- a/dists/flags/main.flags +++ b/dists/flags/main.flags @@ -172,6 +172,7 @@ runuser complain s3fs complain sbctl complain scrcpy complain +sdcv complain setpriv complain sftp-server complain slirp4netns attach_disconnected,complain