Bug#756622: fusioninventory-agent runs spuriously update /etc/blkid.tab

2014-08-05 Thread Gonéri Le Bouder
ROUSSEAU Dominique d.rouss...@nnx.com writes:

Hi Dominique,

Thank you for the bug report,

 When running fusioninventory-agent it calls /sbin/blkid if installed, which
 cause an update of /etc/blkid.tab
 (maybe this bug should filed against package containing blkid ?)
No blkid manpage is very clear about the status of /etc/blkid.tab and
suggest to do that instead:
blkid -w /dev/null
I think the /etc/blkid.tab should be stored in /var since it's a cache.
The bug already exists and has been closed some days ago
( http://bugs.debian.org/557707 ).

I pushed a patch upstream to fix the situation:
https://github.com/fusinv/fusioninventory-agent/commit/72a0e5316431f72c27664918ca3adf5a64522927

I don't know if it will be easy to get the patch accepted in stable.

Best regards,
-- 
Gonéri Le Bouder


pgpeFamlI_j9M.pgp
Description: PGP signature


Bug#756622: fusioninventory-agent runs spuriously update /etc/blkid.tab

2014-07-31 Thread ROUSSEAU Dominique
Package: fusioninventory-agent
Version: 2.2.3-2~bpo60+2
Severity: serious
Justification: Policy 10.7


Whene running fusioninventory-agent it calls /sbin/blkid if installed, which
cause an update of /etc/blkid.tab
(maybe this bug should filed against package containing blkid ?)

As part of fusioninventory-agent blkid could be called with a specific cache
file.

Besides writing file in /etc which should have configuration files, it triggers
false-positives for /etc watching tools (we are using metche)

triomph:/tmp# ls -al /etc/blkid.tab
-rw-r--r-- 1 root root 357 Jul 31 13:44 /etc/blkid.tab

triomph:/tmp# date
Thu Jul 31 13:58:01 CEST 2014

triomph:/tmp# fusioninventory-agent 
[info] task WakeOnLan is not enabled
triomph:/tmp# 

triomph:/tmp# ls -al /etc/blkid.tab
-rw-r--r-- 1 root root 357 Jul 31 13:58 /etc/blkid.tab


Excerpt from 
/usr/share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Input/Linux/Drives.pm

if (canRun('blkid')) {
# use blkid if available, as it is filesystem-independant
foreach my $filesystem (@filesystems) {
$filesystem-{SERIAL} = getFirstMatch(
logger  = $logger,
command = blkid $filesystem-{VOLUMN},
pattern = qr/\sUUID=(\S*)\s/
);
}




-- System Information:
Debian Release: 6.0.10
  APT prefers oldstable
  APT policy: (990, 'oldstable'), (500, 'squeeze-lts'), (500, 
'oldstable-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-0.bpo.1-amd64 (SMP w/24 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages fusioninventory-agent depends on:
ii  hdparm 9.32-1tune hard disk parameters for high
ii  libfile-which-perl 1.08-1Perl module for searching paths fo
ii  libjson-perl   2.21-1Perl module to parse and convert t
ii  libnet-ip-perl 1.25-2Perl extension for manipulating IP
ii  libnet-ssleay-perl 1.36-1Perl module for Secure Sockets Lay
ii  libproc-daemon-perl0.03-2Run Perl program as a daemon proce
ii  libproc-pid-file-perl  1.27-1Perl module for managing process i
ii  libtext-template-perl  1.45-1Text::Template perl module
ii  libuniversal-require-p 0.13-1Load modules from a variable
ii  libwww-perl5.836-1   Perl HTTP/WWW client/server librar
ii  libxml-treepp-perl 0.39-1XML::TreePP -- Pure Perl implement
ii  libyaml-perl   0.71-1YAML Ain't Markup Language
ii  pciutils   1:3.1.7-6 Linux PCI Utilities
ii  perl   5.10.1-17squeeze6 Larry Wall's Practical Extraction 
ii  ucf3.0025+nmu1   Update Configuration File: preserv

fusioninventory-agent recommends no packages.

Versions of packages fusioninventory-agent suggests:
pn  read-edid none (no description available)
pn  smartmontools none (no description available)

-- Configuration Files:
/etc/fusioninventory/agent.cfg changed [not included]

-- debconf-show failed


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org