apparmor/profiles/apparmor.d/sbin.klogd
John Johansen f1b4da2f64 policy: update to use 4.0 abi
Begin preparing policy for the 4.0 release. This may result in new
denials. This is expected and needed to make sure policy is ready
for the 4.0 release.

Signed-off-by: John Johansen <john.johansen@canonical.com>
2023-06-30 23:36:12 -07:00

37 lines
1,000 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.
#
# ------------------------------------------------------------------
abi <abi/4.0>,
include <tunables/global>
profile klogd /{usr/,}{bin,sbin}/klogd {
include <abstractions/base>
capability sys_admin, # for backward compatibility with kernel <= 2.6.37
capability syslog,
network inet stream,
/boot/System.map* r,
@{PROC}/kmsg r,
@{PROC}/kallsyms r,
/dev/tty rw,
/{usr/,}{bin,sbin}/klogd rmix,
/var/log/boot.msg rwl,
@{run}/klogd.pid krwl,
@{run}/klogd/klogd.pid krwl,
@{run}/klogd/kmsg r,
# Site-specific additions and overrides. See local/README for details.
include if exists <local/sbin.klogd>
}