Here are the output from the two commands:
$ sudo file /home/.snapshots/{804,813,824,830,851}/snapshot/user/.local/share/keyrings/login.keyring
/home/.snapshots/804/snapshot/user/.local/share/keyrings/login.keyring: GNOME keyring, major version 0, minor version 0, crypto type 0 (AES), hash type 0 (MD5), name "Login", last modified Tue Oct 18 16:39:50 2022, created Thu Jan 1 00:00:00 1970, not locked if idle, hash iterations 2639, salt 5671152323367239619, 6 item(s)
/home/.snapshots/813/snapshot/user/.local/share/keyrings/login.keyring: GNOME keyring, major version 0, minor version 0, crypto type 0 (AES), hash type 0 (MD5), name "Login", last modified Thu Jan 1 00:00:00 1970, created Tue Oct 18 16:39:50 2022, not locked if idle, hash iterations 2596, salt 11579539427720780673, 6 item(s)
/home/.snapshots/824/snapshot/user/.local/share/keyrings/login.keyring: GNOME keyring, major version 0, minor version 0, crypto type 0 (AES), hash type 0 (MD5), name "Login", last modified Thu Jan 1 00:00:00 1970, created Tue Oct 18 16:39:50 2022, not locked if idle, hash iterations 2596, salt 11579539427720780673, 6 item(s)
/home/.snapshots/830/snapshot/user/.local/share/keyrings/login.keyring: GNOME keyring, major version 0, minor version 0, crypto type 0 (AES), hash type 0 (MD5), name "Login", last modified Thu Jan 1 00:00:00 1970, created Tue Oct 18 16:39:50 2022, not locked if idle, hash iterations 1415, salt 6381053758584472797, 6 item(s)
/home/.snapshots/851/snapshot/user/.local/share/keyrings/login.keyring: GNOME keyring, major version 0, minor version 0, crypto type 0 (AES), hash type 0 (MD5), name "Login", last modified Tue Oct 18 16:39:50 2022, created Thu Jan 1 00:00:00 1970, not locked if idle, hash iterations 1489, salt 10434400876941994071, 6 item(s)
$ sudo stat /home/.snapshots/{804,813,824,830,851}/snapshot/user/.local/share/keyrings/login.keyring
File: /home/.snapshots/804/snapshot/user/.local/share/keyrings/login.keyring
Size: 2850 Blocks: 8 IO Block: 4096 regular file
Device: 0,354 Inode: 3776318 Links: 1
Access: (0600/-rw-------) Uid: ( 1000/ user) Gid: ( 1000/ user)
Context: unconfined_u:object_r:gkeyringd_gnome_home_t:s0
Access: 2023-01-18 14:30:09.633275723 +0100
Modify: 2023-01-17 17:48:52.945103154 +0100
Change: 2023-01-17 17:48:52.953103150 +0100
Birth: 2023-01-17 17:48:52.945103154 +0100
File: /home/.snapshots/813/snapshot/user/.local/share/keyrings/login.keyring
Size: 2850 Blocks: 8 IO Block: 4096 regular file
Device: 0,355 Inode: 3828468 Links: 1
Access: (0600/-rw-------) Uid: ( 1000/ user) Gid: ( 1000/ user)
Context: unconfined_u:object_r:gkeyringd_gnome_home_t:s0
Access: 2023-01-18 20:49:19.868935666 +0100
Modify: 2023-01-18 20:49:19.862935673 +0100
Change: 2023-01-18 20:49:19.867935667 +0100
Birth: 2023-01-18 20:49:19.862935673 +0100
File: /home/.snapshots/824/snapshot/user/.local/share/keyrings/login.keyring
Size: 2850 Blocks: 8 IO Block: 4096 regular file
Device: 0,356 Inode: 3828468 Links: 1
Access: (0600/-rw-------) Uid: ( 1000/ user) Gid: ( 1000/ user)
Context: unconfined_u:object_r:gkeyringd_gnome_home_t:s0
Access: 2023-01-20 17:46:55.249820149 +0100
Modify: 2023-01-18 20:49:19.862935673 +0100
Change: 2023-01-18 20:49:19.867935667 +0100
Birth: 2023-01-18 20:49:19.862935673 +0100
File: /home/.snapshots/830/snapshot/user/.local/share/keyrings/login.keyring
Size: 2850 Blocks: 8 IO Block: 4096 regular file
Device: 0,357 Inode: 3881071 Links: 1
Access: (0600/-rw-------) Uid: ( 1000/ user) Gid: ( 1000/ user)
Context: unconfined_u:object_r:gkeyringd_gnome_home_t:s0
Access: 2023-01-20 22:39:51.270311205 +0100
Modify: 2023-01-20 22:39:51.263311212 +0100
Change: 2023-01-20 22:39:51.269311206 +0100
Birth: 2023-01-20 22:39:51.263311212 +0100
File: /home/.snapshots/851/snapshot/user/.local/share/keyrings/login.keyring
Size: 2850 Blocks: 8 IO Block: 4096 regular file
Device: 0,358 Inode: 3894902 Links: 1
Access: (0600/-rw-------) Uid: ( 1000/ user) Gid: ( 1000/ user)
Context: unconfined_u:object_r:gkeyringd_gnome_home_t:s0
Access: 2023-01-21 18:37:50.128299351 +0100
Modify: 2023-01-21 10:54:32.464383635 +0100
Change: 2023-01-21 18:36:59.485910380 +0100
Birth: 2023-01-21 10:54:32.464383635 +0100
Keyrings from snapshots 813, 824, and 830 are not decryptable.
From the file
output, the corrupted keyrings has their “last modified time” set to the beginning of Unix epoch, and their “created time” set to recent time, but the OK keyrings have their times set the other way round.
But the stat
output shows different things, maybe it interprets the data differently?
I remember that there was once that my laptop shut down automatically in the middle of the night, and I only noticed it in the morning and when I had it boot up, I can’t find anything in journalctl
that caused the shutdown. That was around the time the keyring file got corrupted. It didn’t occur to me until just now that these two could be related.