How to enable apparmor security driver for libvirt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi guys,

I want to enable apparmor security driver for my libvirt env with ubuntu os.

What I do is as following:

First, I got the source code and compile it.
ubuntu@ubuntu:~/github$git clone git://libvirt.org/libvirt.git
ubuntu@ubuntu:~/github/libvirt$ dpkg -l|grep apparmor
ii apparmor 2.8.95~2430-0ubuntu5 amd64 User-space parser utility for
AppArmor
ii libapparmor-dev:amd64 2.8.95~2430-0ubuntu5.1 amd64 AppArmor
development libraries and header files
ii libapparmor-perl 2.8.95~2430-0ubuntu5 amd64 AppArmor library Perl
bindings
ii libapparmor1:amd64 2.8.95~2430-0ubuntu5.1 amd64 changehat AppArmor
library

ubuntu@ubuntu:~/github/libvirt$./autogen.sh --system --with-apparmor
ubuntu@ubuntu:~/github/libvirt$make -j8
ubuntu@ubuntu:~/github/libvirt$sudo make install

Then I configure the apparmor (security_driver = "apparmor") in
/etc/libvirt/qemu.conf, and restart libvirtd.

I thought this may be ok. But it turned out that apparmor security
driver is not loaded for my libvirt:

The output of "virsh capabilities | grep apparmor" is None.

What's the problem?


Best Regards~
Jackie

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users




[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux