Re: file_fdw target file ownership - Mailing list pgsql-hackers

From Daniel Vérité
Subject Re: file_fdw target file ownership
Date
Msg-id 7544baf3-c8b1-4fe2-b5ed-9125c67397cc@mm
Whole thread Raw
In response to Re: file_fdw target file ownership  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-hackers
     Andres Freund writes

> andres@alap2:~$ ls -l /tmp/frak
> -rw-r----- 2 root shadow 1652 Jun  4 22:05 /tmp/frak

Ah, indeed.
It fails for me though (Ubuntu 12.04, linux 3.2.0, ext4):

$ ln /etc/shadow /tmp/frak
ln: failed to create hard link `/tmp/frak' => `/etc/shadow': Operation not
permitted

but I can see it succeed on older linux.

Still $PGDATA with its rwx------ permissions is insulated from
any such hard-linking from outsiders, whereas a soft link can point
anywhere.

Best regards,
-- Daniel VéritéPostgreSQL-powered mail user agent and storage: http://www.manitou-mail.org



pgsql-hackers by date:

Previous
From: "MauMau"
Date:
Subject: Re: [bug fix] strerror() returns ??? in a UTF-8/C database with LC_MESSAGES=non-ASCII
Next
From: Peter Eisentraut
Date:
Subject: Re: New statistics for WAL buffer dirty writes