- Change the persmissions for /var/run/postgresql to 1775, so that

the directory can only be used by users in the postgres group.
  At the same time a patch will be added to the postgresqlXX
  packages that adds a fallback to /tmp if socket creation in
  /var/run/postgresql fails.

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=113
This commit is contained in:
2019-02-19 16:10:28 +00:00
committed by Git OBS Bridge
parent f432e6cc8e
commit 45b893abc9
3 changed files with 12 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
# For the PostgreSQL server's unix domain socket
d /run/postgresql 1777 root root - -
d /run/postgresql 1775 postgres postgres - -
f /var/lib/pgsql/.bash_profile 0640 postgres postgres - /usr/share/postgresql/bash_profile

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue Feb 19 16:05:22 UTC 2019 - Reinhard Max <max@suse.com>
- Change the persmissions for /var/run/postgresql to 1775, so that
the directory can only be used by users in the postgres group.
At the same time a patch will be added to the postgresqlXX
packages that adds a fallback to /tmp if socket creation in
/var/run/postgresql fails.
-------------------------------------------------------------------
Thu Jan 31 13:23:56 UTC 2019 - Reinhard Max <max@suse.com>

View File

@@ -384,10 +384,10 @@ fi
%_tmpfilesdir/postgresql.conf
%_unitdir/
/usr/share/postgresql/postgresql-script
%ghost %dir %attr(1777,root,root) /run/postgresql
%ghost %dir %attr(1775,root,root) /run/postgresql
%else
%config /etc/init.d/postgresql
%dir %attr(1777,root,root) /var/run/postgresql
%dir %attr(1775,root,root) /var/run/postgresql
%endif
%files test