Commit Graph

1234 Commits

Author SHA1 Message Date
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
834fea5f73 oops, left debugging stuff in 2016-05-01 20:37:45 -07:00
Timothy Stack
82f970c09e [config] add a config option to control A_DIM for text
Fixes #298
2016-05-01 20:35:37 -07:00
Timothy Stack
3167302722 [data-parser] fix some issues with parsing hierarchical data and improve the debugger 2016-04-28 23:34:13 -07:00
Timothy Stack
1477c2ae51 [text-view] swap the rotation of f/F to something more natural 2016-04-26 21:25:28 -07:00
Suresh Sundriyal
4a0d2c0be3 [documents] Fix the NEWS file. 2016-04-23 14:32:21 -07:00
Suresh Sundriyal
e4ef35e652 [commands] Remove eval from the list of sandboxed commands. 2016-04-23 11:18:01 -07:00
Suresh Sundriyal
88833c8035 [commands] Read and honor the 'LNAVSECURE' environment variable.
Read the value of the 'LNAVSECURE' environment variable upfront and
store it in the lnav_data structure. When this variable is set prior to
the binary execution, the following commands are disabled:

* 'open'
* 'pipe-to'
* 'pipe-line-to'
* 'write-*-to'

This is a proposed fix for tstack/lnav#305.
2016-04-23 10:34:17 -07:00
Timothy Stack
54b9c5ebf5 [parser] handle empty groups 2016-04-12 06:18:26 -07:00
Timothy Stack
2b76181fd6 [parser] try to handle apostrophes better 2016-04-11 08:39:16 -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
efc74a5a0e [docs] some minor doc updates 2016-04-05 06:22:25 -07:00
Timothy Stack
96191badf3 [release] update versions for release and fix some time issues 2016-04-04 23:55:43 -07:00
Timothy Stack
cbe3541366 [spectro] add tab-completion for DB column names 2016-04-03 21:15:51 -07:00
Timothy Stack
23020e8a89 [test] missed setting TZ 2016-04-02 21:18:28 -07:00
Timothy Stack
3dcc59c405 [build] missing include 2016-04-02 21:13:25 -07:00
Timothy Stack
cc16c9a214 [build] fix attempt #2 2016-04-02 21:10:32 -07:00
Timothy Stack
fbae8a4b18 try to fix a build issue 2016-04-02 21:06:19 -07:00
Timothy Stack
4f05af6408 [time] add support for TAI64N timestamps
Fixes #300
2016-04-02 20:58:20 -07:00
Timothy Stack
9c364bf48e [spectro] add spectro view support for sql results 2016-03-30 20:18:28 -07:00
Timothy Stack
cad311f557 [views] do auto-scroll-down for all views 2016-03-28 06:13:40 -07:00
Timothy Stack
a384e240f9 missed updating the makefile 2016-03-27 15:28:47 -07:00
Timothy Stack
afc8cc44b6 [json-format] support integer values for log levels in json formats 2016-03-27 15:14:52 -07:00
Timothy Stack
acd8e24943 add '/min' to the error rate display 2016-03-25 07:02:35 -07:00
Timothy Stack
fc637ab6dc [doc] some more error rate explanation and other minor tweaks 2016-03-25 06:40:18 -07:00
Timothy Stack
7a6429519f [summary-line] change error count to error rate and do some cleanup on message levels 2016-03-24 23:58:25 -07:00
Timothy Stack
13c90726a2 [tests] some more testing and stats for logfiles 2016-03-23 22:14:59 -07:00
Timothy Stack
99eb3a54f3 [spectro] support marking lines in a bucket 2016-03-22 23:19:26 -07:00
Timothy Stack
7f6b352143 set file size for gzip files 2016-03-22 09:39:32 -07:00
Timothy Stack
e8f400abfa [logfile] truncation detection was not taking into account compressed files 2016-03-21 21:10:52 -07:00
Timothy Stack
619076d89c no, we don't want to scroll... 2016-03-20 20:25:40 -07:00
Timothy Stack
0e2d204be4 missed a new file in the makefile 2016-03-20 15:24:46 -07:00
Timothy Stack
1d9c403053 missing include 2016-03-20 15:18:23 -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
7c74ecf1e7 [logview] add a "time span" section to the summary and right justify the summary 2016-03-15 09:53:04 -07:00
Timothy Stack
ff35d811e2 [logview] more summary line tweaks 2016-03-14 06:25:38 -07:00
Timothy Stack
062cc63037 missed checking for an empty view stack 2016-03-13 22:53:59 -07:00
Timothy Stack
fe05fcc077 scroll if there's one blank row in the log view 2016-03-13 22:38:47 -07:00
Timothy Stack
80e5e8fcce [logview] add a line with summary information to the log view 2016-03-13 22:22:27 -07:00
Timothy Stack
8de5d3b749 [logfile] add more options when opening files 2016-03-12 14:12:23 -08:00
Timothy Stack
9ba690e041 [readline] change the break chars for the SQL context 2016-03-11 21:14:47 -08:00
Timothy Stack
2b2e1c0af9 [sql] add parens to function complete values and do not open empty output files from scripts 2016-03-11 09:11:26 -08:00
Timothy Stack
4b318e45e0 [parser] some more parser tweaking and fix a jget() issue 2016-03-10 22:11:53 -08:00
Timothy Stack
36c9c63966 [logview] some cleanup of the field overlay 2016-03-10 20:38:53 -08:00
Timothy Stack
2d04d047e4 [sql] change extract() to regexp_match() and make extract() an interface to the data_parser 2016-03-10 06:03:32 -08:00
Timothy Stack
d4a69cbf22 no joy
Revert "[sql] change extract() to regexp_match() and make extract() an interface to the data_parser"

This reverts commit 85eee6514b.
2016-03-09 23:30:34 -08:00
Timothy Stack
85eee6514b [sql] change extract() to regexp_match() and make extract() an interface to the data_parser 2016-03-09 23:14:54 -08:00
Timothy Stack
0f67f8d1f0 [logfile] multiline out-of-time-order messages were not being updated completely
Defect Number:
    Reviewed By:
   Testing Done:
2016-03-08 10:28:29 -08:00
Timothy Stack
9feb53f02a [sql] add extract() function to extract values from a string using a regex
This function should be preferred over creating log search tables
for scripts.
2016-03-08 06:48:43 -08:00
Timothy Stack
9213a6b58b [out-of-order] some more tweaks for out-of-order 2016-03-07 21:17:57 -08:00