Re: rlinetd security
Actually, your version is a little more complex than the IRIX version.
Under IRIX there are seperate files for each service, rather than a
single file with on/off entries for each service. In other words
`echo on > /etc/config/xdm` and `chkconfig xdm on` do exactly the same
thing under IRIX.
IRIX sometimes uses multiple chkconfig entries in tne same rc script,
eg turning off `network' also prevents named, nfs, timed, routed, and
lots of other services from starting. All told there are about 50
chkconfig flags on a normal IRIX install.
Also note that /etc/rc?.d isn't really guaranteed by anything other
than convention. I can easily write init.d scripts that do the wrong
thing, and updating/reinstalling can put rc?.d symlinks back in (which
is how we got on this subject to begin with). Under IRIX, the
chkconfig convention is entrenched and works quite well. Wether or
not it would be a useful addition to Debian is another question....
Joseph Pingenot <email@example.com> writes:
> From Dale Southard on Tuesday, 19 June, 2001:
> Hrm. That could be rather easy to implement. The guaranteed
> way to see if something's going to be started or not, though,
> is still /etc/rc?.d
> If you want to, you can replace them and create an easy
> script, such as
> #returns 1 if daemon is enabled, 0 otherwise.
> if [ -z "$1" ]; then
> echo "Error: No daemon process specified"
> exit 0;
> line=`grep -i "^$1=" $configfile 2>/dev/null | head -1`
> if [ $? -ne 0 ]; then
> #No such line existed. Return 0.
> setting=`echo $line | sed 's/^.*=//'`;
> setting=`echo $setting | perl -we '$_ = <STDIN>; s/\s+//g; print;'`
> case "$setting" in
> exit 1
> exit 0
> exit 0
> --end chkdconfig--
> please, no comments on my perl or bash-scripting (lack of) abilities. ;)
> All that would then remain is to alter the rc scripts to check chkconfig
> and to NOT populate it with daemon=value lines. :)
/* Dale Southard Jr. firstname.lastname@example.org 925-422-1463 */
/* Computer Scientist, Accelerated Strategic Computing Initiative */
/* L-550, Lawrence Livermore National Lab, Livermore CA 94551 */
/* AFF/I, SL/I, T/I, D-11216, Sr. Rig --- I'd rather be skydiving */