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

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{bin}/uuidd
profile uuidd @{exec_path} flags=(attach_disconnected) {
  include <abstractions/base>
  include <abstractions/consoles>

  network inet dgram,

  @{exec_path} mr,

  owner /var/lib/libuuid/clock.txt rwk,

  @{run}/uuidd/request rw,
  @{att}/@{run}/uuidd/request rw,

  include if exists <local/uuidd>
}

# vim:syntax=apparmor
