2006-04-11 21:52:54 +00:00
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
2010-08-05 14:00:02 -05:00
|
|
|
# Copyright (C) 2002-2009 Novell/SUSE
|
|
|
|
# Copyright (C) 2010 Canonical Ltd.
|
2006-04-11 21:52:54 +00:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of version 2 of the GNU General Public
|
|
|
|
# License published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
|
|
|
#include <tunables/global>
|
2008-04-10 08:54:05 +00:00
|
|
|
#include <tunables/ntpd>
|
2006-04-11 21:52:54 +00:00
|
|
|
/usr/sbin/ntpd {
|
|
|
|
#include <abstractions/base>
|
|
|
|
#include <abstractions/nameservice>
|
2013-09-17 00:23:32 +02:00
|
|
|
#include <abstractions/openssl>
|
2007-01-19 12:05:05 +00:00
|
|
|
#include <abstractions/xad>
|
2006-04-11 21:52:54 +00:00
|
|
|
|
2008-11-05 14:10:08 +00:00
|
|
|
capability dac_override,
|
2006-04-11 21:52:54 +00:00
|
|
|
capability ipc_lock,
|
|
|
|
capability net_bind_service,
|
|
|
|
capability setgid,
|
|
|
|
capability setuid,
|
|
|
|
capability sys_chroot,
|
|
|
|
capability sys_resource,
|
|
|
|
capability sys_time,
|
2011-08-08 22:16:06 +02:00
|
|
|
capability sys_nice,
|
2006-04-11 21:52:54 +00:00
|
|
|
|
|
|
|
/drift/ntp.drift rwl,
|
|
|
|
/drift/ntp.drift.TEMP rwl,
|
|
|
|
/etc/ntp.conf r,
|
|
|
|
/etc/ntp/drift* rwl,
|
2008-11-05 14:08:43 +00:00
|
|
|
/etc/ntp.keys r,
|
2006-04-11 21:52:54 +00:00
|
|
|
/etc/ntp/step-tickers r,
|
2007-08-06 15:28:24 +00:00
|
|
|
/etc/ntpd.conf r,
|
2008-02-19 10:35:19 +00:00
|
|
|
/etc/ntpd.conf.tmp r,
|
2008-11-05 11:57:34 +00:00
|
|
|
|
2007-01-05 12:38:13 +00:00
|
|
|
/tmp/ntp* rwl,
|
2006-08-04 18:13:59 +00:00
|
|
|
/usr/sbin/ntpd rmix,
|
2006-04-11 21:52:54 +00:00
|
|
|
/var/lib/ntp/drift rwl,
|
|
|
|
/var/lib/ntp/drift.TEMP rwl,
|
2013-11-14 21:48:51 +01:00
|
|
|
/var/lib/ntp/drift/driftfile rw,
|
|
|
|
/var/lib/ntp/drift/driftfile.TEMP rw,
|
2007-08-14 18:51:00 +00:00
|
|
|
/var/lib/ntp/drift/ntp.drift rw,
|
2007-05-16 22:47:40 +00:00
|
|
|
/var/lib/ntp/drift/ntp.drift.TEMP rw,
|
2007-08-15 17:31:26 +00:00
|
|
|
/var/lib/ntp/etc/* r,
|
2007-06-01 21:17:42 +00:00
|
|
|
/var/lib/ntp/ntp.drift rw,
|
2007-08-06 15:28:24 +00:00
|
|
|
/var/lib/ntp/ntp.drift.TEMP rw,
|
2011-07-14 07:57:57 -05:00
|
|
|
/var/lib/ntp/{,var/}run/ntp/ntpd.pid w,
|
2006-04-11 21:52:54 +00:00
|
|
|
/var/log/ntp w,
|
|
|
|
/var/log/ntp.log w,
|
2007-06-05 19:47:53 +00:00
|
|
|
/var/log/ntpstats/loopstats* lrw,
|
2007-08-06 15:28:24 +00:00
|
|
|
/var/log/ntpstats/peerstats* lrw,
|
2007-01-19 12:05:05 +00:00
|
|
|
/var/opt/novell/xad/rpc/xadsd rw,
|
2011-07-14 07:57:57 -05:00
|
|
|
/{,var/}run/nscd/services r,
|
|
|
|
/{,var/}run/ntpd.pid w,
|
2014-10-06 19:57:46 +02:00
|
|
|
/{,var/}run/ntp/ntpd.pid w,
|
2007-01-05 12:38:13 +00:00
|
|
|
/var/tmp/ntp* rwl,
|
2013-01-02 15:34:38 -08:00
|
|
|
@{PROC}/@{pid}/net/if_inet6 r,
|
2008-11-05 14:08:43 +00:00
|
|
|
|
|
|
|
# allow access for when chrooted
|
2013-01-02 15:34:38 -08:00
|
|
|
/var/lib/ntp/@{PROC}/@{pid}/net/if_inet6 r,
|
2011-02-15 10:54:30 -08:00
|
|
|
/var/lib/ntp/@{PROC}/sys/kernel/ngroups_max r,
|
2010-08-05 14:00:02 -05:00
|
|
|
|
2008-11-05 14:23:25 +00:00
|
|
|
@{NTPD_DEVICE} rw,
|
2010-08-05 14:00:02 -05:00
|
|
|
|
|
|
|
# Site-specific additions and overrides. See local/README for details.
|
|
|
|
#include <local/usr.sbin.ntpd>
|
2006-04-11 21:52:54 +00:00
|
|
|
}
|