Commit Graph

133 Commits (36ab5e1e8b703115e0d975ef0e88305b83295833)

Author SHA1 Message Date
Suresh Sundriyal 1e6878164f [secure-mode] Refactoring and check for sqlite version.
'mode=memory' query parameter is only supported from sqlite3 version
3.8.0 onwards. Make sure to check for the version before continuing with
the 'ATTACH' statement.

Turning off some of the tests, since they fail on the Travis CI setup
which uses sqlite version 3.6.0.
8 years ago
Suresh Sundriyal e6c87678e9 [secure-mode] Prevent users from attaching db files.
Prevent the users from attaching an external db file which they may not
have ownership of.

The current authorizer method is hooked in only when the LNAVSECURE
variable is set. This is done deliberately, since the method will be
called on every sqlite query and I did not want to incur a performance
hit.

If the scope of this authorizer increases, we should consider passing in
the lnav_data as pUserData and do the checks inside the authorizer
itself.
8 years ago
Timothy Stack a8cd28097b [spectro] add some better error messages for the spectrogram command and fix some vtable glitches 8 years ago
Timothy Stack fdc2748e3e [spectro] add a spectrogram view that works with known message fields 8 years ago
Timothy Stack 53e2d92eef [ui] highlight out-of-time-order messages in yellow with an underline 8 years ago
Timothy Stack 68070678b5 try to fix test error 9 years ago
Timothy Stack a2b381ca19 [config] initial impl with clock-format as the only option at the moment 9 years ago
Timothy Stack 87b07a0087 [sql] allow log_part to be updated 9 years ago
Timothy Stack 5a718bc0ec [sql] missed checking for null in graphable columns 9 years ago
Timothy Stack 64cbab1281 [sql] exec .sql files in format dirs 9 years ago
Timothy Stack c0fc73d4ea [tests] fix test_sql.sh 9 years ago
Timothy Stack 3996eef593 use an empty file 9 years ago
Timothy Stack 3c9ba126a9 [glob] ignore files picked up by a glob that are not readable 9 years ago
Timothy Stack 6cb42fc690 the log_search table regex should be case-insensitive 9 years ago
Timothy Stack 99d103cd58 [logline] add a log_msg_instance column to the table 9 years ago
Timothy Stack 399c78d86d [pretty] pretty-print the contents of strings
Fixes #250
9 years ago
Timothy Stack 9139e6de5b [search-table] guess the column types based on the regex 9 years ago
Timothy Stack 2b5447f59c [sql] add a log_search table 9 years ago
Timothy Stack 6f26aa7f3e [sql] multiline text was not returned correctly 9 years ago
Timothy Stack d2d8c75135 [sql] add an lnav_views table 9 years ago
Timothy Stack 27bb9bb2ee [fmt] highlight identifiers in module formats 9 years ago
Suresh Sundriyal ace51f0848 [build] Get rid of the sqlite3 dependency. 9 years ago
Suresh Sundriyal 9894db83be [test] Add tests for attaching to sqlite3 db.
* Test for attaching db when passed in through as a command line
  argument.
* Test for attaching db from within lnav.
9 years ago
Timothy Stack c58f44bb3f [headless] completely read stdin in headless mode before running commands 9 years ago
Timothy Stack 671dca60dc [cmd] do not error out if filter exists, just enable it
Defect Number:
    Reviewed By:
   Testing Done:
10 years ago
Timothy Stack a71ca1f1ca [filter] some improvements to the core filtering code 10 years ago
Timothy Stack d557002724 [format] add OpenAM log formats 10 years ago
Timothy Stack 353dfec878 [sql] add an environ virtual table
Defect Number:
    Reviewed By:
   Testing Done:
10 years ago
Timothy Stack 08374381b2 [partition] use an underline to mark a partition boundary 10 years ago
Timothy Stack d993d0e8c6 [partition] make partitions a separate bookmark type 10 years ago
Timothy Stack fea18347f1 [headless] report output from commands/queries that were executed
Also, add some negative test cases.
10 years ago
Timothy Stack 9588901171 Ensure the logfile_syslog.0 timestamp is from 2013 since the year is inferred from that. 10 years ago
Timothy Stack 5a04a44381 [tests] add some tests that use headless mode 10 years ago