8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 21:23:04 +01:00
Commit Graph

110 Commits

Author SHA1 Message Date
7bf7455cb3 Fixed CORE-5248: Improve consistency in GRANT syntax between roles and privileges according to SQL standard 2016-08-24 18:47:39 +03:00
7ad99b795e Added support for system privileges 2016-05-31 20:07:08 +03:00
alexpeshkoff
7fed9ff78c cleanup 2015-03-05 16:18:46 +00:00
roman-simakov
6703f3aed2 Fixed CORE-4522 - DDL permission do not protect
against removal BLOB filters. Owner was added to RDB$FILTERS. ODS is changed.
Fixed bug when one DDL privilege could be shown several times.
Removed unneccesary check of locksmith in alter database.
2014-08-28 12:19:46 +00:00
skidder
7c743fc291 Fix build warnings 2014-07-17 18:48:46 +00:00
roman-simakov
06e61b329a Fixed crash due restore from backup after DDL permissions implementation and changed prefix of SC to general SQL$ to skip backuping such classes by standard way. 2014-07-16 10:09:02 +00:00
asfernandes
fa0c3dd11c Misc. 2014-07-10 02:21:18 +00:00
roman-simakov
573e93e5a6 Fixed CORE-735: User rights for metadata changes.
We check DDL in DDL nodes and skip at vio level. vio level still exists for direct metadata editing.
2014-07-08 07:35:27 +00:00
robocop
acde43cf94 Misc. 2014-04-02 02:22:13 +00:00
asfernandes
bd237461db Misc. 2013-03-08 02:37:40 +00:00
dimitr
86f4b02ef3 1) Cleanup and renaming in the SCL code.
2) Reimplemented the USAGE privilege as a separate one.
3) Added USAGE permission checks for generators/sequences and exceptions.
4) Supported USAGE in GRANT/REVOKE for all object types.
5) Refactored SET GENERATOR and ALTER SEQUENCE as true DDL. blr_set_generator is supported only for backward compatibility, it's not generated by DSQL anymore.
6) Added START WITH clause for [RE]CREATE SEQUENCE and CREATE OR ALTER SEQUENCE.
7) Fixed a number of related errors.
2013-03-07 13:59:03 +00:00
alexpeshkoff
4e795f4047 Include platform definitions file common.h in firebird.h. Use OS-specific ThreadId instead artificial FB_THREAD_ID, avoiding unneeded casts in the code. This should fix BSD and MAC ports. 2012-03-01 08:55:43 +00:00
asfernandes
df31dac958 Refactor GRANT and REVOKE commands. This eliminates the DYN subsystem. 2012-02-19 02:17:27 +00:00
robocop
eed418a89e Make blb resemble more a class: private data members, convert some functions into methods, add methods with code that was in other files, etc. 2012-02-15 03:34:21 +00:00
robocop
186c817caa Playing with fire: converting some static functions into member functions. I tried to check every change I did. 2012-02-07 03:17:52 +00:00
dimitr
e956e2e6c0 1) Restricted ALTER/DROP permissions to the object owners only. Now this applies to domains, charsets, collations, generators and exceptions. This fixes CORE-304: Metadata security hole - any user can alter/drop generators and exceptions.
2) Opened the gates to implement the standard USAGE privilege (CORE-2884). SQL support and validation logic are still to be developed.
3) Added the grant option to the owner permissions for packages, procedures and functions.
4) Misc cleanup and refactoring.
2012-01-08 14:05:29 +00:00
dimitr
d0d58495c8 Fixed inability to restore privileges granted to roles. 2010-11-24 15:55:06 +00:00
alexpeshkoff
e05c1a825f Moved some more .h-files to common from jrd as Vlad suggested 2010-10-13 10:39:52 +00:00
alexpeshkoff
2dc25a44bb OSRI and new posix build 2010-10-12 08:02:57 +00:00
robocop
9eaa31856a Cleanup. 2010-04-29 05:15:57 +00:00
asfernandes
0c47a04538 1) Use RAII with the non-cached requests.
2) Change GPRE generated code to something that fits the future SMP-aware engine, replacing calls of "request = CMP_compile2(...)" by "request.compile(...)". Boot build required.
2010-04-19 22:49:18 +00:00
asfernandes
39498cb65b Use AutoCacheRequest in all cacheable system requests. Fixes some request leakages. 2010-04-18 15:04:52 +00:00
asfernandes
e1ba33a2ae Fix problem of the system transaction storing pointer to random or already deallocated attachment. Full build (or kind of) required. 2010-04-02 21:48:15 +00:00
asfernandes
534b8c020e Misc 2009-12-25 19:29:58 +00:00
dimitr
ea23c03133 PSQL functions (security). 2009-12-25 12:58:06 +00:00
asfernandes
a3dd1d0482 Misc 2009-11-26 00:20:59 +00:00
robocop
579a456329 Style. 2009-11-25 08:38:52 +00:00
robocop
75df0fc37d Comments. 2009-11-25 03:58:43 +00:00
asfernandes
ed0e0daeb3 - External Engines implementation.
- Plugins API.

