mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
virt-aa-helper: allow hard links for mounts
Guests should be allowed to create hard links on mounted pathes, since many applications rely on this functionality and would error on guest with current "rw" AppArmor permission with 9pfs. Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
5736593500
commit
5422f60e2f
@ -1142,7 +1142,7 @@ get_files(vahControl * ctl)
|
|||||||
/* We don't need to add deny rw rules for readonly mounts,
|
/* We don't need to add deny rw rules for readonly mounts,
|
||||||
* this can only lead to troubles when mounting / readonly.
|
* this can only lead to troubles when mounting / readonly.
|
||||||
*/
|
*/
|
||||||
if (vah_add_path(&buf, fs->src->path, fs->readonly ? "R" : "rw", true) != 0)
|
if (vah_add_path(&buf, fs->src->path, fs->readonly ? "R" : "rwl", true) != 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user