[Bug 49825] New: GetNamedSecurityInfoA with LABEL_SECURITY_INFORMATION returns ERROR_ACCESS_DENIED
https://bugs.winehq.org/show_bug.cgi?id=49825 Bug ID: 49825 Summary: GetNamedSecurityInfoA with LABEL_SECURITY_INFORMATION returns ERROR_ACCESS_DENIED Product: Wine Version: 5.16 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: advapi32 Assignee: wine-bugs(a)winehq.org Reporter: vladimir.kokovic(a)gmail.com Distribution: --- Created attachment 68159 --> https://bugs.winehq.org/attachment.cgi?id=68159 wine log file Hi, I don't understand at all what this is all about even though I have a complete WINEDEBUG log, when it comes to GetNamedSecurityInfoA with LABEL_SECURITY_INFORMATION where ERROR_ACCESS_DENIED returns. Although at first glance everything is normal, it is obvious that I do not know enough wine and that is why I need help to resolve this situation and if possible remove this bug for the sake of others and not just me. Attached are 2 files: 1. TestGetNamedSecurityInfoA.cpp - test program 2. WINEDEBUG.log - part of a very large log file -- 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.
https://bugs.winehq.org/show_bug.cgi?id=49825 --- Comment #1 from Vladimir Koković <vladimir.kokovic(a)gmail.com> --- Created attachment 68160 --> https://bugs.winehq.org/attachment.cgi?id=68160 test program -- 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.
https://bugs.winehq.org/show_bug.cgi?id=49825 Fabian Maurer <dark.shadow4(a)web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4(a)web.de Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #2 from Fabian Maurer <dark.shadow4(a)web.de> --- Confirming, that looks like something that should work. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=49825 --- Comment #3 from Vladimir Koković <vladimir.kokovic(a)gmail.com> --- Hi, Realizing that, if I want this bug to be removed, I have to actively participate and find the reason, and if I can, solve it. It is normal that this can only be achieved by active debugging and normal if the debugger is working properly! However, I hope I'm the only one who's unlucky, because the winedbg GIT version really doesn't work! I did wine clone, build, install, made a script and tried winedbg: export WINEPREFIX=/mnt/WD-Elements-25A1/src/wine-git/install64 export WINESERVER=/mnt/WD-Elements-25A1/src/wine-git/install64/bin/wineserver export WINELOADER=/mnt/WD-Elements-25A1/src/wine-git/install64/bin/wine64 export WINEDLLPATH=/mnt/WD-Elements-25A1/src/wine-git/install64/lib64/wine export LD_LIBRARY_PATH="$WINEPREFIX/lib64/wine:$LD_LIBRARY_PATH" /mnt/WD-Elements-25A1/src/wine-git/install64/bin/winedbg '/asoft-src/ispp-64/mingw64/GetNamedSecurityInfoA/GetNamedSecurityInfoA/dist/Debug/MinGW64-Windows/getnamedsecurityinfoa.exe' /mnt/WD-Elements-25A1/src/wine-git/install64/bin/winedbg '/asoft-src/ispp-64/mingw64/GetNamedSecurityInfoA/GetNamedSecurityInfoA/dist/Debug/MinGW64-Windows/getnamedsecurityinfoa.exe' WineDbg starting on pid 00f8 RtlConvertToAutoInheritSecurityObject () at E:\src\wine-git\build64\..\wine\dlls\ntdll\sec.c:1721 0x000000007bc58bf1 RtlConvertToAutoInheritSecurityObject+0x2d1 [E:\src\wine-git\build64\..\wine\dlls\ntdll\sec.c:1721] in ntdll: ret 1721 } Wine-dbg>list main.cpp:19 Enter path to file 'main.cpp' (<cr> to end search): /asoft-src/ispp-64/mingw64/GetNamedSecurityInfoA/GetNamedSecurityInfoA 19 int main(int argc, char** argv) { 20 LPTSTR pszObjName = (CHAR *)"d:\\jre-10.0.2"; 21 DWORD dwRes = 0; 22 PACL pOldDACL = NULL, pOldDACL1 = NULL; 23 PSECURITY_DESCRIPTOR pSD = NULL; 24 PACL Sacl = NULL; 25 26 // Get a pointer to the existing DACL. 27 28 dwRes = GetNamedSecurityInfo( 29 pszObjName, //LPCSTR pObjectName name of object Wine-dbg>b main.cpp:19 Unknown line number (either out of file, or no code at given line number) Wine-dbg>b main.cpp:28 Unknown line number (either out of file, or no code at given line number) Wine-dbg> The question now is: what should I do, poor me? -- 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.
https://bugs.winehq.org/show_bug.cgi?id=49825 --- Comment #4 from Fabian Maurer <dark.shadow4(a)web.de> --- You can set a breakpoint in GetNamedSecurityInfo, or NtQuerySecurityObject which is called. Won't help you too much though... IMHO, the problem lies probably in wineserver. It's hard to debug, so I can't help you there, I'm afraid. You could ask in IRC, #winehackers. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=49825 --- Comment #5 from Vladimir Koković <vladimir.kokovic(a)gmail.com> --- Created attachment 68248 --> https://bugs.winehq.org/attachment.cgi?id=68248 VK Solution -- 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.
https://bugs.winehq.org/show_bug.cgi?id=49825 --- Comment #6 from Vladimir Koković <vladimir.kokovic(a)gmail.com> --- Hi, After detailed research, I was able to find a reason and solution to this problem! When the patch "VK Solution" is applied, my test program passes, although the author needs to confirm the correctness of the solution. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=49825 --- Comment #7 from Vladimir Koković <vladimir.kokovic(a)gmail.com> --- PING -- 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.
https://bugs.winehq.org/show_bug.cgi?id=49825 --- Comment #8 from Vladimir Koković <vladimir.kokovic(a)gmail.com> --- After months of trying to run Oracle Java Web Start (JWS) under Wine, and my personal failure to do so, I am definitely giving up on that variant because I have meanwhile found that IcedTeaWeb (JWS) runs on Linux and also on Wine! -- 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.
https://bugs.winehq.org/show_bug.cgi?id=49825 François Gouget <fgouget(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch, source, testcase CC| |fgouget(a)codeweavers.com -- 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.
participants (1)
-
WineHQ Bugzilla