Re: [dev] [PATCH] Check $HOME and home dir of $USER before getpwuid()->pw_dir

From: Christoph Lohmann <20h_AT_r-36.net>
Date: Fri, 03 Jun 2016 15:10:04 +0200

Greetings.

On Fri, 03 Jun 2016 15:10:04 +0200 Reiner Herrmann <reiner_AT_reiner-h.de> wrote:
> From: Dmitry Bogatov <KAction_AT_gnu.org>
>
> getpwnam(3) recommends to use $HOME instead of getpwuid()->pw_dir,
> as it allows users to point programs to a different path.
>
> Using getpwuid() also breaks namespaces-related use cases,
> like `unshare -r`.
>
> Patch was submitted by Dmitry Bogatov on the Debian bug tracker:
> https://bugs.debian.org/825397

Thanks, I have applied it. Noone’s seriously using Debian anymore.


Sincerely,

Christoph Lohmann
Received on Fri Jun 03 2016 - 15:10:04 CEST

This archive was generated by hypermail 2.3.0 : Fri Jun 03 2016 - 15:24:36 CEST