diff --git a/apparmor.d/groups/bus/ibus-engine-table b/apparmor.d/groups/bus/ibus-engine-table new file mode 100644 index 00000000..9e110491 --- /dev/null +++ b/apparmor.d/groups/bus/ibus-engine-table @@ -0,0 +1,19 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2022 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = @{libexec}/ibus-engine-table +profile ibus-engine-table @{exec_path} { + include + include + + @{exec_path} mr, + + /{usr/,}bin/python3.[0-9]* rix, + + include if exists +} \ No newline at end of file diff --git a/apparmor.d/groups/bus/ibus-memconf b/apparmor.d/groups/bus/ibus-memconf new file mode 100644 index 00000000..e13dc99c --- /dev/null +++ b/apparmor.d/groups/bus/ibus-memconf @@ -0,0 +1,22 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2022 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = @{libexec}/ibus-memconf +profile ibus-memconf @{exec_path} { + include + include + + @{exec_path} mr, + + /var/lib/gdm{3,}/.config/ibus/bus/ r, + /var/lib/gdm{3,}/.config/ibus/bus/[0-9a-f]*-unix-[0-9]* r, + + owner @{user_config_dirs}/ibus/bus/{,[0-9a-f]*-unix-wayland-[0-9]} r, + + include if exists +} \ No newline at end of file