From: Mikhail Gusarov <dottedmag@dottedmag.net> To: ALT Devel discussion list <devel@lists.altlinux.org> Subject: Re: [devel] Нужно ли вызывать endpwent() после использования getpwuid() ? Date: Mon, 26 Feb 2007 19:44:27 +0600 Message-ID: <87bqjht4n8.fsf@frontier.dottedmag.net> (raw) In-Reply-To: <75e139a00702260532j7c90aec2gadf659ea0e5c1de3@mail.gmail.com> (Slava Semushin's message of "Mon\, 26 Feb 2007 16\:32\:03 +0300") Twas brillig at 16:32:03 when Slava Semushin did gyre and gimble: SS> Пожалуйста, разъясните этот момент, ведь если я правильно понял, SS> то невызов endpwent() чреват утечкой файлового дескриптора. Невызов endpwent() чреват тем, что если в промежутке между getpwuid() и endpwent() злоумышленик получит каким-либо образом доступ к памяти процесса, то он имеет шансы прочитать содержимое /etc/passwd. ps: а как этот вопрос относится к devel@? Может, лучше в sisyphus@ спрашивать? --
next prev parent reply other threads:[~2007-02-26 13:44 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-02-26 13:32 Slava Semushin 2007-02-26 13:44 ` Mikhail Gusarov [this message] 2007-02-26 13:49 ` Damir Shayhutdinov 2007-02-26 13:52 ` [devel] [SUMMARY][OFF]Re: " Slava Semushin 2007-02-26 13:56 ` [devel] " Dmitry V. Levin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=87bqjht4n8.fsf@frontier.dottedmag.net \ --to=dottedmag@dottedmag.net \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git