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.
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
/etc/group r,
|
|
|
|
/etc/host.conf r,
|
|
|
|
/etc/hosts r,
|
|
|
|
/etc/nsswitch.conf r,
|
2008-06-11 20:19:36 +00:00
|
|
|
/etc/gai.conf r,
|
2006-04-11 21:52:54 +00:00
|
|
|
/etc/passwd r,
|
|
|
|
/etc/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
|
|
|
|
/etc/netconfig r,
|
|
|
|
|
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,
|
|
|
|
|
2006-04-11 21:52:54 +00:00
|
|
|
/etc/resolv.conf r,
|
2016-06-22 15:15:49 -07:00
|
|
|
# On systems where /etc/resolv.conf is managed programmatically, it is
|
|
|
|
# a symlink to /{,var/}run/(whatever program is managing it)/resolv.conf.
|
|
|
|
/{,var/}run/{resolvconf,NetworkManager,systemd/resolve,connman}/resolv.conf r,
|
2009-11-04 14:25:42 -06:00
|
|
|
/etc/resolvconf/run/resolv.conf r,
|
2017-09-15 15:47:26 -05:00
|
|
|
/{,var/}run/systemd/resolve/stub-resolv.conf r,
|
2007-08-14 14:50:09 +00:00
|
|
|
|
2006-04-11 21:52:54 +00:00
|
|
|
/etc/samba/lmhosts r,
|
|
|
|
/etc/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.
|
2011-07-14 07:57:57 -05:00
|
|
|
/{,var/}run/.nscd_socket rw,
|
|
|
|
/{,var/}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
|
2011-07-14 07:57:57 -05:00
|
|
|
/{,var/}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,
|
2009-11-04 14:25:42 -06:00
|
|
|
/etc/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
|
2014-01-26 12:16:54 -08:00
|
|
|
/{,var/}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,
|
|
|
|
/etc/libnl-*/classid r,
|
|
|
|
|
2006-05-02 00:25:47 +00:00
|
|
|
# nis
|
|
|
|
#include <abstractions/nis>
|
2006-04-11 21:52:54 +00:00
|
|
|
|
2011-11-01 17:08:37 +01:00
|
|
|
# ldap
|
|
|
|
#include <abstractions/ldapclient>
|
|
|
|
|
2006-05-02 00:25:47 +00:00
|
|
|
# winbind
|
|
|
|
#include <abstractions/winbind>
|
2006-04-11 21:52:54 +00:00
|
|
|
|
2009-11-04 14:25:42 -06:00
|
|
|
# likewise
|
|
|
|
#include <abstractions/likewise>
|
|
|
|
|
2006-04-11 21:52:54 +00:00
|
|
|
# mdnsd
|
2006-05-02 00:25:47 +00:00
|
|
|
#include <abstractions/mdns>
|
2009-11-04 14:25:42 -06:00
|
|
|
|
2007-08-23 23:22:06 +00:00
|
|
|
# kerberos
|
|
|
|
#include <abstractions/kerberosclient>
|
2009-11-04 14:25:42 -06:00
|
|
|
|
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,
|