Re: RFR: 8280357: user.home = "?" when running with systemd DynamicUser=true [v2]

2022-02-24 Thread Alan Bateman
On Wed, 23 Feb 2022 22:00:19 GMT, Roger Riggs wrote: >> In some Linux configurations, the Linux home directory provided by getpwent >> is not usable. >> The value of the system property `user.home` should fallback to the value of >> $HOME >> if getpwent.user_home is null or less that 2

Re: RFR: 8280357: user.home = "?" when running with systemd DynamicUser=true [v2]

2022-02-23 Thread Roger Riggs
> In some Linux configurations, the Linux home directory provided by getpwent > is not usable. > The value of the system property `user.home` should fallback to the value of > $HOME > if getpwent.user_home is null or less that 2 characters long. "/" is not a > valid home directory name. > >

Re: RFR: 8280357: user.home = "?" when running with systemd DynamicUser=true [v2]

2022-02-23 Thread Naoto Sato
On Wed, 23 Feb 2022 21:51:50 GMT, Roger Riggs wrote: >> src/java.base/unix/native/libjava/java_props_md.c line 498: >> >>> 496: if ((user_home != NULL) && (user_home[0] != '\0')) { >>> 497: sprops.user_home = user_home; >>> 498: } >> >> Is there any

Re: RFR: 8280357: user.home = "?" when running with systemd DynamicUser=true [v2]

2022-02-23 Thread Naoto Sato
On Wed, 23 Feb 2022 22:00:19 GMT, Roger Riggs wrote: >> In some Linux configurations, the Linux home directory provided by getpwent >> is not usable. >> The value of the system property `user.home` should fallback to the value of >> $HOME >> if getpwent.user_home is null or less that 2

Re: RFR: 8280357: user.home = "?" when running with systemd DynamicUser=true

2022-02-23 Thread Roger Riggs
On Wed, 23 Feb 2022 19:59:35 GMT, Naoto Sato wrote: >> In some Linux configurations, the Linux home directory provided by getpwent >> is not usable. >> The value of the system property `user.home` should fallback to the value of >> $HOME >> if getpwent.user_home is null or less that 2

Re: RFR: 8280357: user.home = "?" when running with systemd DynamicUser=true

2022-02-23 Thread Naoto Sato
On Fri, 18 Feb 2022 15:29:34 GMT, Roger Riggs wrote: > In some Linux configurations, the Linux home directory provided by getpwent > is not usable. > The value of the system property `user.home` should fallback to the value of > $HOME > if getpwent.user_home is null or less that 2 characters

Re: RFR: 8280357: user.home = "?" when running with systemd DynamicUser=true

2022-02-23 Thread Roger Riggs
On Fri, 18 Feb 2022 15:29:34 GMT, Roger Riggs wrote: > In some Linux configurations, the Linux home directory provided by getpwent > is not usable. > The value of the system property `user.home` should fallback to the value of > $HOME > if getpwent.user_home is null or less that 2 characters

Re: RFR: 8280357: user.home = "?" when running with systemd DynamicUser=true

2022-02-18 Thread Alan Bateman
On Fri, 18 Feb 2022 16:15:18 GMT, Roger Riggs wrote: > I'm uncertain whether the fallback should only be done on Linux to cover the > `systemd` case and Docker. > The need for a fallback seems less applicable on macOs, but since $HOME is > usually set to the same value, may be harmless. I

Re: RFR: 8280357: user.home = "?" when running with systemd DynamicUser=true

2022-02-18 Thread Roger Riggs
On Fri, 18 Feb 2022 15:29:34 GMT, Roger Riggs wrote: > In some Linux configurations, the Linux home directory provided by getpwent > is not usable. > The value of the system property `user.home` should fallback to the value of > $HOME > if getpwent.user_home is null or less that 2 characters

Re: RFR: 8280357: user.home = "?" when running with systemd DynamicUser=true

2022-02-18 Thread Alan Bateman
On Fri, 18 Feb 2022 15:29:34 GMT, Roger Riggs wrote: > In some Linux configurations, the Linux home directory provided by getpwent > is not usable. > The value of the system property `user.home` should fallback to the value of > $HOME > if getpwent.user_home is null or less that 2 characters