Re: add a MAC check for TRUNCATE - Mailing list pgsql-hackers

From Joe Conway
Subject Re: add a MAC check for TRUNCATE
Date
Msg-id 3b8900c8-0b03-77f3-ac25-f6c0a27790d4@joeconway.com
Whole thread Raw
In response to Re: add a MAC check for TRUNCATE  (Yuli Khodorkovskiy <yuli.khodorkovskiy@crunchydata.com>)
List pgsql-hackers
On 9/6/19 11:26 AM, Yuli Khodorkovskiy wrote:
> On Fri, Sep 6, 2019 at 10:40 AM Stephen Frost <sfrost@snowman.net> wrote:
>> There are actual reasons why the 'DELETE' privilege is *not* the same as
>> 'TRUNCATE' in PostgreSQL and I'm really not convinced that we should
>> just be tossing that distinction out the window for users of SELinux.  A
>> pretty obvious one is that DELETE triggers don't get fired for a
>> TRUNCATE command, but TRUNCATE also doesn't follow the same MVCC rules
>> that the rest of the system does.
>
> I do agree with you there should be a distinction between TRUNCATE and
> DELETE in the SELinux perms. I'll wait a few days for more discussion
> and send an updated patch.


+1 - I don't think there is any question about it.

Joe

--
Crunchy Data - http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development


Attachment

pgsql-hackers by date:

Previous
From: Yuli Khodorkovskiy
Date:
Subject: Re: add a MAC check for TRUNCATE
Next
From: Yuli Khodorkovskiy
Date:
Subject: Re: add a MAC check for TRUNCATE