mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 16:35:02 +01:00

(eg Ubuntu) are providing a symlink from /var/run to /run, so our profiles should handle both situations.
34 lines
882 B
Text
34 lines
882 B
Text
# ------------------------------------------------------------------
|
|
#
|
|
# Copyright (C) 2002-2009 Novell/SUSE
|
|
# Copyright (C) 2010 Canonical Ltd.
|
|
#
|
|
# 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>
|
|
|
|
/sbin/klogd {
|
|
#include <abstractions/base>
|
|
|
|
capability sys_admin,
|
|
|
|
network inet stream,
|
|
|
|
/boot/System.map* r,
|
|
@{PROC}/kmsg r,
|
|
@{PROC}/kallsyms r,
|
|
/dev/tty rw,
|
|
|
|
/sbin/klogd rmix,
|
|
/var/log/boot.msg rwl,
|
|
/{,var/}run/klogd.pid krwl,
|
|
/{,var/}run/klogd/klogd.pid krwl,
|
|
/{,var/}run/klogd/kmsg r,
|
|
|
|
# Site-specific additions and overrides. See local/README for details.
|
|
#include <local/sbin.klogd>
|
|
}
|