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.dovecot-lda (2866B)


  1. # ------------------------------------------------------------------
  2. #
  3. # Copyright (C) 2013-2020 Christian Boltz
  4. #
  5. # This program is free software; you can redistribute it and/or
  6. # modify it under the terms of version 2 of the GNU General Public
  7. # License published by the Free Software Foundation.
  8. #
  9. # ------------------------------------------------------------------
  10. # vim: ft=apparmor
  11. abi <abi/3.0>,
  12. include <tunables/global>
  13. include <tunables/dovecot>
  14. profile dovecot-dovecot-lda /usr/lib/dovecot/dovecot-lda flags=(attach_disconnected) {
  15. include <abstractions/base>
  16. include <abstractions/nameservice>
  17. include <abstractions/dovecot-common>
  18. capability setuid,
  19. @{DOVECOT_MAILSTORE}/ rw,
  20. @{DOVECOT_MAILSTORE}/** rwkl,
  21. /etc/dovecot/** r,
  22. @{PROC}/*/mounts r,
  23. owner /tmp/dovecot.lda.* rw,
  24. @{run}/dovecot/mounts r,
  25. @{run}/dovecot/auth-userdb rw,
  26. /usr/bin/doveconf mrix,
  27. /usr/lib/dovecot/dovecot-lda mrix,
  28. /usr/{bin,sbin}/sendmail Cx -> sendmail,
  29. /usr/share/dovecot/protocols.d/ r,
  30. /usr/share/dovecot/protocols.d/** r,
  31. # Site-specific additions and overrides. See local/README for details.
  32. include if exists <local/usr.lib.dovecot.dovecot-lda>
  33. profile sendmail /usr/{bin,sbin}/sendmail flags=(attach_disconnected) {
  34. # this profile is based on the usr.sbin.sendmail profile in extras
  35. # and should support both postfix' and sendmail's sendmail binary
  36. include <abstractions/base>
  37. include <abstractions/consoles>
  38. include <abstractions/nameservice>
  39. include <abstractions/user-tmp>
  40. include <abstractions/postfix-common>
  41. include <abstractions/hosts_access>
  42. capability sys_ptrace,
  43. /etc/aliases rw, # newaliases is a symlink to sendmail, so it's
  44. /etc/aliases.db rw, # actually the same binary
  45. /etc/fstab r,
  46. /etc/mail/* r,
  47. /etc/mail/statistics rw,
  48. /etc/mtab r,
  49. /etc/postfix/aliases r,
  50. /etc/postfix/aliases.db rw, # newaliases again
  51. /etc/sendmail.cf r,
  52. /etc/sendmail.cw r,
  53. /etc/shells r,
  54. @{PROC}/loadavg r,
  55. @{PROC}/net/if_inet6 r,
  56. /root/.forward r,
  57. /root/dead.letter w,
  58. /usr/bin/procmail Px,
  59. /usr/lib/postfix/{bin/,sbin/,}master Px,
  60. /usr/lib/postfix/{bin/,sbin/,}showq Px,
  61. /usr/lib/postfix/{bin/,sbin/,}smtpd Px,
  62. /usr/{bin,sbin}/postalias Px,
  63. /usr/{bin,sbin}/postdrop Px,
  64. /usr/{bin,sbin}/postfix Px,
  65. /usr/{bin,sbin}/postqueue Px,
  66. /usr/{bin,sbin}/sendmail mrix,
  67. /usr/{bin,sbin}/sendmail.postfix mrix,
  68. /usr/{bin,sbin}/sendmail.sendmail mrix,
  69. @{run}/sendmail.pid rwl,
  70. @{run}/sm-client.pid rwl,
  71. @{run}/utmp rw,
  72. /var/spool/clientmqueue/* rwl,
  73. /var/spool/mail/* rwl,
  74. /var/spool/mqueue/* rwl,
  75. /var/spool/postfix/maildrop/* rwl,
  76. /var/spool/postfix/public/pickup w,
  77. /var/spool/postfix/public/qmgr w,
  78. /var/spool/postfix/public/showq w,
  79. }
  80. }