diff options
author | Venkateswararao Jujjuri (JV) | 2010-06-14 22:34:41 +0200 |
---|---|---|
committer | Anthony Liguori | 2010-06-22 22:15:50 +0200 |
commit | 758e8e38eb582e3dc87fd55a1d234c25108a7b7f (patch) | |
tree | a8925a3d8c7741347c30e16ecd93da8b64ba8be4 /configure | |
parent | virtio-9p: Introduces an option to specify the security model. (diff) | |
download | qemu-758e8e38eb582e3dc87fd55a1d234c25108a7b7f.tar.gz qemu-758e8e38eb582e3dc87fd55a1d234c25108a7b7f.tar.xz qemu-758e8e38eb582e3dc87fd55a1d234c25108a7b7f.zip |
virtio-9p: Make infrastructure for the new security model.
This patch adds required infrastructure for the new security model.
- A new configure option for attr/xattr.
- if CONFIG_VIRTFS will be defined if both CONFIG_LINUX and CONFIG_ATTR defined.
- Defines routines related to both security models.
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -270,6 +270,7 @@ vnc_tls="" vnc_sasl="" xen="" linux_aio="" +attr="" vhost_net="" gprof="no" @@ -671,6 +672,10 @@ for opt do ;; --enable-linux-aio) linux_aio="yes" ;; + --disable-attr) attr="no" + ;; + --enable-attr) attr="yes" + ;; --enable-io-thread) io_thread="yes" ;; --disable-blobs) blobs="no" @@ -858,6 +863,8 @@ echo " --disable-vde disable support for vde network" echo " --enable-vde enable support for vde network" echo " --disable-linux-aio disable Linux AIO support" echo " --enable-linux-aio enable Linux AIO support" +echo " --disable-attr disables attr and xattr support" +echo " --enable-attr enable attr and xattr support" echo " --enable-io-thread enable IO thread" echo " --disable-blobs disable installing provided firmware blobs" echo " --kerneldir=PATH look for kernel includes in PATH" @@ -1646,6 +1653,27 @@ EOF fi ########################################## +# attr probe + +if test "$attr" != "no" ; then + cat > $TMPC <<EOF +#include <stdio.h> +#include <sys/types.h> +#include <attr/xattr.h> +int main(void) { getxattr(NULL, NULL, NULL, 0); setxattr(NULL, NULL, NULL, 0, 0); return 0; } +EOF + if compile_prog "" "-lattr" ; then + attr=yes + LIBS="-lattr $LIBS" + else + if test "$attr" = "yes" ; then + feature_not_found "ATTR" + fi + attr=no + fi +fi + +########################################## # iovec probe cat > $TMPC <<EOF #include <sys/types.h> @@ -2079,6 +2107,7 @@ echo "PIE user targets $user_pie" echo "vde support $vde" echo "IO thread $io_thread" echo "Linux AIO support $linux_aio" +echo "ATTR/XATTR support $attr" echo "Install blobs $blobs" echo "KVM support $kvm" echo "fdt support $fdt" @@ -2280,6 +2309,14 @@ fi if test "$linux_aio" = "yes" ; then echo "CONFIG_LINUX_AIO=y" >> $config_host_mak fi +if test "$attr" = "yes" ; then + echo "CONFIG_ATTR=y" >> $config_host_mak +fi +if test "$linux" = "yes" ; then + if test "$attr" = "yes" ; then + echo "CONFIG_VIRTFS=y" >> $config_host_mak + fi +fi if test "$blobs" = "yes" ; then echo "INSTALL_BLOBS=yes" >> $config_host_mak fi |