/
githubmirror
/
postgres
ОбзорДокументацияВойти
/
githubmirror
/
postgres
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
ДокументацияПоддержка
Политика конфиденциальностиПользовательское соглашениеПолитика использования «cookies»Согласие субъекта персональных данных
2026 ©
postgres/
.../modules/dummy_seclabel/
..
expected

Improve several permission-related error messages.

3 года назад
sql

Restrict the privileges of CREATEROLE users.

4 года назад
.gitignore

dummy_seclabel: add sql/, expected/, and .gitignores

12 лет назад
Makefile

Remove erroneous EXTRA_CLEAN line from Makefile.

12 лет назад
README

doc: Fix naming of SELinux

7 лет назад
dummy_seclabel--1.0.sql

Fix whitespace

12 лет назад
dummy_seclabel.c

Update copyright for 2026

7 месяцев назад
dummy_seclabel.control

Install kludges to fix check-world for src/test/modules

12 лет назад
meson.build

Update copyright for 2026

7 месяцев назад
README
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>