diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-16 19:46:48 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-16 19:46:48 +0000 |
commit | 311bcfc6b3acdd6fd152798c7f287ddf74fa2a98 (patch) | |
tree | 0ec307299b1dada3701e42f4ca6eda57d708261e /src/test/modules/dummy_seclabel/README | |
parent | Initial commit. (diff) | |
download | postgresql-15-311bcfc6b3acdd6fd152798c7f287ddf74fa2a98.tar.xz postgresql-15-311bcfc6b3acdd6fd152798c7f287ddf74fa2a98.zip |
Adding upstream version 15.4.upstream/15.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/modules/dummy_seclabel/README')
-rw-r--r-- | src/test/modules/dummy_seclabel/README | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/test/modules/dummy_seclabel/README b/src/test/modules/dummy_seclabel/README new file mode 100644 index 0000000..a3fcbd7 --- /dev/null +++ b/src/test/modules/dummy_seclabel/README @@ -0,0 +1,41 @@ +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 SELinux. 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_seclabel' + +postgres=# CREATE TABLE t (a int, b text); +CREATE TABLE +postgres=# SECURITY LABEL ON TABLE t IS 'classified'; +SECURITY LABEL + +The dummy_seclabel module provides only four hardcoded +labels: unclassified, classified, +secret, and top secret. +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> |