Re: [libvirt] [PATCHv3 2/2] security: Add a new func use stat to get process DAC label

2014-12-05 Thread Luyao Huang
On 12/06/2014 12:50 AM, Eric Blake wrote: On 12/05/2014 01:20 AM, Luyao Huang wrote: When use qemuProcessAttach to attach a qemu process, cannot get a right DAC label. Add a new func to get process label via stat func. Do not remove virDomainDefGetSecurityLabelDef before try to use stat to get

Re: [libvirt] [PATCHv3 2/2] security: Add a new func use stat to get process DAC label

2014-12-05 Thread Eric Blake
On 12/05/2014 01:20 AM, Luyao Huang wrote: > When use qemuProcessAttach to attach a qemu process, cannot > get a right DAC label. Add a new func to get process label > via stat func. Do not remove virDomainDefGetSecurityLabelDef > before try to use stat to get process DAC label, because > There are

[libvirt] [PATCHv3 2/2] security: Add a new func use stat to get process DAC label

2014-12-05 Thread Luyao Huang
When use qemuProcessAttach to attach a qemu process, cannot get a right DAC label. Add a new func to get process label via stat func. Do not remove virDomainDefGetSecurityLabelDef before try to use stat to get process DAC label, because There are some other func call virSecurityDACGetProcessLabel.