Commit 798401bb authored by Alexander Basov's avatar Alexander Basov
Browse files

Update postgres paths

Some linux distros (e.g. Gentoo) have postgres installed in /usr/lib64.
Update apparmour profile to allow execution of postgres in /usr/lib64
to handle apparmor denial like this:
audit: type=1400 audit(1639935939.256:552): apparmor="DENIED" operation="exec" profile="postgresql_akonadi" name="/usr/lib64/postgresql-14/bin/postgres" pid=6176 comm="sh" requested_mask="x" denied_mask="x" fsuid=1000 ouid=0
parent 8406f93d
Pipeline #112953 passed with stage
in 5 minutes and 5 seconds
......@@ -4,7 +4,7 @@ abi <abi/3.0>,
@{xdg_data_home}=@{HOME}/.local/share
@{postgresqlpath} = /usr/ /usr/lib/postgresql/*/ /usr/lib/postgresql*[0-9]/ /opt/pgsql*/
@{postgresqlpath} = /usr/ /usr/lib{,64}/postgresql/*/ /usr/lib{,64}/postgresql*[0-9]/ /opt/pgsql*/
profile postgresql_akonadi flags=(attach_disconnected) {
#include <abstractions/base>
......
......@@ -6,7 +6,7 @@ abi <abi/3.0>,
@{xdg_config_home}=@{HOME}/.config
@{postgresqlpath} = /usr/ /usr/lib/postgresql/*/ /usr/lib/postgresql*[0-9]/ /opt/pgsql*/
@{postgresqlpath} = /usr/ /usr/lib{,64}/postgresql/*/ /usr/lib{,64}/postgresql*[0-9]/ /opt/pgsql*/
/usr/bin/akonadiserver {
#include <abstractions/base>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment