Changeset 50

Show
Ignore:
Timestamp:
04/14/08 18:44:25 (11 years ago)
Author:
rmcmillen
Message:

Made sure that walleye could update the hflow.sensor table so the user can modify the demographics. Reference Ticket #37.

Location:
walleye/trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • walleye/trunk/modules/Walleye/AdminUtils.pm

    r34 r50  
    781781sub ConnectToWalleyeDatabase { 
    782782 
    783         my $db_name          = "walleye_0_3"; 
     783        my $db_name          = "hflow"; 
    784784        my $db_server        = ""; 
    785785        my $db_port          = ""; 
    786         my $db_uid           = "hflow"; 
     786        my $db_uid           = "walleye"; 
    787787        my $db_passwd        = "honey"; 
    788788 
  • walleye/trunk/modules/Walleye/Makefile.PL

    r34 r50  
    66       NAME         => 'Walleye::Util', 
    77       AUTHOR       => 'Honeywall development team', 
    8        VERSION      => "1.2", 
     8       VERSION      => "1.3", 
    99       PMLIBDIRS    => ['lib', 'modules/Walleye' ] 
    1010     ); 
  • walleye/trunk/walleye/Makefile

    r46 r50  
    1 ver=1.2.3 
     1ver=1.2.4 
    22pname=walleye-${ver} 
    33 
  • walleye/trunk/walleye/walleye.schema

    r34 r50  
    110110 
    111111grant ALL PRIVILEGES on walleye_users_0_3.* to 'admin'@'localhost' identified by 'honey'; 
     112grant ALL PRIVILEGES on hflow.sensor to 'walleye'@'localhost' identified by 'honey'; 
    112113 
    113114FLUSH PRIVILEGES; 
    114  
    115  
  • walleye/trunk/walleye/walleye.spec

    r46 r50  
    11Summary:  Walleye Honeynet data analysis  
    22Name: walleye 
    3 Version: 1.2.3 
     3Version: 1.2.4 
    44Release: 1 
    55License: GPL 
     
    9191if [ $1 -ge 2 ]; then 
    9292        #--- upgrade, dont create new ssl key, and we dont even need to restart httpd  
    93         #/sbin/service walleye-httpd condrestart 
    94 #       chown apache %{walleye}/images 
    95 echo "Nothing to do (for now)" 
     93        #Need to ensure the walleye user can alter the sensor table of hflow db 
     94        echo "Make sure the walleye user can alter the hflow.sensor table." 
     95        echo "To verify: " 
     96        echo "  mysql> use mysql;" 
     97        echo "  mysql> select * from mysql.tables_priv where Db = 'hflow' and User = 'walleye' and Table_name = 'sensor';" 
     98        echo "To add:" 
     99        echo "  mysql> GRANT ALL PRIVILEGES on hflow.sensor to 'walleye'@'localhost' identified by 'honey';" 
     100        echo "  mysql> FLUSH PRIVILEGES;" 
    96101fi 
    97102 
    98  
    99