security label support, part.1

From: KaiGai Kohei <kaigai(at)ak(dot)jp(dot)nec(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: security label support, part.1
Date: 2010-07-14 05:34:13
Message-ID: 4C3D4C55.2000905@ak.jp.nec.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

The attached patch is a part of efforts to support security label
on database objects.

It adds a new system catalog named pg_seclabel, that has similar
structure with pg_description.

#define SecLabelRelationId 3037

CATALOG(pg_seclabel,3037) BKI_WITHOUT_OIDS
{
Oid reloid; /* OID of table containing the object */
Oid objoid; /* OID of the object itself */
int4 subid; /* column number, or 0 if not used */
text label; /* security label of the object */
} FormData_pg_seclabel;

This patch provides only its definition and basic internal APIs to
get/set/delete security labels, so, we also need to apply the part.2
patch to support ALTER statement to manage security labels, in addition
to the part.1.

Right now, modular sepgsql will perform on the patch.
It can be checked out using:
% svn checkout http://sepgsql.googlecode.com/svn/trunk/sepgsql

Thanks,
--
KaiGai Kohei <kaigai(at)ak(dot)jp(dot)nec(dot)com>

Attachment Content-Type Size
pgsql-v9.1-security-label-1.v1.patch application/octect-stream 13.4 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message KaiGai Kohei 2010-07-14 05:34:15 security label support, part.2
Previous Message Mark Wong 2010-07-14 03:03:43 Re: multiple -f support