Skip to content

Commit

Permalink
Fixed CORE-2765: Use of RDB$ADMIN role does not provide SYSDBA rights…
Browse files Browse the repository at this point in the history
… in GRANT/REVOKE
  • Loading branch information
AlexPeshkoff committed Nov 27, 2009
1 parent d644f2c commit 386ad2c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/jrd/trig.h
Expand Up @@ -285,10 +285,15 @@ static const UCHAR trigger1[] =
blr_field, 6, 14, 'R', 'D', 'B', '$', 'O', 'W', 'N', 'E', 'R', '_', 'N',
'A', 'M', 'E',
blr_field, 1, 8, 'R', 'D', 'B', '$', 'U', 'S', 'E', 'R',
blr_or,
blr_eql,
blr_upcase,
blr_user_name,
blr_literal, blr_text, 6, 0, 'S', 'Y', 'S', 'D', 'B', 'A',
blr_eql,
blr_upcase,
blr_current_role,
blr_literal, blr_text, 9, 0, 'R', 'D', 'B', '$', 'A', 'D', 'M', 'I', 'N',
blr_begin,
blr_end,
blr_if,
Expand Down Expand Up @@ -407,10 +412,15 @@ static const UCHAR trigger1[] =
'A', 'M', 'E',
blr_field, 6, 14, 'R', 'D', 'B', '$', 'O', 'W', 'N', 'E', 'R', '_', 'N',
'A', 'M', 'E',
blr_and,
blr_neq,
blr_upcase,
blr_user_name,
blr_literal, blr_text, 6, 0, 'S', 'Y', 'S', 'D', 'B', 'A',
blr_neq,
blr_upcase,
blr_current_role,
blr_literal, blr_text, 9, 0, 'R', 'D', 'B', '$', 'A', 'D', 'M', 'I', 'N',
blr_begin,
blr_if,
blr_not,
Expand Down Expand Up @@ -495,10 +505,15 @@ static const UCHAR trigger1[] =
'A', 'M', 'E',
blr_field, 6, 14, 'R', 'D', 'B', '$', 'O', 'W', 'N', 'E', 'R', '_', 'N',
'A', 'M', 'E',
blr_and,
blr_neq,
blr_upcase,
blr_user_name,
blr_literal, blr_text, 6, 0, 'S', 'Y', 'S', 'D', 'B', 'A',
blr_neq,
blr_upcase,
blr_current_role,
blr_literal, blr_text, 9, 0, 'R', 'D', 'B', '$', 'A', 'D', 'M', 'I', 'N',
blr_begin,
blr_if,
blr_not,
Expand Down Expand Up @@ -648,10 +663,15 @@ static const UCHAR trigger1[] =
'A', 'M', 'E',
blr_upcase,
blr_user_name,
blr_and,
blr_neq,
blr_upcase,
blr_user_name,
blr_literal, blr_text, 6, 0, 'S', 'Y', 'S', 'D', 'B', 'A',
blr_neq,
blr_upcase,
blr_current_role,
blr_literal, blr_text, 9, 0, 'R', 'D', 'B', '$', 'A', 'D', 'M', 'I', 'N',
blr_if,
blr_not,
blr_any,
Expand Down Expand Up @@ -753,10 +773,15 @@ static const UCHAR trigger1[] =
'A', 'M', 'E',
blr_upcase,
blr_user_name,
blr_and,
blr_neq,
blr_upcase,
blr_user_name,
blr_literal, blr_text, 6, 0, 'S', 'Y', 'S', 'D', 'B', 'A',
blr_neq,
blr_upcase,
blr_current_role,
blr_literal, blr_text, 9, 0, 'R', 'D', 'B', '$', 'A', 'D', 'M', 'I', 'N',
blr_if,
blr_not,
blr_any,
Expand Down Expand Up @@ -2365,10 +2390,15 @@ static const UCHAR trigger31[] =
blr_field, 1, 11, 'R', 'D', 'B', '$', 'G', 'R', 'A', 'N', 'T', 'O', 'R',
blr_upcase,
blr_user_name,
blr_and,
blr_neq,
blr_upcase,
blr_user_name,
blr_literal, blr_text, 6, 0, 'S', 'Y', 'S', 'D', 'B', 'A',
blr_neq,
blr_upcase,
blr_current_role,
blr_literal, blr_text, 9, 0, 'R', 'D', 'B', '$', 'A', 'D', 'M', 'I', 'N',
blr_begin,
blr_for,
blr_rse, 1,
Expand Down

0 comments on commit 386ad2c

Please sign in to comment.