# Copyright (C) 2000-2020 Synology Inc. All rights reserved.

#include <abstractions/Contacts/syno/directory_service>
#include <abstractions/Contacts/syno/synoservice>
#include <abstractions/Contacts/ability/config>

# SQL schema
/volume*/@appstore/Contacts/etc/sql/** r,

# db binary
/volume*/@appstore/Contacts/tool/contacts-db rpx,

# for modifying radicale config
/volume*/@appstore/Contacts/etc/radicale.conf rwk,

# we need dac_override to access to files that owner is not root
# see: https://danwalsh.livejournal.com/69478.html
# PS. need this to write to radicale config
capability dac_override,