Bug#1011525: systemd: when running journalctl, $LESS is unconditionally set to FRSXMK

Vincent Lefevre vincent at vinc17.net
Wed May 25 15:06:05 BST 2022


On 2022-05-25 15:54:02 +0200, Michael Biebl wrote:
> Am 25.05.2022 um 15:52 schrieb Vincent Lefevre:
> > On 2022-05-25 15:13:58 +0200, Michael Biebl wrote:
> > > It doesn't pass the LESS environment variable that's defined in the user
> > > session to the pager but runs that program in a defined, fixed and tested
> > > environment.
> > 
> > Since the user controls that program, e.g. by writing a script
> > called "pager" under his $PATH (e.g. in $HOME/bin), thus may
> > change the environment there, I'm wondering what you mean by
> > "fixed and tested environment".
> 
> It's not you/the user calling less, but systemd. Maybe that's your
> misconception.

My point is the end user chooses what this pager is. For instance,
in the ps output, as a child of journalctl:

vlefevre  112315  112314  0 16:03 pts/15   00:00:00 /bin/sh /home/vlefevre/bin/pager

The fact that the user doesn't run it himself doesn't matter.
So there is no such thing of "fixed and tested environment":
the user has the full control of what is run.

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the Pkg-systemd-maintainers mailing list