~linkat/+junk/linkat-servidor-18.04

« back to all changes in this revision

Viewing changes to debian/linkat-servidor/usr/share/linkat/linkat-servidor/plantilles/usr.sbin.ntpd

  • Committer: Francesc Konate
  • Date: 2019-09-18 10:48:26 UTC
  • Revision ID: jfkoga@tutanota.com-20190918104826-96gc7yaeonrqk3cp
125: Removed apparmor workarounds plantilles/nextcloud.sh, plantilles/nextcloud-restart.sh, /patches/03-snap.sh, /patches/patches.sh, /configurador/roles/ldap/tasks/main.yml | Removed templates usr.bin.freshclam, usr.lib.snapd.snap-confine.real, usr.sbin.clamd, usr.sbin.cupsd, usr.sbin.ntpd

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# vim:syntax=apparmor
2
 
# Updated for Ubuntu by: Jamie Strandboge <jamie@canonical.com>
3
 
# ------------------------------------------------------------------
4
 
#
5
 
#    Copyright (C) 2002-2005 Novell/SUSE
6
 
#    Copyright (C) 2009-2012 Canonical Ltd.
7
 
#
8
 
#    This program is free software; you can redistribute it and/or
9
 
#    modify it under the terms of version 2 of the GNU General Public
10
 
#    License published by the Free Software Foundation.
11
 
#
12
 
# ------------------------------------------------------------------
13
 
 
14
 
#include <tunables/global>
15
 
#include <tunables/ntpd>
16
 
/usr/sbin/ntpd flags=(attach_disconnected) {
17
 
  #include <abstractions/base>
18
 
  #include <abstractions/nameservice>
19
 
  #include <abstractions/user-tmp>
20
 
 
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
 
 
30
 
  # ntp uses AF_INET, AF_INET6 and AF_UNSPEC
31
 
  network dgram,
32
 
  network stream,
33
 
 
34
 
  @{PROC}/net/if_inet6 r,
35
 
  @{PROC}/*/net/if_inet6 r,
36
 
  @{NTPD_DEVICE} rw,
37
 
  # pps devices are almost exclusively used with NTP
38
 
  /dev/pps[0-9]* rw,
39
 
 
40
 
  /{,s}bin/      r,
41
 
  /usr/{,s}bin/  r,
42
 
  /usr/local/{,s}bin/  r,
43
 
  /usr/sbin/ntpd rmix,
44
 
 
45
 
  /etc/ntp.conf r,
46
 
  /etc/ntp.conf.dhcp r,
47
 
  /etc/ntpd.conf r,
48
 
  /etc/ntpd.conf.tmp r,
49
 
  /run/ntp.conf.dhcp r,
50
 
 
51
 
  /etc/ntp.keys r,
52
 
  /etc/ntp/** r,
53
 
 
54
 
  /etc/ntp.drift rwl,
55
 
  /etc/ntp.drift.TEMP rwl,
56
 
  /etc/ntp/drift* rwl,
57
 
  /var/lib/ntp/*drift rw,
58
 
  /var/lib/ntp/*drift.TEMP rw,
59
 
 
60
 
  /var/log/ntp w,
61
 
  /var/log/ntp.log w,
62
 
  /var/log/ntpd w,
63
 
  /var/log/ntpstats/clockstats* rwl,
64
 
  /var/log/ntpstats/loopstats*  rwl,
65
 
  /var/log/ntpstats/peerstats*  rwl,
66
 
  /var/log/ntpstats/protostats* rwl,
67
 
  /var/log/ntpstats/rawstats*   rwl,
68
 
  /var/log/ntpstats/sysstats*   rwl,
69
 
 
70
 
  /{,var/}run/ntpd.pid w,
71
 
 
72
 
  # to be able to check for running ntpdate
73
 
  /run/lock/ntpdate wk,
74
 
 
75
 
  # samba4 ntp signing socket
76
 
  /{,var/}run/samba/ntp_signd/socket rw,
77
 
 
78
 
  # samba4 winbindd pipe
79
 
  /run/samba/winbindd/pipe rw,
80
 
 
81
 
  # For use with clocks that report via shared memory (e.g. gpsd),
82
 
  # you may need to give ntpd access to all of shared memory, though
83
 
  # this can be considered dangerous. See https://launchpad.net/bugs/722815
84
 
  # for details. To enable, add this to local/usr.sbin.ntpd:
85
 
  #     capability ipc_owner,
86
 
 
87
 
  # Site-specific additions and overrides. See local/README for details.
88
 
  #include <local/usr.sbin.ntpd>
89
 
  /etc/ldap/ldap.conf r,
90
 
}