> 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. Alan - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Al Viro <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Ulrich Drepper <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Al Viro <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Ulrich Drepper <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Al Viro <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Ulrich Drepper <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Al Viro <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Kyle Moffett <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Al Viro <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Linus Torvalds <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Al Viro <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Linus Torvalds <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Kari Hurtta <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- Prev by Date: Re: [patch 7/8] fdmap v2 - implement sys_socket2
- Next by Date: Re: [PATCH] pata_it821x: sync with IDE it821x driver
- Previous by thread: Re: [patch 7/8] fdmap v2 - implement sys_socket2
- Next by thread: Re: [patch 7/8] fdmap v2 - implement sys_socket2
- Index(es):