]> xenbits.xensource.com Git - libvirt.git/commit
security_dac: rework callback parameter passing
authorJim Fehlig <jfehlig@suse.com>
Thu, 15 May 2014 18:15:01 +0000 (12:15 -0600)
committerJim Fehlig <jfehlig@suse.com>
Fri, 16 May 2014 21:32:14 +0000 (15:32 -0600)
commit3de7e4ec5e98145137445b631f44a43a19267d0c
treea763dbfe175a4e4c030400f901665dfd6632e47d
parent1d98e713d52319a31166ba07f8710abf30073c65
security_dac: rework callback parameter passing

Currently, the DAC security driver passes callback data as

    void params[2];
    params[0] = mgr;
    params[1] = def;

Clean this up by defining a structure for passing the callback
data.  Moreover, there's no need to pass the whole virDomainDef
in the callback as the only thing needed in the callbacks is
virSecurityLabelDefPtr.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
src/security/security_dac.c