OSDN Git Service

Add a SECURITY LABEL command.
authorRobert Haas <rhaas@postgresql.org>
Tue, 28 Sep 2010 00:55:27 +0000 (20:55 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 28 Sep 2010 00:55:27 +0000 (20:55 -0400)
commit4d355a8336e0f2265b31d678ffd1ee5cf9e79fae
tree9ab7e59c81ca1a8417ea2bfe8b3c11e232f3a9ee
parent2ce003973db82205cec55d596d51e957293019d1
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
42 files changed:
contrib/Makefile
contrib/dummy_seclabel/Makefile [new file with mode: 0644]
contrib/dummy_seclabel/dummy_seclabel.c [new file with mode: 0644]
doc/src/sgml/catalogs.sgml
doc/src/sgml/ref/allfiles.sgml
doc/src/sgml/ref/pg_dump.sgml
doc/src/sgml/ref/pg_dumpall.sgml
doc/src/sgml/ref/pg_restore.sgml
doc/src/sgml/ref/security_label.sgml [new file with mode: 0644]
doc/src/sgml/reference.sgml
src/backend/catalog/Makefile
src/backend/catalog/dependency.c
src/backend/catalog/system_views.sql
src/backend/commands/Makefile
src/backend/commands/seclabel.c [new file with mode: 0644]
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/parser/gram.y
src/backend/tcop/utility.c
src/bin/pg_dump/pg_backup.h
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dumpall.c
src/bin/pg_dump/pg_restore.c
src/bin/psql/tab-complete.c
src/include/catalog/catversion.h
src/include/catalog/indexing.h
src/include/catalog/pg_seclabel.h [new file with mode: 0644]
src/include/catalog/toasting.h
src/include/commands/seclabel.h [new file with mode: 0644]
src/include/nodes/nodes.h
src/include/nodes/parsenodes.h
src/include/parser/kwlist.h
src/test/regress/GNUmakefile
src/test/regress/expected/.gitignore
src/test/regress/expected/rules.out
src/test/regress/expected/sanity_check.out
src/test/regress/input/security_label.source [new file with mode: 0644]
src/test/regress/output/security_label.source [new file with mode: 0644]
src/test/regress/parallel_schedule
src/test/regress/serial_schedule
src/test/regress/sql/.gitignore