Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.
This repository was archived by the owner on May 6, 2020. It is now read-only.

dropping privileges for qemu-lite-system-x86_64 #1104

@zeigerpuppy

Description

@zeigerpuppy

Usually when running qemu, it is recommended to drop privileges when a machine starts.

For standard qemu with libvirt this is achieved by setting the values in /etc/libvirt/qemu.conf to:

user = "libvirt-qemu"
group = "libvirt-qemu"
clear_emulator_capabilities = 1

I note that currently qemu-lite-system-x86_64 runs all processes as root.
Is there a way to similarly drop privileges?

I understand that this has some impact on image ownership and sharing, which would require permissions to be set properly but it still seems like it would be a good idea to ensure a rogue machine can do less damage to the host if it escapes confinement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions