Mirantis/virtlet

View on GitHub
deploy/apparmor/vms

Summary

Maintainability
Test Coverage
#include <tunables/global>

profile vms flags=(attach_disconnected) {
  #include <abstractions/libvirt-qemu>

  ptrace trace peer=@{profile_name},
  ptrace readby,
  ptrace tracedby,

  /{usr/,}bin/sleep rix,
  /{usr/,}bin/cut rix,
  /{var/,}tmp/{,**} r,

  /var/lib/virtlet/vms.procfile w,
  /vms.sh rix,

  @{PROC}/@{pid}/stat r,

}