From 45768d10e3abd513b4c959efeb5907798f2fac3f Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Wed, 17 Nov 2010 20:46:19 -0500 Subject: [PATCH] Document the dummy_seclabel contrib module. KaiGai Kohei, with editing and markup fixes by me. --- doc/src/sgml/contrib.sgml | 1 + doc/src/sgml/dummy-seclabel.sgml | 75 ++++++++++++++++++++++++++++++++++++++++ doc/src/sgml/filelist.sgml | 1 + 3 files changed, 77 insertions(+) create mode 100644 doc/src/sgml/dummy-seclabel.sgml diff --git a/doc/src/sgml/contrib.sgml b/doc/src/sgml/contrib.sgml index c31041614b..9057996014 100644 --- a/doc/src/sgml/contrib.sgml +++ b/doc/src/sgml/contrib.sgml @@ -90,6 +90,7 @@ psql -d dbname -f SHAREDIR/contrib/module.sql &dblink; &dict-int; &dict-xsyn; + &dummy-seclabel; &earthdistance; &fuzzystrmatch; &hstore; diff --git a/doc/src/sgml/dummy-seclabel.sgml b/doc/src/sgml/dummy-seclabel.sgml new file mode 100644 index 0000000000..5b5089c201 --- /dev/null +++ b/doc/src/sgml/dummy-seclabel.sgml @@ -0,0 +1,75 @@ + + + + dummy_seclabel + + + dummy_seclabel + + + + The dummy_seclabel module exists only to support regression + testing of the SECURITY LABEL statement. It is not intended + to be used in production. + + + + Rationale + + + The SECURITY LABEL statement allows the user to assign security + labels to database objects; however, security labels can only be assigned + when specifically allowed by a loadable module, so this module is provided + to allow proper regression testing. + + + + Security label providers intended to be used in production will typically be + dependent on a platform-specific feature such as + SE-Linux. This module is platform-independent, + and therefore better-suited to regression testing. + + + + + Usage + + + Here's a simple example of usage: + + + +# postgresql.conf +shared_preload_libraries = 'dummy_label' + + + +postgres=# CREATE TABLE t (a int, b text); +CREATE TABLE +postgres=# SECURITY LABEL ON TABLE t IS 'classified'; +SECURITY LABEL + + + + The dummy_seclabel provides only four hardcoded + labels: unclassified, classified, + secret, top secret and trusted. + + It does not allow any other strings as security labels. + + + These labels are not used to enforce access controls. They are only used + to check whether the SECURITY LABEL statement works as expected, + or not. + + + + + Author + + + KaiGai Kohei kaigai@ak.jp.nec.com + + + + diff --git a/doc/src/sgml/filelist.sgml b/doc/src/sgml/filelist.sgml index 9b1de856b0..39cfcee961 100644 --- a/doc/src/sgml/filelist.sgml +++ b/doc/src/sgml/filelist.sgml @@ -102,6 +102,7 @@ + -- 2.11.0