ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] [PATCH 0/6] sysklogd: implement checkum chains for log entries
@ 2020-10-27 11:33 Alexey Gladkov
  2020-10-27 11:33 ` [devel] [PATCH 1/6] Optimize the filling of the record fields Alexey Gladkov
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Alexey Gladkov @ 2020-10-27 11:33 UTC (permalink / raw)
  To: ALT Devel discussion list

Привет!

Этот патчсет реализовывает цепочки хэшей для записей в логе. Это позволяет
обнаружить возможное втрожение в логи.

При старте syslogd считает хэш для каждой записи используя хэш предыдущей
записи или пустой, если это первая запись в лог после старта. Цепочка не
прерывается до остановки сервера или перекофигруции.

Наследование чексумм между рестартами не сделано намеренно поскольку у сервера
нет возможности сохранить и гарантировать неприкосновенность чексуммы между
рестартами.

Рестарт syslogd, как и нарушение цепочки чексумм, считается поводом для
расследования.

Реализация sha256 (каталог block/) взята из git.

Alexey Gladkov (6):
  Optimize the filling of the record fields
  syslogd: make logerror is printf-like
  syslogd: Implement customization of log file records
  syslogd: no need to try to substitute a field in a record if it's not
    in the log_format
  Makefile: use make variables instead of a hardcoded list
  syslogd: implement checksum chains for log entries

 Makefile                         |  24 +-
 block/bswap.h                    | 217 ++++++++++++++++
 block/sha256.c                   | 202 +++++++++++++++
 block/sha256.h                   |  24 ++
 hash.h                           |  66 +++++
 syslog.conf                      |  17 ++
 syslogd.c                        | 419 +++++++++++++++++++++++++------
 tests/log-hashes/.gitignore      |   5 +
 tests/log-hashes/check           |  28 +++
 tests/log-hashes/check-hashes.sh |  28 +++
 10 files changed, 950 insertions(+), 80 deletions(-)
 create mode 100644 block/bswap.h
 create mode 100644 block/sha256.c
 create mode 100644 block/sha256.h
 create mode 100644 hash.h
 create mode 100644 tests/log-hashes/.gitignore
 create mode 100755 tests/log-hashes/check
 create mode 100755 tests/log-hashes/check-hashes.sh

-- 
2.25.4



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-10-27 12:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-27 11:33 [devel] [PATCH 0/6] sysklogd: implement checkum chains for log entries Alexey Gladkov
2020-10-27 11:33 ` [devel] [PATCH 1/6] Optimize the filling of the record fields Alexey Gladkov
2020-10-27 11:33 ` [devel] [PATCH 2/6] syslogd: make logerror is printf-like Alexey Gladkov
2020-10-27 11:33 ` [devel] [PATCH 3/6] syslogd: Implement customization of log file records Alexey Gladkov
2020-10-27 11:33 ` [devel] [PATCH 4/6] syslogd: no need to try to substitute a field in a record if it's not in the log_format Alexey Gladkov
2020-10-27 11:33 ` [devel] [PATCH 5/6] Makefile: use make variables instead of a hardcoded list Alexey Gladkov
2020-10-27 11:33 ` [devel] [PATCH 6/6] syslogd: implement checksum chains for log entries Alexey Gladkov
2020-10-27 11:44 ` [devel] [PATCH 0/6] sysklogd: implement checkum " Alexey V. Vissarionov
2020-10-27 12:13   ` Alexey Gladkov

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git