2006-11-05 08:39:33 +00:00
|
|
|
# $Id$
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Copyright (C) 2006 Novell/SUSE
|
|
|
|
# Copyright (C) 2006 Christian Boltz
|
|
|
|
#
|
|
|
|
# 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
|
|
|
#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
|
|
|
|
2006-11-05 08:39:33 +00:00
|
|
|
/sbin/syslog-ng {
|
|
|
|
#include <abstractions/base>
|
|
|
|
#include <abstractions/consoles>
|
|
|
|
#include <abstractions/nameservice>
|
|
|
|
|
|
|
|
capability chown,
|
|
|
|
capability dac_override,
|
|
|
|
capability fsetid,
|
2006-11-27 10:21:07 +00:00
|
|
|
capability fowner,
|
2008-02-19 10:35:19 +00:00
|
|
|
capability sys_tty_config,
|
2006-11-05 08:39:33 +00:00
|
|
|
|
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,
|
|
|
|
/etc/syslog-ng/* r,
|
2008-06-11 20:19:36 +00:00
|
|
|
@{PROC}/kmsg r,
|
2008-02-19 10:35:19 +00:00
|
|
|
/etc/hosts.deny r,
|
|
|
|
/etc/hosts.allow r,
|
2006-11-05 08:39:33 +00:00
|
|
|
/sbin/syslog-ng mr,
|
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,
|
2008-11-05 11:57:34 +00:00
|
|
|
@{CHROOT_BASE}/var/lib/syslog-ng/syslog-ng.persist rw,
|
2008-04-10 08:54:05 +00:00
|
|
|
@{CHROOT_BASE}/var/log/** w,
|
|
|
|
@{CHROOT_BASE}/var/run/syslog-ng.pid krw,
|
2008-11-05 11:57:34 +00:00
|
|
|
|
2006-11-05 08:39:33 +00:00
|
|
|
}
|
|
|
|
|