On 12/12/19 7:13 PM, Joël Krähemann wrote:
>
> http://nongnu.org/gsequencer/
>
> Now, I am seeking advice:
>
> * howto store REALM and salt?
> * /var/lib/gsequencer for session files?
> * what naming schema of XML filename & PID placed in /var/lib/gsequencer?
>
Since you're using autotools, this is largely not your problem. Instead
of hard-coding a path like /var/lib, you should be using the
$localstatedir variable from autotools. The system administrator or
packager will then choose appropriate directories by passing e.g.
./configure --sysconfdir=/etc/gsequencer \
--localstatedir=/var/lib/gsequencer
That way things wind up in the right place even on non-Linux systems.
> Is there a secret place for REALM and salt?
It depends on your security model (I have not looked closely). My
wild-ass-guess would be in a mode-600 subdirectory of $sysconfdir.
> Would you prefer:
>
> ...
>
> or the later:
>
> /var/lib/gsequencer/ags_authentication.$(PID).xml
>
That'd be my personal preference since then emacs will know that it's an
XML file.
_______________________________________________
fhs-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/fhs-discuss