2
# $Id: net_raw.sh 61 2006-05-19 18:32:14Z steve-beattie $
4
# Copyright (C) 2002-2005 Novell/SUSE
6
# This program is free software; you can redistribute it and/or
7
# modify it under the terms of the GNU General Public License as
8
# published by the Free Software Foundation, version 2 of the
13
# AppArmor requires the net_raw capability in order to open a raw socket.
14
# This test verifies this.
18
pwd=$(cd $pwd ; /bin/pwd)
28
runchecktest "RAW SOCKET (no cap)" fail
31
genprofile cap:net_raw
32
runchecktest "RAW SOCKET (cap net_raw)" pass