- Feature CORE-2700 - UDR (User Defined Routines) Engine - C++ API supporting functions, triggers and stored procedures.
- Feature CORE-2470 - Support for alternate format of strings literals.
- Feature CORE-2310 - DDL triggers.
- Feature CORE-2312 - PSQL Packages.
- Feature CORE-1209 - CONTINUE statement.
- Feature CORE-1180 - DDL syntax to change (not) nullable state of columns.
- Feature CORE-2090 - Support OVER () clause with current aggregate functions.

- Fixed CORE-2699 - Common table expression context could be used with parameters.

- Introduce ODS 12.0.

- Work in progress in type-safe parser.
- Refactor some DDL commands (procedures and triggers) from DYN to DdlNodes.
- Refactor virtual tables to use a class hierarchy instead of namespaces. This is basic thing, not based on the changes done in Vulcan. Window functions is based on this work.
- Refactor COMMENT ON and DROP FUNCTION from DYN to DdlNodes. COMMENT ON do not use GDML anymore, it uses DSQL with PreparedStatement class.
- Refactor EXECUTE BLOCK to StmtNodes.
- Refactor the IUDF to SysFunctions. That eliminates RDB$GET_CONTEXT and RDB$SET_CONTEXT from RDB$FUNCTIONS.
2009-10-21 00:42:38 +00:00
asfernandes
90dfb9a411 Misc 2009-09-30 01:10:11 +00:00
alexpeshkoff
b19dacee16 Ported fix for CORE-2634: Performance regression when restoring database with big metadata 2009-09-29 10:35:16 +00:00
robocop
81e2c10f0d Moved DEFAULT_CLASS to constants.h;
a Buil | Clean Solution + F7 may be needed in VC (otherwise linker errors appear).
2009-06-26 11:18:45 +00:00
dimitr
f76bf6e89c Misc. 2009-06-04 06:17:04 +00:00
asfernandes
f6f364da49 Trim trailling spaces 2009-04-04 16:39:31 +00:00
asfernandes
bf54a61664 Uninitialized variables 2009-02-21 22:50:48 +00:00
dimitr
08837ab3bd Misc. 2009-02-10 04:38:52 +00:00
alexpeshkoff
4df924efbd More changes for CORE-1770 and CORE-2285 2009-02-09 15:24:18 +00:00
asfernandes
1105286dee Misc 2009-02-07 15:20:34 +00:00
alexpeshkoff
8a5e606a27 Fixed CORE-2285 (and CORE-1770): Database with many grants gets corrupted 2009-02-06 11:20:18 +00:00
robocop
3689f15321 Style. 2009-01-20 08:33:59 +00:00
robocop
6406e45337 Shut up compiler warnings (unreferenced vars, uninitialized vars, compile-time conditional code, etc.) 2009-01-02 06:36:12 +00:00
robocop
95292d1731 Style. 2008-12-20 08:12:19 +00:00
robocop
0a94d6fee8 Style. 2008-12-18 10:57:12 +00:00
asfernandes
7f4f7b06d6 Misc 2008-07-16 01:39:12 +00:00
robocop
cd4dd09475 More cleanup. 2008-07-15 06:24:04 +00:00
alexpeshkoff
aeba7e6444 Fixed CORE-1957 & CORE-216: too many grants lose privileges. ACLs cleanup. 2008-07-11 13:50:59 +00:00
dimitr
f735ff4502 Fixed CORE-1963: Possible server crash on commit when granting/revoking privileges from multiple connections simultaneously. 2008-06-27 08:44:40 +00:00
robocop
f5db14b277 Pass some tdbb's as arguments. 2008-03-18 13:04:05 +00:00
robocop
4c3381ef6b Style, constness and macro cleanup. 2008-02-03 10:41:44 +00:00
alexpeshkoff
39896cb955 Fixed CORE-1671: atexit() calls in client libraries cause segfaults
and CORE-1079: Every attach of fbclient/fbembed library leaks 64KB of memory

To do it:
- created new template GlobalPtr, controlling access to destructors of global objects.
- applied it to global objects.

Also some related cleanup.
2008-01-23 15:52:40 +00:00