Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcef674b

Browse files
committed
PGPRO-2784: Windows installer does not clear permissive ACL entries
1 parent8d8a7fe commitcef674b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

‎nsis/postgresql.nsi

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,14 @@ Call CheckDataDir
928928
${endif}
929929
FileClose$LogFile;Closes the filled file
930930

931+
AccessControl::DisableFileInheritance"$DATA_DIR"
932+
AccessControl::RevokeOnFile"$DATA_DIR""(BU)""GenericWrite + GenericRead"
933+
AccessControl::RevokeOnFile"$DATA_DIR""(AU)""GenericWrite + GenericRead"
934+
AccessControl::RevokeOnFile"$DATA_DIR""(DU)""GenericWrite + GenericRead"
935+
936+
push"$INSTDIR"
937+
call createAccessForFolder
938+
931939
SectionEnd
932940

933941
Section $(componentDeveloper) secDev
@@ -2529,3 +2537,20 @@ Function un.onInit
25292537
${endif}
25302538

25312539
FunctionEnd
2540+
2541+
Function createAccessForFolder
2542+
pop$0
2543+
AccessControl::DisableFileInheritance"$0"
2544+
AccessControl::RevokeOnFile"$0""(BU)""GenericWrite"
2545+
AccessControl::RevokeOnFile"$0""(AU)""GenericWrite"
2546+
AccessControl::RevokeOnFile"$0""(DU)""GenericWrite"
2547+
AccessControl::GrantOnFile"$0""(BU)""GenericRead + GenericExecute"
2548+
${if}${AtLeastWin8}
2549+
;ALL_APP_PACKAGES (S-1-15-2-1)
2550+
AccessControl::GrantOnFile"$0""(S-1-15-2-1)""GenericRead + GenericExecute"
2551+
;The SID for "ALL RESTRICTED APPLICATION PACKAGES" is S-1-15-2-2
2552+
AccessControl::GrantOnFile"$0""(S-1-15-2-2)""GenericRead + GenericExecute"
2553+
${endif}
2554+
2555+
FunctionEnd
2556+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp