[Bug 52130] New: Multiple applications need LsaEnumerateAccountRights implementation
WineHQ Bugzilla
wine-bugs at winehq.org
Sun Nov 28 14:31:34 CST 2021
https://bugs.winehq.org/show_bug.cgi?id=52130
Bug ID: 52130
Summary: Multiple applications need LsaEnumerateAccountRights
implementation
Product: Wine
Version: 6.22
Hardware: x86-64
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: advapi32
Assignee: wine-bugs at winehq.org
Reporter: focht at gmx.net
Distribution: ---
Hello folks,
placeholder for the future, split off from bug 52059. I found a small tool
which uses LSA API for granting 'SeLockMemoryPrivilege'. Good for testing
because it actually calls 'LsaEnumerateAccountRights' later and dumps the
returned info ('SeLockMemoryPrivilege' privilege ought to be in the list).
https://web.archive.org/web/20211128192930/http://www.numberworld.org/y-cruncher/guides/pages.html
--- quote ---
There are 3 requirements for large (and locked) pages to work on Windows:
1. You need to have the "SeLockMemoryPrivilege" token. This privilege is
disabled for all users by default. You will need to enable it manually.
2. y-cruncher needs to be running as an administrator.
3. There needs to be enough contiguous physical memory in the system.
Enabling SeLockMemoryPrivilege:
"SeLockMemoryPrivilege" is disabled for all users by default. So you will
likely need to enable it manually.
Instructions for enabling it using the Group Policy Editor can be found here:
https://msdn.microsoft.com/en-us/library/ms190730.aspx
If your version of Windows is a Home Edition and does not have the Group Policy
Editor, you can also enable it by running the following program:
Enable "SeLockMemoryPrivilege" on Windows:
* Precompiled Binary
* Source Code
Run y-cruncher as an Administrator:
Right-click the program and select "Run as administrator". You may get a UAC
warning depending on your settings.
--- quote ---
https://web.archive.org/web/20171109063809/http://numberworld.org/y-cruncher/guides/enable_permissions.exe
--- snip ---
$ wine ./enable_permissions.exe
...
Retrieving Account Name... Account Name: focht
Opening LSA Handle... Success
Obtaining Security ID... Domain: N550
Adding permission for: SeLockMemoryPrivilege
0024:fixme:advapi:LsaAddAccountRights (0000CAFE,0045EC38,0032FE6C,0x00000001)
stub
Success
Enumerating User-specific Permissions...
0024:fixme:advapi:LsaEnumerateAccountRights
(0000CAFE,0045EC38,0032FE54,0032FE50) stub
Please restart for changes to take effect.
Press any key to continue...
--- snip ---
$ sha1sum enable_permissions.exe
947cc8f8c809b88fa22d72f283f123a712f38b02 enable_permissions.exe
$ du -sh enable_permissions.exe
216K enable_permissions.exe
https://web.archive.org/web/20190924092347/http://www.numberworld.org/y-cruncher/guides/enable_permissions.cpp
$ wine --version
wine-6.22-204-gf03933fbb73
Regards
--
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