# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{lib}/dleyna-renderer-service
profile dleyna-renderer-service @{exec_path} {
  include <abstractions/base>

  network inet dgram,
  network inet6 dgram,
  network inet stream,
  network inet6 stream,
  network netlink dgram,

  @{exec_path} mr,

  /etc/dleyna-renderer-service.conf r,

  owner @{user_config_dirs}/dleyna-renderer-service.conf rw,

  include if exists <local/dleyna-renderer-service>
}

# vim:syntax=apparmor
