logo

apparmor.d

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/apparmor.d.git

usr.lib.dovecot.script-login (1104B)


  1. # ------------------------------------------------------------------
  2. #
  3. # Copyright (C) 2020 Michael Hirmke
  4. # Copyright (C) 2020 Christian Boltz
  5. #
  6. # This program is free software; you can redistribute it and/or
  7. # modify it under the terms of version 2 of the GNU General Public
  8. # License published by the Free Software Foundation.
  9. #
  10. # ------------------------------------------------------------------
  11. # vim: ft=apparmor
  12. abi <abi/3.0>,
  13. include <tunables/global>
  14. profile dovecot-script-login /usr/lib/dovecot/script-login {
  15. include <abstractions/base>
  16. include <abstractions/dovecot-common>
  17. include <abstractions/nameservice>
  18. capability setuid,
  19. /usr/lib/dovecot/script-login mrPx,
  20. # NOTE: You'll need to allow execution of your actual login script.
  21. # The recommended way is to add a rule for it in local/usr.lib.dovecot.script-login
  22. # for example
  23. # /home/vmail/bin/postlogin.sh Px,
  24. # and then to create the profile for the script.
  25. # Site-specific additions and overrides. See local/README for details.
  26. include if exists <local/usr.lib.dovecot.script-login>
  27. }