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

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{lib}/systemd/systemd-socket-proxyd
@{att} = ""
profile systemd-socket-proxyd /{,usr/}lib{,exec,32,64}/systemd/systemd-socket-proxyd flags=(complain) {
  include <abstractions/base-strict>
  include <abstractions/common/systemd>

  capability net_admin,

  network inet stream,
  network inet6 stream,

  @{exec_path} mr,

  include if exists <local/systemd-socket-proxyd>
}

# vim:syntax=apparmor
