Skip to content

Releases: GoogleCloudPlatform/guest-oslogin

20260227.00

27 Feb 07:53
5ec79d4

Choose a tag to compare

Fix broken cache_refresh behavior when groups are disabled. (#181)

* Implement a binary cache for OS Login passwd entries.

This change introduces a new binary cache format for storing OS Login passwd information. It includes:
-   `OsLoginPasswdCacheWriter`: A C++ class to build and write the cache file. It buffers user entries, sorts them, and writes them to a temporary file before atomically renaming it.
-   `oslogin_passwd_cache_reader`: A C implementation for reading from the cache file using mmap. It provides functions compatible with NSS modules for looking up entries by UID, name, and iterating through all entries.
-   `eytzinger_layout.h`: A template function to convert a sorted vector into an Eytzinger layout, used for the name index to improve cache locality during lookups.
-   `oslogin_index_structs.h`: Defines the structures used for the UID and Name indices.
-   New unit tests (`eytzinger_layout_test.cc`, `oslogin_passwd_cache_reader_test.cc`, `round_trip_test.cc`) to validate the cache functionality, including concurrent read access.
-   The `Makefile` is updated to build and run the new tests. The `main` function is removed from `oslogin_utils_test.cc` as `gtest_main.cc` is now linked.

* Add anandadalton to the approvers list

* Fix incorrect cache_refresh return value.

When groups are disabled, this can cause the return value to be -1, and
this can break the guest agent.

20260217.00

18 Feb 01:07
4c50e3d

Choose a tag to compare

Fix SELinux policy to allow reading of directories, too. (#179)

* Also allow the "read" permission on dirs.

* Set mode of /var/google-users.d to 640, matching how the Guest Agent sets it.

20260214.00

14 Feb 06:12
984c0f9

Choose a tag to compare

Max openssh version available on 8_6 is 8.0p1-15 (#178)

20260129.00

29 Jan 04:55
74510b8

Choose a tag to compare

Fix a nil pointer dereference caused by a temporary string being imme…

20260128.01

29 Jan 01:20
74510b8

Choose a tag to compare

Fix a nil pointer dereference caused by a temporary string being imme…

20260128.00

28 Jan 02:42
74510b8

Choose a tag to compare

Fix a nil pointer dereference caused by a temporary string being imme…

20260123.00

23 Jan 02:13
74510b8

Choose a tag to compare

Fix a nil pointer dereference caused by a temporary string being imme…

20260122.01

23 Jan 00:52
74510b8

Choose a tag to compare

Fix a nil pointer dereference caused by a temporary string being imme…

20260122.00

22 Jan 22:45
74510b8

Choose a tag to compare

Fix a nil pointer dereference caused by a temporary string being imme…

20260116.00

16 Jan 22:40
74510b8

Choose a tag to compare

Fix a nil pointer dereference caused by a temporary string being imme…