Editing
Msg09379.html
(section)
From Linix VServer
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
= Re: [Vserver] util-vserver + dietlibc ... = ----- * '''From:''' Enrico Scholz * '''Date:''' Sat, 9 Apr 2005 03:23:06 +0200 (CEST) ----- <pre>sfrost@xxxxxxxxxxx (Stephen Frost) writes: >> according to Enrico (please confirm or correct) the glibc has issues >> with the fake name resolver and is generally considered insecure >> because usually dynamically linked ... > > This really needs further explanation and justification. What about > glibc being dynamically linked (and able to load other libraries) > makes it insecure, specifically? 1. 'insecure', because the dynamical loading of libnss_* is uncontrollable. There is no (documented??) way to disable this loading e.g. when the chroot was entered. Executing a function which would load an nss-library does not give any guarantee that the next call to this function with another argument would not load another library. 2. the glibc NSS implementation uses caching/optimization which can cause failures in chroot operations. E.g. when the 'getpwnam()' before chroot(2) (which is used to load the libnss_* libraries) creates a connection to the 'nscd' daemon, this connection will be used for the second 'getpwnam()' (after chroot(2)) also, which will return wrong results. You will see this issue with rpm based vserver-build methods when the tools are compiled with glibc and nscd is running. > What changes would need to be done to make use of it > secure? Provide a way to: * disable dynamic libnss_* loading * disable usage of nscd Enrico</pre> '''Attachment: [[pgp2SknuueLbO.pgp|<code>pgp2SknuueLbO.pgp</code>]]'''<br /> ''Description:'' PGP signature ----- * '''Follow-Ups''': ** '''[[msg09381.html|Re: [Vserver] util-vserver + dietlibc ...]]''' *** ''From:'' Stephen Frost * '''References''': ** '''[[msg09359.html|[Vserver] util-vserver + dietlibc ...]]''' *** ''From:'' Herbert Poetzl ** '''[[msg09360.html|Re: [Vserver] util-vserver + dietlibc ...]]''' *** ''From:'' Paul S. Gumerman ** '''[[msg09361.html|Re: [Vserver] util-vserver + dietlibc ...]]''' *** ''From:'' Herbert Poetzl ** '''[[msg09366.html|Re: [Vserver] util-vserver + dietlibc ...]]''' *** ''From:'' Stephen Frost * Prev by Date: '''[[msg09378.html|Re: [Vserver] vserver build bug]]''' * Next by Date: '''[[msg09380.html|Re: [Vserver] util-vserver + dietlibc ...]]''' * Previous by thread: '''[[msg09366.html|Re: [Vserver] util-vserver + dietlibc ...]]''' * Next by thread: '''[[msg09381.html|Re: [Vserver] util-vserver + dietlibc ...]]''' * Index(es): ** [[index.html#09379|'''Date''']] ** [[threads.html#09379|'''Thread''']]
Summary:
Please note that all contributions to Linix VServer may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Linix VServer:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
About
Overview
Paper
News
Developers
Donations
Search
Getting Started
Downloads
FAQs
Documentation
Support
Participate
How to participate
Report a Bug
Communicate
Teams/Projects
Hall of Fame
Resources
Archives
Recent Wiki Changes
Pastebin
Related Projects
VServer Hosting
Happy VServer Users
Tools
What links here
Related changes
Special pages
Page information