Comment 2 for bug 1729626

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Qemu function hdev_get_max_segments reads this.
Access is to: /sys/dev/block/%u:%u/queue/max_segments with O_RDONLY
So yeah, the rule "/sys/dev/block/*/queue/max_segments r," should be good.

This is since qemu 2.9:
commit 9103f1ceb46614b150bcbc3c9a4fbc72b47fedcc
Author: Fam Zheng <email address hidden>
Date: Wed Mar 8 20:08:14 2017 +0800

    file-posix: Consider max_segments for BlockLimits.max_transfer

This is a fix for a rare bug, that due to the rule does not yet "fix" it.
Prio is low enough to not need any SRU, but it shall be fixed.

I'll create a fix to the upstream apparmor profiles and get them back on next merge.