libdlog: apply MIT license; clarify license confusion 15/240115/4
authorMichal Bloch <m.bloch@samsung.com>
Mon, 3 Aug 2020 13:01:09 +0000 (15:01 +0200)
committerMichal Bloch <m.bloch@samsung.com>
Mon, 3 Aug 2020 15:39:55 +0000 (17:39 +0200)
commit9064d5db21e11515dfee758a71432b10e62d98d2
treef928f0bb6f347449af43d704edc3fc722bdbe949
parentc71e19f27440fac69203cd8d8f3208fa162104f9
libdlog: apply MIT license; clarify license confusion

In multiple places, the copyright of The Android Open Source Project
was mistakenly added (due to lazy copy-paste) or wasn't removed when
relevant code got replaced.

Specifically:

 * the entirety of `translate_syslog.c`, `parsers.c` were written
   in commit dd125c915efd411ac20229ce15f9c63a298384e3, as was the
   syslog related stuff inside `queued_entry.c`

 * `parse_kmsg_message` from `queued_entry.c` was written in
    commit 4425f7c497d5c79ee94baa335c6f4938d2fa0d43, back then
    under the name `parse_entry_raw`.

 * `parse androidlogger_message` can't avoid similarity to the OG
   code from Android because a lot of it is just copying from
   member fields (specification is not copyrightable), but as far
   as I can tell it was actually written mostly from scratch (see
   commit 4188ddaff9cb28c1865b23a94738653382091962) and copying
   from specific fields readded independently later in commit
   00320e1655ac0f31f743be76a866fedf2b540901.

 * in `logcommon.c` there is a lot of pipe related stuff which is
   split over a ton of refactoring commits, but is obviously all
   Samsung if you take a glance at 2015 commits and the state of
   the repo before adding the pipe backend.

 * in `logcommon.c` there's also a lot of miscellaneous chaff whose
   authorship maps fairly well to what `git blame` says.

 * in `logcommon.c` there's the function `filter_pri_to_char`,
   which is technically original Android code but it is so trivial
   that it is really nothing more than its own specification, so
   it shouldn't cause any legal issues. (The opposite function,
   `filter_char_to_pri`, was rewritten in f7b5ee04e80c53a090c9.)

Change-Id: Ibc6cccdcf06588b7c9a431c3113e77b92e58947a
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
20 files changed:
LICENSE.MIT
include/dlog.h
include/dynamic_config.h
include/logcommon.h
include/loglimiter.h
include/logpipe.h
include/ptrs_list.h
include/queued_entry.h
include/queued_entry_timestamp.h
src/libdlog/dynamic_config.c
src/libdlog/log.c
src/libdlog/log_android.c
src/libdlog/log_pipe.c
src/shared/backend_androidlogger.c
src/shared/logcommon.c
src/shared/logconfig.c
src/shared/loglimiter.c
src/shared/parsers.c
src/shared/queued_entry.c
src/shared/translate_syslog.c