[libvirt] [PATCH 07/23] qemu_conf: split out virQEMUDriverConfigLoadSecurityEntry

Ján Tomko jtomko at redhat.com
Fri Jan 18 12:03:19 UTC 2019


On Thu, Jan 17, 2019 at 08:21:00AM -0500, John Ferlan wrote:
>
>
>On 1/15/19 8:23 AM, Ján Tomko wrote:
>> Split out parts of the config parsing code to make
>> the parent function easier to read.
>>
>> Signed-off-by: Ján Tomko <jtomko at redhat.com>
>> ---
>>  src/qemu/qemu_conf.c | 219 +++++++++++++++++++++++--------------------
>>  1 file changed, 117 insertions(+), 102 deletions(-)
>>
>> diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c
>> index 7fdfed7db1..135cb9e25d 100644
>> --- a/src/qemu/qemu_conf.c
>> +++ b/src/qemu/qemu_conf.c
>> @@ -423,6 +423,121 @@ virQEMUDriverConfigHugeTLBFSInit(virHugeTLBFSPtr hugetlbfs,
>>  }
>>
>>
>> +static int
>> +virQEMUDriverConfigLoadSecurityEntry(virQEMUDriverConfigPtr cfg,
>> +                                     virConfPtr conf,
>> +                                     bool privileged)
>
>This does security, cgroups, and namespaces...
>

The division is based on src/qemu/libvirtd_qemu.aug

[...]

>> +> +    if (virConfGetValueInt(conf, "seccomp_sandbox",
>&cfg->seccompSandbox) < 0)
>> +        goto cleanup;
>> +
>
>And again, not security related.
>

How is seccomp not security related?

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190118/fa5c0b8e/attachment-0001.sig>


More information about the libvir-list mailing list