logo

apparmor.d

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

usr.sbin.ntpd (2216B)


  1. # ------------------------------------------------------------------
  2. #
  3. # Copyright (C) 2002-2009 Novell/SUSE
  4. # Copyright (C) 2010 Canonical Ltd.
  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. abi <abi/3.0>,
  12. include <tunables/global>
  13. include <tunables/ntpd>
  14. profile ntpd /usr/{bin,sbin}/{,open}ntpd flags=(attach_disconnected) {
  15. include <abstractions/base>
  16. include <abstractions/nameservice>
  17. include <abstractions/openssl>
  18. include <abstractions/ssl_certs>
  19. include <abstractions/xad>
  20. capability dac_override,
  21. capability ipc_lock,
  22. capability net_bind_service,
  23. capability setgid,
  24. capability setuid,
  25. capability sys_chroot,
  26. capability sys_resource,
  27. capability sys_time,
  28. capability sys_nice,
  29. network unspec dgram,
  30. /drift/ntp.drift rwl,
  31. /drift/ntp.drift.TEMP rwl,
  32. /etc/ntp.conf r,
  33. /etc/ntp/drift* rwl,
  34. /etc/ntp.keys r,
  35. /etc/ntp/step-tickers r,
  36. /etc/ntpd.conf r,
  37. /etc/ntpd.conf.tmp r,
  38. /tmp/ntp* rwl,
  39. /{usr/,usr/local/,}{s,}bin/ r,
  40. /usr/{bin,sbin}/{,open}ntpd rmix,
  41. /var/db/ r,
  42. /var/db/ntpd.drift rwl,
  43. /var/lib/ntp/drift rwl,
  44. /var/lib/ntp/drift.TEMP rwl,
  45. /var/lib/ntp/drift/driftfile rw,
  46. /var/lib/ntp/drift/driftfile.TEMP rw,
  47. /var/lib/ntp/drift/ntp.drift rw,
  48. /var/lib/ntp/drift/ntp.drift.TEMP rw,
  49. /var/lib/ntp/etc/* r,
  50. /var/lib/ntp/ntp.drift rw,
  51. /var/lib/ntp/ntp.drift.TEMP rw,
  52. /var/lib/ntp@{run}/ntp/ntpd.pid w,
  53. /var/log/ntp w,
  54. /var/log/ntp.log w,
  55. /var/log/ntpstats/clockstats* lrw,
  56. /var/log/ntpstats/loopstats* lrw,
  57. /var/log/ntpstats/peerstats* lrw,
  58. /var/opt/novell/xad/rpc/xadsd rw,
  59. @{run}/nscd/services r,
  60. @{run}/ntpd.pid w,
  61. @{run}/ntp/ntpd.pid w,
  62. @{run}/ntpd.sock rwl,
  63. /var/tmp/ntp* rwl,
  64. @{PROC}/@{pid}/net/if_inet6 r,
  65. # allow access for when chrooted
  66. /var/lib/ntp/@{PROC}/@{pid}/net/if_inet6 r,
  67. /var/lib/ntp/@{PROC}/sys/kernel/ngroups_max r,
  68. @{NTPD_DEVICE} rw,
  69. # Site-specific additions and overrides. See local/README for details.
  70. include if exists <local/usr.sbin.ntpd>
  71. }