2006-04-11 21:52:54 +00:00
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
2009-11-04 14:25:42 -06:00
|
|
|
# Copyright (C) 2002-2009 Novell/SUSE
|
2011-03-23 12:24:11 -07:00
|
|
|
# Copyright (C) 2009-2011 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.
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
2020-05-05 00:08:39 -07:00
|
|
|
abi <abi/3.0>,
|
|
|
|
|
2006-04-11 21:52:54 +00:00
|
|
|
# Many programs wish to perform nameservice-like operations, such as
|
|
|
|
# looking up users by name or id, groups by name or id, hosts by name
|
|
|
|
# or IP, etc. These operations may be performed through files, dns,
|
|
|
|
# NIS, NIS+, LDAP, hesiod, wins, etc. Allow them all here.
|
2020-07-23 20:42:42 +02:00
|
|
|
@{etc_ro}/group r,
|
|
|
|
@{etc_ro}/host.conf r,
|
|
|
|
@{etc_ro}/hosts r,
|
|
|
|
@{etc_ro}/nsswitch.conf r,
|
|
|
|
@{etc_ro}/gai.conf r,
|
|
|
|
@{etc_ro}/passwd r,
|
|
|
|
@{etc_ro}/protocols r,
|
2007-08-14 14:50:09 +00:00
|
|
|
|
2017-10-20 22:53:09 +02:00
|
|
|
# libtirpc (used for NIS/YP login) needs this
|
2020-07-23 20:42:42 +02:00
|
|
|
@{etc_ro}/netconfig r,
|
2017-10-20 22:53:09 +02:00
|
|
|
|
2014-08-21 07:27:07 -05:00
|
|
|
# When using libnss-extrausers, the passwd and group files are merged from
|
|
|
|
# an alternate path
|
|
|
|
/var/lib/extrausers/group r,
|
|
|
|
/var/lib/extrausers/passwd r,
|
|
|
|
|
2014-02-13 17:15:03 -08:00
|
|
|
# When using sssd, the passwd and group files are stored in an alternate path
|
|
|
|
# and the nss plugin also needs to talk to a pipe
|
|
|
|
/var/lib/sss/mc/group r,
|
2017-08-29 13:31:20 +02:00
|
|
|
/var/lib/sss/mc/initgroups r,
|
2014-02-13 17:15:03 -08:00
|
|
|
/var/lib/sss/mc/passwd r,
|
|
|
|
/var/lib/sss/pipes/nss rw,
|
|
|
|
|
2020-07-23 20:42:42 +02:00
|
|
|
@{etc_ro}/resolv.conf r,
|
2016-06-22 15:15:49 -07:00
|
|
|
# On systems where /etc/resolv.conf is managed programmatically, it is
|
2020-02-13 11:02:49 +02:00
|
|
|
# a symlink to @{run}/(whatever program is managing it)/resolv.conf.
|
|
|
|
@{run}/{resolvconf,NetworkManager,systemd/resolve,connman,netconfig}/resolv.conf r,
|
2020-07-23 20:42:42 +02:00
|
|
|
@{etc_ro}/resolvconf/run/resolv.conf r,
|
2020-02-13 11:02:49 +02:00
|
|
|
@{run}/systemd/resolve/stub-resolv.conf r,
|
2007-08-14 14:50:09 +00:00
|
|
|
|
2020-07-23 20:42:42 +02:00
|
|
|
@{etc_ro}/samba/lmhosts r,
|
|
|
|
@{etc_ro}/services r,
|
2008-06-11 20:19:36 +00:00
|
|
|
# db backend
|
|
|
|
/var/lib/misc/*.db r,
|
2006-04-11 21:52:54 +00:00
|
|
|
# The Name Service Cache Daemon can cache lookups, sometimes leading
|
|
|
|
# to vast speed increases when working with network-based lookups.
|
2020-02-13 11:02:49 +02:00
|
|
|
@{run}/.nscd_socket rw,
|
|
|
|
@{run}/nscd/socket rw,
|
2016-11-18 20:17:43 +01:00
|
|
|
/{var/db,var/cache,var/lib,var/run,run}/nscd/{passwd,group,services,hosts} r,
|
2006-04-11 21:52:54 +00:00
|
|
|
# nscd renames and unlinks files in it's operation that clients will
|
|
|
|
# have open
|
2020-02-13 11:02:49 +02:00
|
|
|
@{run}/nscd/db* rmix,
|
2006-04-11 21:52:54 +00:00
|
|
|
|
|
|
|
# The nss libraries are sometimes used in addition to PAM; make sure
|
|
|
|
# they are available
|
2016-12-03 10:59:01 +01:00
|
|
|
/{usr/,}lib{,32,64}/libnss_*.so* mr,
|
|
|
|
/{usr/,}lib/@{multiarch}/libnss_*.so* mr,
|
2020-07-23 20:42:42 +02:00
|
|
|
@{etc_ro}/default/nss r,
|
2006-04-11 21:52:54 +00:00
|
|
|
|
2008-06-11 20:19:36 +00:00
|
|
|
# avahi-daemon is used for mdns4 resolution
|
2020-02-13 11:02:49 +02:00
|
|
|
@{run}/avahi-daemon/socket rw,
|
2008-06-11 20:19:36 +00:00
|
|
|
|
2016-02-10 11:19:04 +01:00
|
|
|
# libnl-3-200 via libnss-gw-name
|
|
|
|
@{PROC}/@{pid}/net/psched r,
|
2020-07-23 20:42:42 +02:00
|
|
|
@{etc_ro}/libnl-*/classid r,
|
2016-02-10 11:19:04 +01:00
|
|
|
|
2006-05-02 00:25:47 +00:00
|
|
|
# nis
|
2020-06-09 23:28:41 +02:00
|
|
|
include <abstractions/nis>
|
2006-04-11 21:52:54 +00:00
|
|
|
|
2011-11-01 17:08:37 +01:00
|
|
|
# ldap
|
2020-06-09 23:28:41 +02:00
|
|
|
include <abstractions/ldapclient>
|
2011-11-01 17:08:37 +01:00
|
|
|
|
2006-05-02 00:25:47 +00:00
|
|
|
# winbind
|
2020-06-09 23:28:41 +02:00
|
|
|
include <abstractions/winbind>
|
2006-04-11 21:52:54 +00:00
|
|
|
|
2009-11-04 14:25:42 -06:00
|
|
|
# likewise
|
2020-06-09 23:28:41 +02:00
|
|
|
include <abstractions/likewise>
|
2009-11-04 14:25:42 -06:00
|
|
|
|
2006-04-11 21:52:54 +00:00
|
|
|
# mdnsd
|
2020-06-09 23:28:41 +02:00
|
|
|
include <abstractions/mdns>
|
2009-11-04 14:25:42 -06:00
|
|
|
|
2007-08-23 23:22:06 +00:00
|
|
|
# kerberos
|
2020-06-09 23:28:41 +02:00
|
|
|
include <abstractions/kerberosclient>
|
2009-11-04 14:25:42 -06:00
|
|
|
|
2020-04-06 16:09:50 -05:00
|
|
|
#libnss-systemd
|
2020-06-09 23:28:41 +02:00
|
|
|
include <abstractions/nss-systemd>
|
2020-04-06 16:09:50 -05:00
|
|
|
|
|
|
|
# Also allow lookups for systemd-exec's DynamicUsers via D-Bus
|
|
|
|
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html
|
|
|
|
dbus send
|
|
|
|
bus=system
|
|
|
|
path="/org/freedesktop/systemd1"
|
|
|
|
interface="org.freedesktop.systemd1.Manager"
|
|
|
|
member="{GetDynamicUsers,LookupDynamicUserByName,LookupDynamicUserByUID}"
|
|
|
|
peer=(name="org.freedesktop.systemd1"),
|
|
|
|
|
2007-08-17 21:46:56 +00:00
|
|
|
# TCP/UDP network access
|
|
|
|
network inet stream,
|
|
|
|
network inet6 stream,
|
|
|
|
network inet dgram,
|
|
|
|
network inet6 dgram,
|
2006-04-11 21:52:54 +00:00
|
|
|
|
2014-09-03 14:21:31 -05:00
|
|
|
# TODO: adjust when support finer-grained netlink rules
|
|
|
|
# Netlink raw needed for nscd
|
|
|
|
network netlink raw,
|
|
|
|
|
2010-06-04 17:44:59 -07:00
|
|
|
# interface details
|
2013-01-02 15:34:38 -08:00
|
|
|
@{PROC}/@{pid}/net/route r,
|
2019-01-24 03:03:11 -08:00
|
|
|
|
|
|
|
# Include additions to the abstraction
|
2020-05-30 19:46:08 +02:00
|
|
|
include if exists <abstractions/nameservice.d>
|