virt-aa-helper: Fix return value of add_file_path
virt-aa-helper: Fix return value of add_file_path

Commit a8853344994a7c6aaca882a5e949ab5536821ab5 added this
function and wrapped vah_add_file in it. vah_add_file may
return -1, 0, 1. It returns 1 in case the call to valid_path
detects a restricted file. The original code treated a return
value != 0 as error. The refactored code treats a return
value < 0 as error. This triggers segfault in virt-aa-helper
and breaks virt-aa-helper-test for the restricted file tests.

Make sure that add_file_path returns -1 on error.

danwent/libvirt-ovs,olafhering/libvirt,rmarwaha/libvirt1,usc-isi/libvirt,andreabolognani/libvirt,trainstack/libvirt,libvirt/libvirt,taget/libvirt,jeckersb/libvirt,eskultety/libvirt,jfehlig/libvirt,rmarwaha/libvirt,taget/libvirt,nertpinx/libvirt,elmarco/libvirt,agx/libvirt,wiedi/libvirt,novel/fbsd-libvirt,rbu/libvirt,bjzhang/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,danwent/libvirt-ovs,jardasgit/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,iam-TJ/libvirt,zhlcindy/libvirt-1.1.4-maintain,wiedi/libvirt,olafhering/libvirt,agx/libvirt,novel/fbsd-libvirt,soulxu/libvirt-xuhj,novel/fbsd-libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,rlaager/libvirt,trainstack/libvirt,warewolf/libvirt,shugaoye/libvirt,zhlcindy/libvirt-1.1.4-maintain,VenkatDatta/libvirt,bjzhang/libvirt,cbosdo/libvirt,eskultety/libvirt,leilihh/libvirt,jeckersb/libvirt,nertpinx/libvirt,emaste/libvirt,dumbbell/libvirt,emaste/libvirt,jfehlig/libvirt,wiedi/libvirt,olafhering/libvirt,agx/libvirt,foomango/libvirt,rmarwaha/libvirt,jfehlig/libvirt,soulxu/libvirt-xuhj,iam-TJ/libvirt,emaste/libvirt,jardasgit/libvirt,iam-TJ/libvirt,rmarwaha/libvirt1,amery/libvirt-vserver,crobinso/libvirt,rmarwaha/libvirt,jardasgit/libvirt,libvirt/libvirt,shugaoye/libvirt,shugaoye/libvirt,bjzhang/libvirt,amery/libvirt-vserver,sshah-solarflare/Libvirt-PCI-passthrough-,jeckersb/libvirt,kantai/libvirt-vfork,amery/libvirt-vserver,VenkatDatta/libvirt,jardasgit/libvirt,datto/libvirt,siboulet/libvirt-openvz,dumbbell/libvirt,trainstack/libvirt,taget/libvirt,elmarco/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,zhlcindy/libvirt-1.1.4-maintain,leilihh/libvirt,rmarwaha/libvirt1,dumbbell/libvirt,crobinso/libvirt,zhlcindy/libvirt-1.1.4-maintain,cbosdo/libvirt,emaste/libvirt,wiedi/libvirt,amery/libvirt-vserver,soulxu/libvirt-xuhj,foomango/libvirt,elmarco/libvirt,amery/libvirt-vserver,olafhering/libvirt,rmarwaha/libvirt,emaste/libvirt,fabianfreyer/libvirt,kantai/libvirt-vfork,usc-isi/libvirt,jeckersb/libvirt,trainstack/libvirt,danwent/libvirt-ovs,trainstack/libvirt,rbu/libvirt,leilihh/libvirt,iam-TJ/libvirt,elmarco/libvirt,soulxu/libvirt-xuhj,datto/libvirt,shugaoye/libvirt,datto/libvirt,eskultety/libvirt,iam-TJ/libvirt,zippy2/libvirt,iam-TJ/libvirt,crobinso/libvirt,siboulet/libvirt-openvz,libvirt/libvirt,rbu/libvirt,warewolf/libvirt,agx/libvirt,jeckersb/libvirt,cbosdo/libvirt,novel/fbsd-libvirt,foomango/libvirt,trainstack/libvirt,foomango/libvirt,taget/libvirt,kantai/libvirt-vfork,rmarwaha/libvirt1,zippy2/libvirt,leilihh/libvirt,foomango/libvirt,nertpinx/libvirt,elmarco/libvirt,rbu/libvirt,rlaager/libvirt,nertpinx/libvirt,nertpinx/libvirt,jfehlig/libvirt,warewolf/libvirt,novel/fbsd-libvirt,libvirt/libvirt,warewolf/libvirt,novel/fbsd-libvirt,zippy2/libvirt,rbu/libvirt,datto/libvirt,kantai/libvirt-vfork,bjzhang/libvirt,emaste/libvirt,VenkatDatta/libvirt,warewolf/libvirt,dumbbell/libvirt,crobinso/libvirt,usc-isi/libvirt,leilihh/libvirt,wiedi/libvirt,eskultety/libvirt,zhlcindy/libvirt-1.1.4-maintain,trainstack/libvirt,rmarwaha/libvirt,siboulet/libvirt-openvz,jardasgit/libvirt,usc-isi/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,kantai/libvirt-vfork,andreabolognani/libvirt,novel/fbsd-libvirt,novel/fbsd-libvirt,jeckersb/libvirt,warewolf/libvirt,usc-isi/libvirt,dumbbell/libvirt,cbosdo/libvirt,jeckersb/libvirt,agx/libvirt,taget/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,leilihh/libvirt,fabianfreyer/libvirt,eskultety/libvirt,rmarwaha/libvirt,novel/fbsd-libvirt,wiedi/libvirt,rlaager/libvirt,soulxu/libvirt-xuhj,danwent/libvirt-ovs,zippy2/libvirt,wiedi/libvirt,rlaager/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,datto/libvirt,warewolf/libvirt,dumbbell/libvirt,rlaager/libvirt,emaste/libvirt,bjzhang/libvirt,danwent/libvirt-ovs,iam-TJ/libvirt,siboulet/libvirt-openvz,VenkatDatta/libvirt,siboulet/libvirt-openvz,rmarwaha/libvirt1,shugaoye/libvirt,cbosdo/libvirt,VenkatDatta/libvirt,rmarwaha/libvirt1