Sophie

Sophie

distrib > Mandriva > 2011.0 > x86_64 > by-pkgid > f8d4e2db9ca5d94edb10f1cdfbec6226 > files > 1

net-tools-1.60-34.src.rpm

# $Id: bin.netstat 697 2007-05-25 03:09:30Z steve-beattie $
# vim:syntax=apparmor
# ------------------------------------------------------------------
#
#    Copyright (C) 2002-2005 Novell/SUSE
#
#    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.
#
# ------------------------------------------------------------------
# evolution, amongst other things, calls this program. I didn't want to
# give evolution access to significant chunks of /proc
#

#include <tunables/global>

/bin/netstat {
  #include <abstractions/base>
  #include <abstractions/consoles>
  #include <abstractions/nameservice>

  capability dac_override,
  capability dac_read_search,
  capability sys_ptrace,

  /bin/netstat rmix,
  /etc/networks r,
  @{PROC} r,
  @{PROC}/[0-9]*/cmdline r,
  @{PROC}/[0-9]*/fd r,
  @{PROC}/[0-9]*/fd/ r,
  @{PROC}/net r,
  @{PROC}/net/* r,
}