Re: One question about security label command - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: One question about security label command
Date
Msg-id 20150310134101.GC3291@alvh.no-ip.org
Whole thread Raw
In response to Re: One question about security label command  (Kohei KaiGai <kaigai@kaigai.gr.jp>)
Responses Re: One question about security label command
List pgsql-hackers
Kohei KaiGai wrote:
> The attached patch revises error message when security label
> is specified on unsupported object.
> getObjectTypeDescription() may be better than oid of catalog.

Agreed.

> postgres=# SECURITY LABEL FOR selinux ON ROLE kaigai
> postgres-#   IS 'system_u:object_r:unlabeled_t:s0';
> ERROR:  sepgsql provider does not support labels on role

I'd make itsepgsql provider does not support labels on objects of type "%s"

And perhaps make it an ereport also, with errcode etc.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Relation ordering in FROM clause causing error related to missing entry... Or not.
Next
From: Alvaro Herrera
Date:
Subject: Re: moving from contrib to bin