[lkml]   [2007]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [patch 7/8] fdmap v2 - implement sys_socket2
> Real world example is nss_ldap / pam_ldap -- these needs open socket to 
> ldap server. That socket is cached. And because they can not trust that
> application does not have closed file description of them, they check it with
> getpeername + getsockname (at least it did when I looked code on
> some years ago.)
> ( opening socket again includes using starttls and authentication .. so it is
> quite some overhead )

And if the fd was closed because of a security transition in the
application hiding it and caching it from the application might then lead
to a security hole.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2007-06-10 17:19    [W:0.113 / U:3.012 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site