]> granicus.if.org Git - postgresql/commit
Support SECURITY LABEL on databases, tablespaces, and roles.
authorRobert Haas <rhaas@postgresql.org>
Wed, 20 Jul 2011 17:18:24 +0000 (13:18 -0400)
committerRobert Haas <rhaas@postgresql.org>
Wed, 20 Jul 2011 17:18:24 +0000 (13:18 -0400)
commit463f2625a5fb183b6a8925ccde98bb3889f921d9
treef64c17891383a1867946c82215321b6aa42f1a42
parentcacd42d62cb2ddf32135b151f627780a5509780f
Support SECURITY LABEL on databases, tablespaces, and roles.

This requires a new shared catalog, pg_shseclabel.

Along the way, fix the security_label regression tests so that they
don't monkey with the labels of any pre-existing objects.  This is
unlikely to matter in practice, since only the label for the "dummy"
provider was being manipulated.  But this way still seems cleaner.

KaiGai Kohei, with fairly extensive hacking by me.
22 files changed:
doc/src/sgml/catalogs.sgml
doc/src/sgml/ref/security_label.sgml
src/backend/catalog/Makefile
src/backend/catalog/catalog.c
src/backend/catalog/system_views.sql
src/backend/commands/dbcommands.c
src/backend/commands/seclabel.c
src/backend/commands/tablespace.c
src/backend/commands/user.c
src/backend/parser/gram.y
src/bin/pg_dump/dumputils.c
src/bin/pg_dump/dumputils.h
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dumpall.c
src/include/catalog/catversion.h
src/include/catalog/indexing.h
src/include/catalog/pg_shseclabel.h [new file with mode: 0644]
src/include/commands/seclabel.h
src/test/regress/expected/rules.out
src/test/regress/expected/sanity_check.out
src/test/regress/input/security_label.source
src/test/regress/output/security_label.source