]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
homework: when activating a directory, include info about it in resulting record
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Oct 2021 20:03:30 +0000 (22:03 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 27 Oct 2021 15:37:14 +0000 (17:37 +0200)
For the other backends we synthesize a "binding" section in the json
record of the user that stores meta info how a user record is "bound" to
the local host. It declares storage info and such. Let's do the same for
the directory/subvolume backends.

src/home/homework-directory.c

index 876dbd1baad89a0392882cd9d0328ae70510540b..bd68b405c104feec2e51d960d0d79bae0d0f72dd 100644 (file)
@@ -53,6 +53,10 @@ int home_activate_directory(
         if (r < 0)
                 return r;
 
+        r = home_extend_embedded_identity(new_home, h, setup);
+        if (r < 0)
+                return r;
+
         setup->root_fd = safe_close(setup->root_fd);
 
         /* Create mount point to mount over if necessary */