docs: Update documentation for spapr-vio addresses
[libvirt/ericb.git] / m4 / virt-apparmor.m4
blobebddfce201594f11e48b23e736375abcafe8e040
1 dnl The libapparmor.so library
2 dnl
3 dnl Copyright (C) 2012-2013 Red Hat, Inc.
4 dnl
5 dnl This library is free software; you can redistribute it and/or
6 dnl modify it under the terms of the GNU Lesser General Public
7 dnl License as published by the Free Software Foundation; either
8 dnl version 2.1 of the License, or (at your option) any later version.
9 dnl
10 dnl This library is distributed in the hope that it will be useful,
11 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 dnl Lesser General Public License for more details.
14 dnl
15 dnl You should have received a copy of the GNU Lesser General Public
16 dnl License along with this library.  If not, see
17 dnl <http://www.gnu.org/licenses/>.
18 dnl
20 AC_DEFUN([LIBVIRT_ARG_APPARMOR],[
21   LIBVIRT_ARG_WITH_FEATURE([APPARMOR], [AppArmor], [check])
22   LIBVIRT_ARG_WITH([APPARMOR_MOUNT], [set AppArmor mount point], [check])
25 AC_DEFUN([LIBVIRT_CHECK_APPARMOR],[
26   LIBVIRT_CHECK_LIB([APPARMOR], [apparmor],
27                     [aa_change_profile], [sys/apparmor.h])
29   if test "$with_apparmor" = "yes"; then
30     AC_DEFINE_UNQUOTED([APPARMOR_DIR],
31                        "/etc/apparmor.d",
32                        [path to apparmor directory])
33     AC_DEFINE_UNQUOTED([APPARMOR_PROFILES_PATH],
34                        "/sys/kernel/security/apparmor/profiles",
35                        [path to kernel profiles])
36   fi
39 AC_DEFUN([LIBVIRT_RESULT_APPARMOR],[
40   LIBVIRT_RESULT_LIB([APPARMOR])