This file is indexed.

/etc/apparmor.d/usr.sbin.chronyd is in chrony 3.2-4ubuntu4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Last Modified: Sat Jan 20 10:45:05 2018
#include <tunables/global>
#include <tunables/sys>

/usr/sbin/chronyd (attach_disconnected) {
  #include <abstractions/base>
  #include <abstractions/nameservice>

  capability sys_time,
  capability net_bind_service,
  capability setuid,
  capability setgid,
  capability sys_nice,
  capability sys_resource,
  # for /run/chrony to be created
  capability chown,
  # for hwtimestamp
  capability net_admin,

  /usr/sbin/chronyd mr,

  /etc/chrony/{,**} r,
  /{,var/}run/chronyd.pid w,
  /{,var/}run/chrony/{,*} rw,
  /var/lib/chrony/{,*} r,
  /var/lib/chrony/* w,
  /var/log/chrony/{,*} r,
  /var/log/chrony/* w,

  # Using the “tempcomp” directive gives chronyd the ability to improve
  # the stability and accuracy of the clock by compensating the temperature
  # changes measured by a sensor close to the oscillator.
  @{sys}/class/hwmon/hwmon[0-9]*/temp[0-9]*_input r,

  # rtc
  /etc/adjtime r,
  /dev/rtc{,[0-9]*} rw,

  # gps devices
  /dev/pps[0-9]* rw,
  /dev/ptp[0-9]* rw,

  # For use with clocks that report via shared memory (e.g. gpsd),
  # you may need to give ntpd access to all of shared memory, though
  # this can be considered dangerous. See https://launchpad.net/bugs/722815
  # for details. To enable, add this to local/usr.sbin.chronyd:
  #     capability ipc_owner,

  # Site-specific additions and overrides. See local/README for details.
  #include <local/usr.sbin.chronyd>
}