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

Re: SECURITY PROBLEM: autofs [all versions]



On Wed, 5 Jul 2000, Christopher W. Curtis wrote:
> then why do the scripts check '-f' ?
> 
> [...]
> 
> > It just runs the program. If the program fails to run, it checks return
> > codes to determine that. This is what all debian init scripts do, via set -e.
> 
> ~# grep set /etc/init.d/portmap 
>           sleep 1 # needs a short pause or pmap_set won't work. :(
>           pmap_set </var/run/portmap.upgrade-state
>           pmap_set </var/run/portmap.state

Return codes are not always checked by just looking at the exit code returned
by exec(2).  An exit code does not contain sufficient info in all
circumstances to convey the true error of why something didn't work.

----BEGIN GEEK CODE BLOCK----
Version: 3.12
GCS d- s: a-- c+++ UL++++ P+ L++++ !E W+ M o+ K- W--- !O M- !V PS--
PE++ Y+ PGP++ t* 5++ X+ tv b+ D++ G e h*! !r z?
-----END GEEK CODE BLOCK-----
----BEGIN PGP INFO----
Adam Heath <doogie@debian.org>        Finger Print | KeyID
67 01 42 93 CA 37 FB 1E    63 C9 80 1D 08 CF 84 0A | DE656B05 PGP
AD46 C888 F587 F8A3 A6DA  3261 8A2C 7DC2 8BD4 A489 | 8BD4A489 GPG
-----END PGP INFO-----



Reply to: