mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-05 00:41:03 +01:00

References: https://bugzilla.opensuse.org/show_bug.cgi?id=1014463 Acked-by: Seth Arnold <seth.arnold@canonical.com> for trunk, 2.10 and 2.9 Bug: https://launchpad.net/bugs/1322780
43 lines
1.3 KiB
Text
43 lines
1.3 KiB
Text
# ------------------------------------------------------------------
|
|
#
|
|
# Copyright (C) 2002-2005 Novell/SUSE
|
|
# Copyright (C) 2009-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>
|
|
/usr/sbin/nscd {
|
|
#include <abstractions/base>
|
|
#include <abstractions/consoles>
|
|
#include <abstractions/nameservice>
|
|
#include <abstractions/ssl_certs>
|
|
|
|
deny capability block_suspend,
|
|
capability net_bind_service,
|
|
capability setgid,
|
|
capability setuid,
|
|
|
|
/etc/netgroup r,
|
|
/etc/nscd.conf r,
|
|
/usr/sbin/nscd rmix,
|
|
/{,var/}run/.nscd_socket wl,
|
|
/{,var/}run/nscd/ rw,
|
|
/{,var/}run/nscd/db* rwl,
|
|
/{,var/}run/nscd/socket wl,
|
|
/{var/cache,var/lib,var/run,run}/nscd/{passwd,group,services,hosts,netgroup} rw,
|
|
/{,var/}run/{nscd/,}nscd.pid rwl,
|
|
/var/lib/libvirt/dnsmasq/ r,
|
|
/var/lib/libvirt/dnsmasq/*.status r,
|
|
/var/log/nscd.log rw,
|
|
@{PROC}/@{pid}/cmdline r,
|
|
@{PROC}/@{pid}/fd/ r,
|
|
@{PROC}/@{pid}/fd/* r,
|
|
@{PROC}/@{pid}/mounts r,
|
|
|
|
# Site-specific additions and overrides. See local/README for details.
|
|
#include <local/usr.sbin.nscd>
|
|
}
|