http://bugs.winehq.org/show_bug.cgi?id=10018
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |julliard@winehq.org
--- Comment #25 from Alexandre Julliard julliard@winehq.org 2007-11-28 11:38:19 --- (In reply to comment #24)
I think it might fly to package up wine with a tiny utility -- say, a simple subset of sg_inq -- that is installed setuid root, and spawn that to retrieve the disk id.
You can't just make such a package setuid root, that would defeat the purpose of protecting the id. There would at least need to be a configuration part to enable only trusted users, or we'd have to use sudo and somehow prompt for passwords.
In any case the biggest problem is to first get to the point where we have to return the id. We can't require people to create a fake loop device for this, we need some sort of pseudo-device using an ntoskrnl-style mechanism to handle ioctls.