[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: A little daemon



One minor additon/change...

On Thu, Oct 17, 2002 at 09:24:05PM +0100, Karl E. Jorgensen wrote:
> Make sure that there aren't any "holes" in your script:
>     - Avoid command line parameters if possible
>     - Early in the script set the PATH and IFS variables to known values
>     - Dont use e.g. "#!/usr/bin/env interpreter", but go straight to
>       "#!/usr/bin/interpreter"

      - If you're using perl, turn on taint and warnings:
        "#!/usr/bin/perl -wT"

-- 
When we reduce our own liberties to stop terrorism, the terrorists
have already won. - reverius

Innocence is no protection when governments go bad. - Tom Swiss



Reply to: