Bug 16000 - tripwire crashes when a direcory used as a config file
tripwire crashes when a direcory used as a config file
Status: CLOSED NOTABUG
Product: Red Hat Powertools
Classification: Retired
Component: tripwire (Show other bugs)
7.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Ngo Than
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-08-11 11:56 EDT by mal
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-08-14 12:48:31 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description mal 2000-08-11 11:56:50 EDT
When command line option which corresponds to a file 
is set to a directory - tripwire crashes.

tripwire -c /tmp/     
Segmentation fault (core dumped)

tripwire -d /tmp/
Segmentation fault (core dumped)

non-existent files are OK, it does not crash, it just prints
error message.

tripwire -c /tmp/ggggg
couldn't open /tmp/ggggg: No such file or directory
Comment 1 Ngo Than 2000-08-14 12:15:54 EDT
i can't reproduce this problem.

tripwire -d /tmp/
Unknown mode specified: -d
Use --help to get help.

i don't see Segmentation fault (core dumped)
Comment 2 mal 2000-08-14 12:48:29 EDT
tripwite from PowerTools Beta
Clean install of RedHat 7.0 beta and tripwiate form powertools afterward

tripwire -version

Tripwire version 1.2 (patchlevel 2)

Copyright (c) 1992, 1993, 1994 Purdue Research Foundation
	By Gene Kim, Eugene Spafford

[root@clienthost /root]# rpm -q tripwire  
tripwire-1.2-10

 tripwire -c /tmp/
Segmentation fault (core dumped)

tripwire --help
usage: tripwire [ options ... ]
	Where `options' are:
		-initialize	Database Generation mode
		-init		
		-update entry	update entry (a file, directory, or 
				    tw.config entry) in the database
		-interactive	Integrity Checking mode with
				    Interactive entry updating
		-loosedir	use looser checking rules for directories
		-d dbasefile	read in database from dbasefile
				    (use `-d -' to read from stdin)
		-c configfile	read in config file from configfile
				    (use `-c -' to read from stdin)
		-cfd fd	    read in config file from specified fd
		-dfd fd	    read in the database file from specified fd
		-Dvar=value	define a tw.config variable (ala @@define)
		-Uvar		undefine a tw.config variable (ala @@undef)
		-i #|all 	ignore the specified signature (to reduce
				    execution time)
		-q		quiet mode
		-v		verbose mode
		-preprocess	print out preprocessed configuration file
		-E		
		-help		print out interpretation help message
		-version	print version and patch information

You may use different version of tripwire.
ls -l /usr/sbin/tripwire 
-rwx------    1 root     root       434664 Jul 24 22:45 /usr/sbin/tripwire

Comment 3 Ngo Than 2000-08-14 13:27:40 EDT
tripwire-1.2-10 is obsoletes was removed from powertools.
We have the new tripwire-2.3 in RC1. It does't have this problem


Note You need to log in before you can comment on or make changes to this bug.