2014-11-29 01:38:04 +00:00
|
|
|
table_name("shell_history")
|
|
|
|
description("A line-delimited (command) table of per-user .*_history data.")
|
|
|
|
schema([
|
2015-11-24 20:29:03 +00:00
|
|
|
Column("uid", BIGINT, "Shell history owner", additional=True),
|
2018-06-25 15:55:49 +00:00
|
|
|
Column("time", INTEGER, "Entry timestamp. It could be absent, default value is 0."),
|
2015-06-05 18:20:24 +00:00
|
|
|
Column("command", TEXT, "Unparsed date/line/command history line"),
|
2014-11-29 01:38:04 +00:00
|
|
|
Column("history_file", TEXT, "Path to the .*_history for this user"),
|
2015-11-24 20:29:03 +00:00
|
|
|
ForeignKey(column="uid", table="users"),
|
2014-11-29 01:38:04 +00:00
|
|
|
])
|
2017-04-13 04:48:28 +00:00
|
|
|
attributes(user_data=True, no_pkey=True)
|
2014-11-29 01:38:04 +00:00
|
|
|
implementation("shell_history@genShellHistory")
|
2017-10-06 15:45:49 +00:00
|
|
|
examples([
|
|
|
|
"select * from users join shell_history using (uid)",
|
|
|
|
])
|
2016-09-14 03:37:31 +00:00
|
|
|
fuzz_paths([
|
|
|
|
"/home",
|
|
|
|
"/Users",
|
|
|
|
])
|