[Y-devel] [PATCH] LoadConfig

Matt Wilson matt at mattsscripts.co.uk
Tue Feb 24 14:50:22 GMT 2004


On Tue, 2004-02-24 at 14:38, James Harr wrote:
> A note on LoadModule this brings to mind - We just want to make sure we 
> either:
> a) make sure the server is running as the user (not root)
> or
> b) make sure they can't load their own modules
> 
> For obvious security implications, but it can be easy to forget :)

Yea, I realised this could be a problem, but I thought I'd worry about
that area once the patch had been tested :)

> On Tue February 24 2004 07:48, Matt Wilson wrote:
> > Just a small patch that I've wanted for a few days, allows the use of;
> > 
> > LoadConfig "/path/to/config/file"
> > 
> > or, as is more likely;
> > 
> > LoadConfig "$HOME/.Y/config.conf"
> > 
> > (it handles environment variables ... crudely)
> > 
> > to load user specific config variables.
> > 
> >  I've currently got a file $HOME/.Y/config.conf which loads
> > $HOME/.Y/$Y_VIDEO.conf to set the video driver depending on whether I'm
> > in X or in the console (either Y_VIDEO='sdl' or Y_VIDEO='fbdev').
> > 
> > Matt
> > 
> > --
> > https://www.mattsscripts.co.uk/
> >   - A great source for free CGI and stuff
> > 
> > Even bytes get lonely for a little bit.
> > 

--
https://www.mattsscripts.co.uk/
  - A great source for free CGI and stuff

BOFH Excuse #104:

backup tape overwritten with copy of system manager's favourite CD




More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved