* Alex Williamson (alex.williamson(a)redhat.com) wrote:
On Thu, 2011-03-17 at 14:12 -0700, Chris Wright wrote:
> * Alex Williamson (alex.williamson(a)redhat.com) wrote:
> > + fd = open(reset_file, O_WRONLY);
> > + if (fd != -1) {
> > + ret = write(fd, reset, strlen(reset));
> > + close(fd);
> > + }
>
> This will probably fail when it's managed by libvirt. I expect it
> will need some file ownership and security label mgmt added to device
> assignement path I expect.
Already posted a patch for adding file rights, seems to be sufficient:
https://www.redhat.com/archives/libvir-list/2011-March/msg00823.html
Awesome, I missed that path, thanks Alex!
thanks,
-chris