Suresh Sundriyal
6663740c5e
[secure-mode] Disallow ATTACH statements completely.
...
The code to handle in-memory db exceptions is hideous and unreliable,
given the fact that SQLite does not expose much in terms of getting the
current value and the methods to check the compile time options can
themselves be disabled by a compile=time option in SQLite.
There really isn't much use for in-memory databases and if someone
really needs it, they can always choose to run in normal mode, so just
remove the extra code.
2016-05-04 20:21:01 -07:00
Tim Stack
1850c4f678
Merge pull request #318 from sureshsundriyal/db-attach
...
[secure-mode] Prevent users from attaching db files.
2016-05-03 10:37:03 -07:00
Timothy Stack
a4deaa1e8b
[spectro] log_time must be in ascending order
2016-05-02 22:59:04 -07:00
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.
2016-05-02 21:43:11 -07:00
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.
2016-05-02 20:58:20 -07:00
Timothy Stack
a8cd28097b
[spectro] add some better error messages for the spectrogram command and fix some vtable glitches
2016-04-08 06:21:58 -07:00
Timothy Stack
fdc2748e3e
[spectro] add a spectrogram view that works with known message fields
2016-03-20 15:15:50 -07:00
Timothy Stack
53e2d92eef
[ui] highlight out-of-time-order messages in yellow with an underline
2016-03-03 06:05:26 -08:00
Timothy Stack
68070678b5
try to fix test error
2016-01-05 06:41:33 -08:00
Timothy Stack
a2b381ca19
[config] initial impl with clock-format as the only option at the moment
2016-01-05 06:18:58 -08:00
Timothy Stack
87b07a0087
[sql] allow log_part to be updated
2015-12-22 05:27:36 -08:00
Timothy Stack
5a718bc0ec
[sql] missed checking for null in graphable columns
2015-11-29 20:10:40 -08:00
Timothy Stack
64cbab1281
[sql] exec .sql files in format dirs
2015-11-26 22:19:53 -08:00
Timothy Stack
c0fc73d4ea
[tests] fix test_sql.sh
2015-11-15 06:16:59 -08:00
Timothy Stack
3996eef593
use an empty file
2015-11-14 22:47:04 -08:00
Timothy Stack
3c9ba126a9
[glob] ignore files picked up by a glob that are not readable
2015-11-14 22:17:59 -08:00
Timothy Stack
6cb42fc690
the log_search table regex should be case-insensitive
2015-11-03 22:17:11 -08:00
Timothy Stack
99d103cd58
[logline] add a log_msg_instance column to the table
2015-10-02 21:24:52 -07:00
Timothy Stack
399c78d86d
[pretty] pretty-print the contents of strings
...
Fixes #250
2015-08-26 21:28:30 -07:00
Timothy Stack
9139e6de5b
[search-table] guess the column types based on the regex
2015-08-07 20:04:28 -07:00
Timothy Stack
2b5447f59c
[sql] add a log_search table
2015-08-05 23:18:19 -07:00
Timothy Stack
6f26aa7f3e
[sql] multiline text was not returned correctly
2015-08-04 21:49:13 -07:00
Timothy Stack
d2d8c75135
[sql] add an lnav_views table
2015-07-22 07:09:51 -07:00
Timothy Stack
27bb9bb2ee
[fmt] highlight identifiers in module formats
2015-07-19 02:40:02 -07:00
Suresh Sundriyal
ace51f0848
[build] Get rid of the sqlite3 dependency.
2015-04-16 00:28:31 -07:00
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.
2015-04-13 23:41:40 -07:00
Timothy Stack
c58f44bb3f
[headless] completely read stdin in headless mode before running commands
2015-04-06 02:53:53 -07:00
Timothy Stack
671dca60dc
[cmd] do not error out if filter exists, just enable it
...
Defect Number:
Reviewed By:
Testing Done:
2014-11-05 21:29:31 -08:00
Timothy Stack
a71ca1f1ca
[filter] some improvements to the core filtering code
2014-10-19 22:16:40 -07:00
Timothy Stack
d557002724
[format] add OpenAM log formats
2014-06-17 21:29:42 -07:00
Timothy Stack
353dfec878
[sql] add an environ virtual table
...
Defect Number:
Reviewed By:
Testing Done:
2014-05-06 21:26:05 -07:00
Timothy Stack
08374381b2
[partition] use an underline to mark a partition boundary
2014-03-07 06:29:20 -08:00
Timothy Stack
d993d0e8c6
[partition] make partitions a separate bookmark type
2014-03-07 05:20:49 -08:00
Timothy Stack
fea18347f1
[headless] report output from commands/queries that were executed
...
Also, add some negative test cases.
2014-03-02 16:52:18 -08:00
Timothy Stack
9588901171
Ensure the logfile_syslog.0 timestamp is from 2013 since the year is inferred from that.
2014-03-02 11:07:41 -08:00
Timothy Stack
5a04a44381
[tests] add some tests that use headless mode
2014-03-02 08:55:00 -08:00