mirror of
git://git.yoctoproject.org/meta-selinux
synced 2026-01-01 13:58:04 +00:00
documentation: update guidance for runqemu
Testing SELinux on QEMU occasionally results in OOM conditions during a relabel from time to time. Update the documentation to warn about this and suggest a way to avoid the situation. Signed-off-by: Joe MacDonald <joe@deserted.net>
This commit is contained in:
parent
1f23fb218e
commit
91fc10df2f
|
|
@ -111,6 +111,14 @@ For example, when you are using qemu targets,
|
|||
|
||||
$ runqemu qemumips core-image-selinux ext3 nographic bootparams="selinux=0"
|
||||
|
||||
The initial filesystem relabel step requires considerable memory and can result
|
||||
in unexpected, sometimes impossible to reproduce, failures if an OOM condition
|
||||
occurs while it is in progress. Therefore you should consider allocating at a
|
||||
minimum 512MB of RAM to your qemu image. 1GB or more is recommended. This is
|
||||
accomplished by adding qemuparams="-m 1024" to your runqemu options.
|
||||
|
||||
The defaults for various platforms vary, though it is usually around 256MB.
|
||||
|
||||
3.2 - How do I turn enforcing mode on/off?
|
||||
|
||||
You can specify the SELinux mode in /etc/selinux/config.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user