  profile FreshRSS flags=(attach_disconnected) {
    include <abstractions/php-fpm>

    /var/log/FreshRSS/FreshRSS.log wlk,

    /srv/www/vhosts/FreshRSS/ r,
    /srv/www/vhosts/FreshRSS/** r,

    owner /srv/www/vhosts/FreshRSS/data/** rwlk,

    owner /srv/www/vhosts/FreshRSS/data/** rwlk,
    owner /srv/www/vhosts/FreshRSS/tmp/** rwlk,
    owner /srv/www/vhosts/FreshRSS/sessions/ r,
    owner /srv/www/vhosts/FreshRSS/sessions/** rwlk,

    owner /tmp/*.freshrss.lock rwlk,

    ###
    # include snippets provides e.g. by plugin directories
    #
    # We use the directory layout for abstraction includes in AppArmor 3
    #
    include if exists <php-fpm.d/FreshRSS.d>
    #
    # allow admins to add snippets as well.
    #
    include if exists <local/php-fpm.d/FreshRSS.d>
    #
    ###
  }
