Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

postgres-lambda-diff

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Heikki Linnakangas authored
    If the process token contains SECURITY_SERVICE_RID, but it has been
    disabled by the SE_GROUP_USE_FOR_DENY_ONLY attribute, win32_is_service()
    would incorrectly report that we're running as a service. That situation
    arises, e.g. if postmaster is launched with a restricted security token,
    with the "Log in as Service" privilege explicitly removed.
    
    Replace the broken code with CheckProcessTokenMembership(), which does
    this correctly. Also replace similar code in win32_is_admin(), even
    though it got this right, for simplicity and consistency.
    
    Per bug #13755, reported by Breen Hagan. Back-patch to all supported
    versions. Patch by Takayuki Tsunakawa, reviewed by Michael Paquier.
    
    Discussion: https://www.postgresql.org/message-id/20151104062315.2745.67143%40wrigleys.postgresql.org
    ff30aec7
    History
    Name Last commit Last update