OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: postmap: fatal: inet_addr_local[getifaddrs]: getifaddrs

From: Peter Micunek (micuneksvf.stuba.sk)
Date: Wed Apr 09 2008 - 14:22:55 CDT


Victor,

output is not clear for me :(

strace postmap transport

.......
.......

connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1
ENOENT (No such file or directory)
close(4) = 0
open("/etc/host.conf", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=17, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2aaaaaaac000
read(4, "order hosts,bind\n", 4096) = 17
read(4, "", 4096) = 0
close(4) = 0
munmap(0x2aaaaaaac000, 4096) = 0
futex(0x35b1b4dc80, FUTEX_WAKE, 2147483647) = 0
open("/etc/hosts", O_RDONLY) = 4
fcntl(4, F_GETFD) = 0
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
fstat(4, {st_mode=S_IFREG|0644, st_size=296, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2aaaaaaac000
read(4, "# Do not remove the following li"..., 4096) = 296
close(4) = 0
munmap(0x2aaaaaaac000, 4096) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 4
close(4) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 4
close(4) = 0
socket(PF_NETLINK, SOCK_RAW, 0) = -1 EACCES (Permission denied)
write(2, "postmap: fatal: inet_addr_local["..., 75postmap: fatal:
inet_addr_local[getifaddrs]: getifaddrs: Permission denied
) = 75
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2246, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2246, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2246, ...}) = 0
sendto(3, "<18>Apr 9 19:19:02 postfix/post"..., 108, MSG_NOSIGNAL,
NULL, 0) = 108
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, {1, 0}) = 0
exit_group(1) = ?

Peter M.

On Wed, 9 Apr 2008 11:42:56 -0400, Victor Duchovni wrote
> On Wed, Apr 09, 2008 at 03:53:08PM +0100, Peter Micunek wrote:
>
> > Dear All,
> >
> > I did my own rpm package from 2.5.2-RC1 and then installed it.
> > It seems that postfix is ok but postmap can not generate db file.
> >
> > # postmap transport
> > postmap: fatal: inet_addr_local[getifaddrs]: getifaddrs: Permission denied
> >
> >
> > main.cf
> > transport_maps = hash:/etc/postfix/transport
> >
> > # more transport
> > blablabla.com smtp:blblblb.com
> >
> > Does anybody know where problem is?
>
> AppArmor? SELinux? C library does not match Kernel? strace(1) and
> report what's failing.
>
> --
> Viktor.
>
> Disclaimer: off-list followups get on-list replies or get ignored.
> Please do not ignore the "Reply-To" header.
>
> To unsubscribe from the postfix-users list, visit
> http://www.postfix.org/lists.html or click the link below:
> <mailto:majordomopostfix.org?body=unsubscribe%20postfix-users>
>
> If my response solves your problem, the best way to thank me is to
> not send an "it worked, thanks" follow-up. If you must respond,
> please put "It worked, thanks" in the "Subject" so I can delete
> these quickly.

-----------------------------------------------
Stavebna fakulta STU, Bratislava
Faculty of Civil Engineering STU, Bratislava
http://www.svf.stuba.sk