# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Roman Beslik <me@beroal.in.ua>
# SPDX-License-Identifier: GPL-2.0-only

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{bin}/cas
profile cas @{exec_path} {
  include <abstractions/base>
  include <abstractions/consoles>

  @{exec_path} mr,

  @{system_share_dirs}/cas/{,**} r,

  owner @{HOME}/.aMule/aMule-online-sign.html w,
  owner @{HOME}/.aMule/amulesig.dat r,
  owner @{HOME}/.aMule/casrc rw,

  include if exists <local/cas>
}

# vim:syntax=apparmor
