From 4d4c8a5be1624b30a63665a5b30715faa3dcfc95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sun, 21 Aug 2022 06:10:47 +0300 Subject: [PATCH] analyze command --- README.md | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 41a62bf..fd68fca 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,34 @@ Test it on a real system $ zig-out/bin/turbonss-unix2db --passwd /etc/passwd --group /etc/group $ zig-out/bin/turbonss-analyze db.turbo - <...> + File: /etc/turbonss/db.turbo + Size: 2,624 bytes + Version: 0 + Endian: little + Pointer size: 8 bytes + getgr buffer size: 17 + getpw buffer size: 74 + Users: 19 + Groups: 39 + Shells: 1 + Most memberships: _apt (1) + Sections: + Name Begin End Size bytes + header 00000000 00000080 128 + bdz_gid 00000080 000000c0 64 + bdz_groupname 000000c0 00000100 64 + bdz_uid 00000100 00000140 64 + bdz_username 00000140 00000180 64 + idx_gid2group 00000180 00000240 192 + idx_groupname2group 00000240 00000300 192 + idx_uid2user 00000300 00000380 128 + idx_name2user 00000380 00000400 128 + shell_index 00000400 00000440 64 + shell_blob 00000440 00000480 64 + groups 00000480 00000700 640 + users 00000700 000009c0 704 + groupmembers 000009c0 00000a00 64 + additional_gids 00000a00 00000a40 64 Run and configure a test container that uses `turbonss` instead of the default `files`: