2006-04-11 21:52:54 +00:00
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Copyright (C) 2002-2005 Novell/SUSE
|
2010-08-05 14:00:02 -05:00
|
|
|
# Copyright (C) 2009-2010 Canonical Ltd.
|
2006-04-11 21:52:54 +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>
|
2018-10-15 20:57:33 +02:00
|
|
|
profile nscd /usr/{bin,sbin}/nscd {
|
2020-06-09 23:30:24 +02:00
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/consoles>
|
|
|
|
include <abstractions/nameservice>
|
|
|
|
include <abstractions/ssl_certs>
|
2006-04-11 21:52:54 +00:00
|
|
|
|
2013-03-05 22:11:59 +01:00
|
|
|
deny capability block_suspend,
|
2006-04-11 21:52:54 +00:00
|
|
|
capability net_bind_service,
|
2011-08-24 00:57:42 +02:00
|
|
|
capability setgid,
|
|
|
|
capability setuid,
|
2006-04-11 21:52:54 +00:00
|
|
|
|
2021-01-17 16:58:37 -08:00
|
|
|
/etc/machine-id r,
|
2008-11-05 12:03:29 +00:00
|
|
|
/etc/netgroup r,
|
2006-04-11 21:52:54 +00:00
|
|
|
/etc/nscd.conf r,
|
2018-07-25 14:07:35 -07:00
|
|
|
/usr/{bin,sbin}/nscd rmix,
|
2020-02-13 11:02:49 +02:00
|
|
|
@{run}/.nscd_socket wl,
|
|
|
|
@{run}/nscd/ rw,
|
|
|
|
@{run}/nscd/db* rwl,
|
|
|
|
@{run}/nscd/socket wl,
|
2020-10-11 04:46:48 -07:00
|
|
|
/{var/cache,var/db,var/lib,var/run,run}/nscd/{passwd,group,services,hosts,netgroup} rw,
|
2020-02-13 11:02:49 +02:00
|
|
|
@{run}/{nscd/,}nscd.pid rwl,
|
2016-12-09 17:49:54 +01:00
|
|
|
/var/lib/libvirt/dnsmasq/ r,
|
|
|
|
/var/lib/libvirt/dnsmasq/*.status r,
|
2008-02-19 10:35:19 +00:00
|
|
|
/var/log/nscd.log rw,
|
2016-03-21 21:30:19 +01:00
|
|
|
@{PROC}/@{pid}/cmdline r,
|
2013-01-02 15:34:38 -08:00
|
|
|
@{PROC}/@{pid}/fd/ r,
|
|
|
|
@{PROC}/@{pid}/fd/* r,
|
|
|
|
@{PROC}/@{pid}/mounts r,
|
2010-08-05 14:00:02 -05:00
|
|
|
|
2023-01-30 12:26:31 +01:00
|
|
|
# systemd-userdb
|
|
|
|
/{etc,run,run/host,/usr/lib}/userdb/ r,
|
|
|
|
/{etc,run,run/host,/usr/lib}/userdb/*.{user,user-privileged,group,group-privileged} r,
|
|
|
|
|
2023-05-09 21:02:37 -04:00
|
|
|
# needed by unscd
|
|
|
|
@{run}/systemd/notify w,
|
|
|
|
|
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/usr.sbin.nscd>
|
2006-04-11 21:52:54 +00:00
|
|
|
}
|