logo

apparmor.d

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

usr.sbin.dovecot (2574B)


  1. # ------------------------------------------------------------------
  2. #
  3. # Copyright (C) 2009-2013 Canonical Ltd.
  4. # Copyright (C) 2011-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 /usr/{bin,sbin}/dovecot flags=(attach_disconnected) {
  15. include <abstractions/authentication>
  16. include <abstractions/base>
  17. include <abstractions/dovecot-common>
  18. include <abstractions/mysql>
  19. include <abstractions/nameservice>
  20. include <abstractions/ssl_certs>
  21. include <abstractions/ssl_keys>
  22. capability chown,
  23. capability dac_override,
  24. capability dac_read_search,
  25. capability fsetid,
  26. capability kill,
  27. capability net_bind_service,
  28. capability setuid,
  29. capability sys_chroot,
  30. capability sys_resource,
  31. signal send peer=/usr/lib/dovecot/*,
  32. signal send peer=dovecot-*,
  33. unix (receive, send) type=stream peer=(label=/usr/lib/dovecot/anvil),
  34. unix (receive, send) type=stream peer=(label=dovecot-anvil),
  35. /etc/dovecot/** r,
  36. /etc/mtab r,
  37. /etc/lsb-release r,
  38. /etc/SuSE-release r,
  39. @{PROC}/@{pid}/mounts r,
  40. @{PROC}/sys/fs/suid_dumpable r,
  41. /usr/bin/doveconf rix,
  42. /usr/lib/dovecot/anvil mrPx,
  43. /usr/lib/dovecot/auth mrPx,
  44. /usr/lib/dovecot/config mrPx,
  45. /usr/lib/dovecot/dict mrPx,
  46. /usr/lib/dovecot/director mrPx,
  47. /usr/lib/dovecot/doveadm-server mrPx,
  48. /usr/lib/dovecot/dovecot-auth Pxmr,
  49. /usr/lib/dovecot/imap Pxmr,
  50. /usr/lib/dovecot/imap-login Pxmr,
  51. /usr/lib/dovecot/lmtp mrPx,
  52. /usr/lib/dovecot/log mrPx,
  53. /usr/lib/dovecot/managesieve mrPx,
  54. /usr/lib/dovecot/managesieve-login Pxmr,
  55. /usr/lib/dovecot/pop3 mrPx,
  56. /usr/lib/dovecot/pop3-login Pxmr,
  57. /usr/lib/dovecot/replicator mrPx,
  58. /usr/lib/dovecot/script-login Px,
  59. /usr/lib/dovecot/ssl-build-param rix,
  60. /usr/lib/dovecot/ssl-params mrPx,
  61. /usr/lib/dovecot/stats Px,
  62. /usr/{bin,sbin}/dovecot mrix,
  63. /usr/share/dovecot/dh.pem r,
  64. /usr/share/dovecot/protocols.d/ r,
  65. /usr/share/dovecot/protocols.d/** r,
  66. /var/lib/dovecot/ w,
  67. /var/lib/dovecot/* rwkl,
  68. /var/spool/postfix/private/auth w,
  69. /var/spool/postfix/private/dovecot-lmtp w,
  70. @{run}/dovecot/ rw,
  71. @{run}/dovecot/** rw,
  72. link @{run}/dovecot/** -> /var/lib/dovecot/**,
  73. # Site-specific additions and overrides. See local/README for details.
  74. include if exists <local/usr.sbin.dovecot>
  75. }