Not to be fixed
Created: May 21, 2013
Updated: Apr 19, 2018
Resolved Date: Apr 17, 2018
Previous ID: LIN5-4852, LIN6-2869
Found In Version: 6.0
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: Networking
Problem Description
======================
sec.3.4 in CUT failed on BSP: cav-octeon2
Expected Behavior
======================
test case pass.
Observed Behavior
======================
root@CN68xx_2:/opt/cut# cat testlog-May-18-13-00\:55.log
----------------------------------------
Start testcase SEC.3.4 Active Log Monitoring
----------------------------------------
1 : warn
1 :
2 :
3 :
1 : info
1 :
2 :
3 :
--- /etc/samhainrc.bac 2013-05-15 08:15:25.000000000 +0000
+++ /etc/samhainrc 2013-05-21 02:55:21.000000000 +0000
@@ -282,7 +282,7 @@
## Console
##
-PrintSeverity=warn
+PrintSeverity=none
## Logfile
##
@@ -290,7 +290,7 @@
## Syslog
##
-SyslogSeverity=info
+SyslogSeverity=crit
## Remote server (yule)
##
@@ -501,7 +501,7 @@
## (this is not honoured on database initialisation)
#
# Daemon = no
-Daemon = yes
+Daemon =no
## whether to test signature of files (init/check/none)
## - if 'none', then we have to decide this on the command line -
@@ -530,7 +530,7 @@
#
# SetFileCheckTime = 600
# One file system check per day
-SetFileCheckTime = 86400
+SetFileCheckTime =60
## Alternative: crontab-like schedule
#
******Initialize the baseline database******
--------- sh_unix.c --- 1696 ---------
According to uname, your nodename is CN68xx_2, but your resolver
library cannot resolve this nodename to a FQDN.
Rather, it resolves this to cn68xx_2.
For more information, see the entry about self-resolving under
'Most frequently' in the FAQ that you will find in the docs/ subdirectory.
----------------------------------------------
ERROR : [2013-05-18T00:55:10+0000] msg=<No matches found>, interface=<glob>, path=</var/log/*.[0-9].gz>
ERROR : [2013-05-18T00:55:10+0000] msg=<No matches found>, interface=<glob>, path=</var/log/*.[0-9].log>
ERROR : [2013-05-18T00:55:10+0000] msg=<No matches found>, interface=<glob>, path=</var/log/*.[0-9]>
ERROR : [2013-05-18T00:55:10+0000] msg=<No matches found>, interface=<glob>, path=</var/log/*.old>
ERROR : [2013-05-18T00:55:10+0000] msg=<No matches found>, interface=<glob>, path=</var/log/*/*.[0-9].gz>
ERROR : [2013-05-18T00:55:10+0000] msg=<No matches found>, interface=<glob>, path=</var/log/*/*.[0-9][0-9].gz>
ERROR : [2013-05-18T00:55:10+0000] msg=<No matches found>, interface=<glob>, path=</var/log/*/*.log.[0-9]>
******Start samhain******
Starting samhain
--------- sh_unix.c --- 1696 ---------
According to uname, your nodename is CN68xx_2, but your resolver
library cannot resolve this nodename to a FQDN.
Rather, it resolves this to cn68xx_2.
For more information, see the entry about self-resolving under
'Most frequently' in the FAQ that you will find in the docs/ subdirectory.
----------------------------------------------
ERROR : [2013-05-18T00:56:53+0000] msg=<No matches found>, interface=<glob>, path=</var/log/*.[0-9].gz>
ERROR : [2013-05-18T00:56:53+0000] msg=<No matches found>, interface=<glob>, path=</var/log/*.[0-9].log>
ERROR : [2013-05-18T00:56:53+0000] msg=<No matches found>, interface=<glob>, path=</var/log/*.[0-9]>
ERROR : [2013-05-18T00:56:53+0000] msg=<No matches found>, interface=<glob>, path=</var/log/*.old>
ERROR : [2013-05-18T00:56:53+0000] msg=<No matches found>, interface=<glob>, path=</var/log/*/*.[0-9].gz>
ERROR : [2013-05-18T00:56:53+0000] msg=<No matches found>, interface=<glob>, path=</var/log/*/*.[0-9][0-9].gz>
ERROR : [2013-05-18T00:56:53+0000] msg=<No matches found>, interface=<glob>, path=</var/log/*/*.log.[0-9]>
.
******Start test******
May 18 00:57:09 CN68xx_2 Samhain[15398]: CRIT : [2013-05-18T00:57:09+0000] msg=<POLICY [ReadOnly] ---I----T->, path=</etc/selinux/wr-mls/modules/tmp/modules/updfstab.pp>, inode_old=<6293568>, inode_new=<77758733>, ctime_old=<[2013-05-17T08:18:09]>, ctime_new=<[2013-05-20T06:53:24]>, mtime_old=<[2013-05-17T08:18:09]>, mtime_new=<[2013-05-20T06:53:24]>,
Error step : Can not find log about /bin/vi.orig
/opt/cut/function.sh: line 43: [: -eq: unary operator expected
Test Result : [ FAILED ]
Clean System...
Stopping samhain failed.
Finish
root@CN68xx_2:/opt/cut#
1 configure a project
/wrlinux-x/wrlinux/configure --enable-board=cav-octeon2 --enable-kernel=cgl --enable-rootfs=glibc-cgl --enable-parallel-pkgbuilds=16 --enable-jobs=8 --with-layer=/wr-testing/cgl,/wr-testing/networking --with-template=feature/cut
2. make fs
3. start the target with the kernel and rootfs
4. on target run: cd /opt/cut; ./cgl_test.sh -e sec.3.4