[Bug 27538] oSpy reports missing administrative privileges when trying to attach or create a process (main assembly installation into WinSxS fails, missing reparse point/junction support)

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Jun 19 12:26:35 CDT 2011


http://bugs.winehq.org/show_bug.cgi?id=27538

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |dotnet
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |focht at gmx.net
         Resolution|                            |DUPLICATE
            Summary|oSpy: attaching or creating |oSpy reports missing
                   |a process fails claiming    |administrative privileges
                   |ospy must be run with       |when trying to attach or
                   |administrative priveleges   |create a process (main
                   |                            |assembly installation into
                   |                            |WinSxS fails, missing
                   |                            |reparse point/junction
                   |                            |support)

--- Comment #2 from Anastasius Focht <focht at gmx.net> 2011-06-19 12:26:34 CDT ---
Hello,

the app installs a couple of managed assemblies into GAC and the side-by-side
cache as part of "capture process" prerequisite.
See code here:

http://ospy.googlecode.com/svn/trunk/oSpy1/MainForm.cs -> PrepareCapture()

http://ospy.googlecode.com/svn/trunk/EasyHook/EasyHook/Config.cs -> Register()

http://ospy.googlecode.com/svn/trunk/EasyHook/EasyHookDll/gacutil.cpp ->
GacInstallAssembly()

List of assemblies to be installed: "oSpy", "EasyHook.dll", "oSpy.exe",
"oSpyAgent.dll"

The installation of managed assemblies into shared GAC works.

--- snip ---
0027:CALL EasyHook32._GacInstallAssembly at 16(<unknown, check return>)
ret=03f55653
0027:Call shlwapi.PathFindExtensionW(009eb098
L"Z:\\home\\focht\\Downloads\\oSpy-1.10.4\\EasyHook.dll") ret=7a13c09b 
...
0027:RET 
EasyHook32._GacInstallAssembly at 16(04da8138,009eb098,008a7008,00a17680)
retval=00000001 ret=03f55653 
--- snip ---

The installation of managed executable into side-by-side cache (WinSxS) does
not:

--- snip ---
0027:CALL
EasyHook32._GacInstallAssembly at 16(04da8138,00a11420,008a7008,00a17748)
ret=03f55653
0027:Call shlwapi.PathFindExtensionW(00a11420
L"Z:\\home\\focht\\Downloads\\oSpy-1.10.4\\oSpy.exe") ret=7a13c09b 
...
0027:Call KERNEL32.MoveFileW(001e9534
L"C:\\windows\\assembly\\tmp\\ZYINJFB8",001ddb00
L"C:\\windows\\WinSxS\\MSIL_oSpy_f38f19e9943b6121_1.10.4.0_x-ww_4df60e36")
ret=7a126499
0027:Ret  KERNEL32.MoveFileW() retval=00000001 ret=7a126499 
...
0027:Call KERNEL32.GetFileAttributesW(0032ccc0
L"C:\\windows\\WinSxS\\MSIL_oSpy_f38f19e9943b6121_1.10.4.0_x-ww_4df60e36")
ret=79eb7b18
0027:Ret  KERNEL32.GetFileAttributesW() retval=00000010 ret=79eb7b18
0027:Call KERNEL32.CreateFileW(0032dfd8
L"C:\\windows\\assembly\\GAC_MSIL\\oSpy\\1.10.4.0__f38f19e9943b6121",c0000000,00000003,00000000,00000003,02200000,00000000)
ret=79ea0464
0027:Ret  KERNEL32.CreateFileW() retval=00000270 ret=79ea0464 
...
0027:Call
KERNEL32.DeviceIoControl(00000270,000900a4,001ddb90,00000128,00000000,00000000,0032caa0,00000000)
ret=7a13f846
0027:fixme:ntdll:server_ioctl_file Unsupported ioctl 900a4 (device=9 access=0
func=29 method=0)
0027:Ret  KERNEL32.DeviceIoControl() retval=00000000 ret=7a13f846 
0027:Call KERNEL32.GetLastError() ret=7a13f856
0027:Ret  KERNEL32.GetLastError() retval=00000032 ret=7a13f856
...
0027:RET  EasyHook32._GacInstallAssembly at 16() retval=00000000 ret=03f55653 
...
0027:Call KERNEL32.RaiseException(e0434f4d,00000001,00000001,0032eaa8)
ret=79f97065
0027:trace:seh:raise_exception code=e0434f4d flags=1 addr=0x7b839f9b
ip=7b839f9b tid=0027
0027:trace:seh:raise_exception  info[0]=80131600
0027:trace:seh:raise_exception  eax=7b825f1d ebx=7b893ff4 ecx=80131600
edx=0032e9a8 esi=0032ea88 edi=0032ea00
0027:trace:seh:raise_exception  ebp=0032e9e8 esp=0032e984 cs=0073 ds=007b
es=007b fs=0033 gs=003b flags=00000207
...
0027:Call user32.MessageBoxW(00010096,009ea7ac L"You need to run oSpy with
administrative privileges in order to do this.",009ea850 L"Permission
Denied",00000010) ret=03f557cf 
--- snip ---

The reason is unfortunately a well known bug, the missing junction/reparse
point support (bug 10601)

Regards

*** This bug has been marked as a duplicate of bug 10601 ***

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list