2006-11-05 08:39:33 +00:00
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
2010-08-05 14:00:02 -05:00
|
|
|
# Copyright (C) 2006-2009 Novell/SUSE
|
2006-11-05 08:39:33 +00:00
|
|
|
# Copyright (C) 2006 Christian Boltz
|
2010-08-05 14:00:02 -05:00
|
|
|
# Copyright (C) 2010 Canonical Ltd.
|
2006-11-05 08:39:33 +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.
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
2023-06-30 23:36:12 -07:00
|
|
|
abi <abi/4.0>,
|
2020-05-05 00:08:39 -07:00
|
|
|
|
2020-06-09 23:30:24 +02:00
|
|
|
include <tunables/global>
|
2006-11-05 08:39:33 +00:00
|
|
|
|
2008-04-10 08:54:05 +00:00
|
|
|
#define this to be where syslog-ng is chrooted
|
2008-05-07 18:38:53 +00:00
|
|
|
@{CHROOT_BASE}=""
|
2008-04-10 08:54:05 +00:00
|
|
|
|
2018-07-25 14:07:35 -07:00
|
|
|
profile syslog-ng /{usr/,}{bin,sbin}/syslog-ng {
|
2020-06-09 23:30:24 +02:00
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/consoles>
|
|
|
|
include <abstractions/nameservice>
|
|
|
|
include <abstractions/mysql>
|
|
|
|
include <abstractions/python>
|
2020-08-31 17:27:56 -07:00
|
|
|
include <abstractions/hosts_access>
|
2006-11-05 08:39:33 +00:00
|
|
|
|
|
|
|
capability chown,
|
|
|
|
capability dac_override,
|
2012-01-09 13:28:25 +01:00
|
|
|
capability dac_read_search,
|
2006-11-05 08:39:33 +00:00
|
|
|
capability fsetid,
|
2006-11-27 10:21:07 +00:00
|
|
|
capability fowner,
|
2008-02-19 10:35:19 +00:00
|
|
|
capability sys_tty_config,
|
2011-08-08 22:59:28 +02:00
|
|
|
capability sys_resource,
|
2011-08-19 00:27:03 +02:00
|
|
|
capability syslog,
|
2006-11-05 08:39:33 +00:00
|
|
|
|
2014-09-03 14:24:00 -05:00
|
|
|
unix (receive) type=dgram,
|
|
|
|
unix (receive) type=stream,
|
|
|
|
|
2006-11-27 10:44:24 +00:00
|
|
|
/dev/log w,
|
2008-11-05 14:53:00 +00:00
|
|
|
/dev/syslog w,
|
2007-05-29 17:28:38 +00:00
|
|
|
/dev/tty10 rw,
|
2006-11-05 08:39:33 +00:00
|
|
|
/dev/xconsole rw,
|
2017-12-24 00:13:58 -08:00
|
|
|
/dev/kmsg r,
|
2015-10-07 22:18:22 +02:00
|
|
|
/etc/machine-id r,
|
2006-11-05 08:39:33 +00:00
|
|
|
/etc/syslog-ng/* r,
|
2015-10-07 22:18:22 +02:00
|
|
|
/etc/syslog-ng/conf.d/ r,
|
|
|
|
/etc/syslog-ng/conf.d/* r,
|
2008-06-11 20:19:36 +00:00
|
|
|
@{PROC}/kmsg r,
|
2018-07-25 14:07:35 -07:00
|
|
|
/{usr/,}{bin,sbin}/syslog-ng mr,
|
2018-11-08 20:00:45 +02:00
|
|
|
@{sys}/devices/system/cpu/online r,
|
2011-08-08 22:59:28 +02:00
|
|
|
/usr/share/syslog-ng/** r,
|
2016-10-13 20:29:17 +02:00
|
|
|
/var/lib/syslog-ng/syslog-ng-?????.qf rw,
|
2006-11-13 09:40:29 +00:00
|
|
|
# chrooted applications
|
2008-04-10 08:54:05 +00:00
|
|
|
@{CHROOT_BASE}/var/lib/*/dev/log w,
|
2011-08-08 22:59:28 +02:00
|
|
|
@{CHROOT_BASE}/var/lib/syslog-ng/syslog-ng.persist* rw,
|
2008-04-10 08:54:05 +00:00
|
|
|
@{CHROOT_BASE}/var/log/** w,
|
2020-02-13 11:02:49 +02:00
|
|
|
@{CHROOT_BASE}/@{run}/syslog-ng.pid krw,
|
|
|
|
@{CHROOT_BASE}/@{run}/syslog-ng.ctl rw,
|
2015-11-11 16:44:47 +01:00
|
|
|
/{var,var/run,run}/log/journal/ r,
|
|
|
|
/{var,var/run,run}/log/journal/*/ r,
|
|
|
|
/{var,var/run,run}/log/journal/*/*.journal r,
|
2022-10-09 21:02:17 +02:00
|
|
|
/{var,var/run,run}/log/journal/*.journal r,
|
2020-02-13 11:02:49 +02:00
|
|
|
@{run}/syslog-ng.ctl a,
|
|
|
|
@{run}/syslog-ng/additional-log-sockets.conf r,
|
2008-11-05 11:57:34 +00:00
|
|
|
|
2010-08-05 14:00:02 -05:00
|
|
|
# Site-specific additions and overrides. See local/README for details.
|
2020-04-28 22:25:27 +02:00
|
|
|
include if exists <local/sbin.syslog-ng>
|
2006-11-05 08:39:33 +00:00
|
|
|
}
|