pgsql: Add a SECURITY LABEL command.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add a SECURITY LABEL command.
Date: 2010-09-28 01:03:09
Message-ID: E1P0Ob7-0002nT-4d@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add a SECURITY LABEL command.

This is intended as infrastructure to support integration with label-based
mandatory access control systems such as SE-Linux. Further changes (mostly
hooks) will be needed, but this is a big chunk of it.

KaiGai Kohei and Robert Haas

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=4d355a8336e0f2265b31d678ffd1ee5cf9e79fae

Modified Files
--------------
contrib/Makefile | 1 +
contrib/dummy_seclabel/Makefile | 14 +
contrib/dummy_seclabel/dummy_seclabel.c | 49 +++
doc/src/sgml/catalogs.sgml | 172 +++++++++++
doc/src/sgml/ref/allfiles.sgml | 1 +
doc/src/sgml/ref/pg_dump.sgml | 10 +
doc/src/sgml/ref/pg_dumpall.sgml | 9 +
doc/src/sgml/ref/pg_restore.sgml | 10 +
doc/src/sgml/ref/security_label.sgml | 194 +++++++++++++
doc/src/sgml/reference.sgml | 1 +
src/backend/catalog/Makefile | 2 +-
src/backend/catalog/dependency.c | 7 +-
src/backend/catalog/system_views.sql | 108 +++++++
src/backend/commands/Makefile | 2 +-
src/backend/commands/seclabel.c | 387 +++++++++++++++++++++++++
src/backend/nodes/copyfuncs.c | 17 +
src/backend/nodes/equalfuncs.c | 15 +
src/backend/parser/gram.y | 96 ++++++-
src/backend/tcop/utility.c | 14 +
src/bin/pg_dump/pg_backup.h | 1 +
src/bin/pg_dump/pg_backup_archiver.c | 6 +
src/bin/pg_dump/pg_dump.c | 370 +++++++++++++++++++++++-
src/bin/pg_dump/pg_dumpall.c | 7 +
src/bin/pg_dump/pg_restore.c | 6 +
src/bin/psql/tab-complete.c | 39 +++-
src/include/catalog/catversion.h | 2 +-
src/include/catalog/indexing.h | 3 +
src/include/catalog/pg_seclabel.h | 43 +++
src/include/catalog/toasting.h | 1 +
src/include/commands/seclabel.h | 35 +++
src/include/nodes/nodes.h | 1 +
src/include/nodes/parsenodes.h | 14 +
src/include/parser/kwlist.h | 1 +
src/test/regress/GNUmakefile | 12 +-
src/test/regress/expected/.gitignore | 1 +
src/test/regress/expected/rules.out | 7 +-
src/test/regress/expected/sanity_check.out | 3 +-
src/test/regress/input/security_label.source | 84 ++++++
src/test/regress/output/security_label.source | 92 ++++++
src/test/regress/parallel_schedule | 2 +-
src/test/regress/serial_schedule | 1 +
src/test/regress/sql/.gitignore | 1 +
42 files changed, 1815 insertions(+), 26 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Itagaki Takahiro 2010-09-28 05:30:49 pgsql: Add DISCARD to the command_no_begin list for AUTOCOMMIT=off.
Previous Message Robert Haas 2010-09-27 13:45:29 pgsql: Add "(change requires restart)" note to some postgresql.conf par