Re: [PATCH v2 2/2] security: aa-helper: generate more rules for gl devices

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

 



On Mon, 18 Feb 2019, Christian Ehrhardt wrote:
> +        virBufferAddLit(&buf, "  \"/usr/lib{,32,64}/dri/**.so\" mr,\n");
> +        virBufferAddLit(&buf, "  \"/usr/lib/@{multiarch}/dri/**.so\" mr,\n");
> +        virBufferAddLit(&buf, "  \"/usr/lib/fglrx/dri/**.so\" mr,\n");

I'm sorry I think I wasn't clear on how to add in the .so files. I suggest:

  virBufferAddLit(&buf, "  \"/usr/lib{,32,64}/dri/*.so*\" mr,\n");
  virBufferAddLit(&buf, "  \"/usr/lib/@{multiarch}/dri/*.so*\" mr,\n");
  virBufferAddLit(&buf, "  \"/usr/lib/fglrx/dri/*.so*\" mr,\n");

This is slightly futureproofed with the trailing '*'. On my system, the '**'
wasn't needed, but if you observe systems where it is, feel free to keep it.

The other parts of this patch looked fine.

-- 
Jamie Strandboge             | http://www.canonical.com

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux