logo

apparmor.d

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

sbin.syslog-ng (2059B)


  1. # ------------------------------------------------------------------
  2. #
  3. # Copyright (C) 2006-2009 Novell/SUSE
  4. # Copyright (C) 2006 Christian Boltz
  5. # Copyright (C) 2010 Canonical Ltd.
  6. #
  7. # This program is free software; you can redistribute it and/or
  8. # modify it under the terms of version 2 of the GNU General Public
  9. # License published by the Free Software Foundation.
  10. #
  11. # ------------------------------------------------------------------
  12. abi <abi/3.0>,
  13. include <tunables/global>
  14. #define this to be where syslog-ng is chrooted
  15. @{CHROOT_BASE}=""
  16. profile syslog-ng /{usr/,}{bin,sbin}/syslog-ng {
  17. include <abstractions/base>
  18. include <abstractions/consoles>
  19. include <abstractions/nameservice>
  20. include <abstractions/mysql>
  21. include <abstractions/openssl>
  22. include <abstractions/python>
  23. include <abstractions/hosts_access>
  24. capability chown,
  25. capability dac_override,
  26. capability dac_read_search,
  27. capability fsetid,
  28. capability fowner,
  29. capability sys_tty_config,
  30. capability sys_resource,
  31. capability syslog,
  32. unix (receive) type=dgram,
  33. unix (receive) type=stream,
  34. /dev/log w,
  35. /dev/syslog w,
  36. /dev/tty10 rw,
  37. /dev/xconsole rw,
  38. /dev/kmsg r,
  39. /etc/machine-id r,
  40. /etc/syslog-ng/* r,
  41. /etc/syslog-ng/conf.d/ r,
  42. /etc/syslog-ng/conf.d/* r,
  43. @{PROC}/kmsg r,
  44. /{usr/,}{bin,sbin}/syslog-ng mr,
  45. @{sys}/devices/system/cpu/online r,
  46. /usr/share/syslog-ng/** r,
  47. /var/lib/syslog-ng/syslog-ng-?????.qf rw,
  48. # chrooted applications
  49. @{CHROOT_BASE}/var/lib/*/dev/log w,
  50. @{CHROOT_BASE}/var/lib/syslog-ng/syslog-ng.persist* rw,
  51. @{CHROOT_BASE}/var/log/** w,
  52. @{CHROOT_BASE}/@{run}/syslog-ng.pid krw,
  53. @{CHROOT_BASE}/@{run}/syslog-ng.ctl rw,
  54. /{var,var/run,run}/log/journal/ r,
  55. /{var,var/run,run}/log/journal/*/ r,
  56. /{var,var/run,run}/log/journal/*/*.journal r,
  57. /{var,var/run,run}/log/journal/*.journal r,
  58. @{run}/syslog-ng.ctl a,
  59. @{run}/syslog-ng/additional-log-sockets.conf r,
  60. # Site-specific additions and overrides. See local/README for details.
  61. include if exists <local/sbin.syslog-ng>
  62. }