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

2014-12-01 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.

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

2014-12-01 Thread Martin Kletzander
On Mon, Dec 01, 2014 at 05:54:36PM +0800, 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,

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

2014-12-01 Thread Luyao Huang
On 12/01/2014 06:24 PM, Martin Kletzander wrote: On Mon, Dec 01, 2014 at 05:54:36PM +0800, 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

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

2014-12-01 Thread Luyao Huang
On 12/01/2014 11:20 PM, Martin Kletzander wrote: On Mon, Dec 01, 2014 at 11:05:30PM +0800, Luyao Huang wrote: On 12/01/2014 06:24 PM, Martin Kletzander wrote: On Mon, Dec 01, 2014 at 05:54:36PM +0800, Luyao Huang wrote: When use qemuProcessAttach to attach a qemu process, cannot get a right