From: | "Daniel =?ISO-8859-1?Q?V=E9rit=E9?=" <daniel(dot)verite(at)gmail(dot)com> |
---|---|
To: | "Andres Freund" <andres(at)2ndquadrant(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: file_fdw target file ownership |
Date: | 2013-09-09 20:42:48 |
Message-ID: | 7544baf3-c8b1-4fe2-b5ed-9125c67397cc@mm |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Andres Freund writes
> andres(at)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
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2013-09-09 21:43:03 | Re: New statistics for WAL buffer dirty writes |
Previous Message | MauMau | 2013-09-09 20:42:06 | Re: [bug fix] strerror() returns ??? in a UTF-8/C database with LC_MESSAGES=non-ASCII |