From: | Martin Pitt <mpitt(at)debian(dot)org> |
---|---|
To: | PostgreSQL Bugs <pgsql-bugs(at)postgresql(dot)org> |
Cc: | Petr Salinger <Petr(dot)Salinger(at)seznam(dot)cz>, 612888(at)bugs(dot)debian(dot)org |
Subject: | [PATCH] ident authentication fails on kFreeBSD/x86-64 due to wrong struct size |
Date: | 2011-05-22 14:19:21 |
Message-ID: | 20110522141921.GC3123@piware.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Hello PostgreSQL developers,
I got this report in http://bugs.debian.org/612888 about ident failure
on the Debian kFreeBSD kernel on 64 bit. The sizeof(struct cmsgcred)
is 84 on kfrebsd-amd64, there is no reason for padding it at the end
to 8-byte boundary by kernel. However, the process is blocking on
receiving those extra 4 bytes, which will never come.
Petr Salinger <Petr(dot)Salinger(at)seznam(dot)cz> sent a straightforward patch
for this, I turned it into a git-formatted patch for your convenience.
Thanks,
Martin
----- Forwarded message from skull <skull(at)spin(dot)it> -----
Date: Fri, 11 Feb 2011 11:40:27 +0100
From: skull <skull(at)spin(dot)it>
To: Debian Bug Tracking System <submit(at)bugs(dot)debian(dot)org>
Subject: Bug#612888: postgresql: access denied as postgres user after default install (kFreeBSD specific)
X-Spam-Status: No, score=0.0 required=4.0 tests=BAYES_50 autolearn=no version=3.2.5
Reply-To: skull <skull(at)spin(dot)it>, 612888(at)bugs(dot)debian(dot)org
Package: postgresql
Version: 8.4.7-0squeeze2
Severity: important
After default installation, postgres denies access to postgres user:
root(at)netmon:~# su - postgres
postgres(at)netmon:~$ psql template1
psql: FATAL: Ident authentication failed for user "postgres"
This happens on kFreeBSD flavour only (AFAIK)
-- System Information:
Debian Release: 6.0
APT prefers squeeze-updates
APT policy: (500, 'squeeze-updates'), (500, 'stable')
Architecture: kfreebsd-amd64 (x86_64)
Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages postgresql depends on:
ii postgresql-8.4 8.4.7-0squeeze2 object-relational SQL database, ve
postgresql recommends no packages.
postgresql suggests no packages.
-- no debconf information
----- End forwarded message -----
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
Attachment | Content-Type | Size |
---|---|---|
0001-Fix-size-of-struct-cmsgcred.patch | text/x-diff | 1.1 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Tim Uckun | 2011-05-22 23:48:28 | BUG #6034: pg_upgrade fails when it should not. |
Previous Message | Eric Kolotyluk | 2011-05-21 21:19:27 | BUG #6033: Nonstandard Install Directory Fails |