[Python-modules-team] Bug#956177: fail2ban: daemon startup should not access /root/.local

Russell Coker russell at coker.com.au
Wed Apr 15 11:31:16 BST 2020


On Wednesday, 15 April 2020 2:27:33 PM AEST Russell Coker wrote:
> On Wednesday, 15 April 2020 2:36:43 AM AEST Sylvestre Ledru wrote:
> > Could you please reply to
> > https://github.com/fail2ban/fail2ban/issues/2688#issuecomment-613543589 ?
> > 
> > (I also looked at the code and could not find where /root/.local would be
> > loaded)
> 
> Done.  strace revealed the following:
> 
> stat("/root/.local/lib/python3.8/site-packages", 0x7ffe878316d0) = -1 ENOENT
> (No such file or directory)

OK, with advice from upstream  I have determined that the -s option on the 
python3 command line fixes it.

So we could have the -s on the first line of /usr/bin/fail2ban-server, or we 
could have PYTHONNOUSERSITE=yes in the environment section (I didn't test 
this).

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/



More information about the Python-modules-team mailing list