# Basic networking rules
# Homepage: https://github.com/krathalan/apparmor-profiles
# Copyright (C) 2002-2009 Novell/SUSE, (C) 2009-2011 Canonical Ltd., 
#           (C) 2019 krathalan; Licensed under GPLv3

  # Certificates
  #include <abstractions/openssl>
  /etc/ca-certificates/extracted/tls-ca-bundle.pem r,
  /etc/ca-certificates/trust-source/{,**} r,
  @{system_share_dirs}/ca-certificates/trust-source/{,**} r,

  # Nameservice
  /etc/{gai,host,nsswitch}.conf r,
  /etc/hosts r,

  # Resolvconf
  # On systems where /etc/resolv.conf is managed programmatically, it is
  # a symlink to /{,var/}run/(program is managing it)/resolv.conf.
  /etc/resolv.conf r,
  /etc/resolvconf/run/resolv.conf r,
  /{,var/}run/{resolvconf,NetworkManager,systemd/resolve,connman,netconfig}/resolv.conf r,
  /{,var/}run/systemd/resolve/stub-resolv.conf r,
