Package: ocsinventory-agent Version: 1:0.0.9.2repack1-4 Severity: important
(Frankly I’m tempted to set the severity to critical given this will
actually break unrelated software.)
I was wondering what was causing 30 GB of traffic each morning on a
group of computers. I came out laughing nervously all around when I
discovered this is caused by the OCS agent.
The following code in Agent/Backend.pm is executed:
foreach my $d (@INC) {
next unless -d $d;
File::Find::find( sub {
push @installed_mod, $File::Find::name if $File::Find::name =~
/Ocsinventory\/Agent\/Backend\/.*\.pm$/;
}
, $d);
}
Since @INC contains ".", this actually leads to a full scan of all
subdirectories from $pwd.
Guess what, the cron job chdirs to / before running the script. Not a
good idea when you have NFS mounts.
--
.''`.
: :' : We are debian.org. Lower your prices, surrender your code.
`. `' We will add your hardware and software distinctiveness to
`- our own. Resistance is futile.
signature.asc
Description: Ceci est une partie de message numériquement signée

