)]}'
{
  "commit": "7b4e324bdcd5910c9460bb5fc37aaf354f596ebf",
  "tree": "2ebac62a7ab645130cf9dacc7aad2312c05b8635",
  "parents": [
    "16490618cbde91b5aac04873c39c8fb7666ff686"
  ],
  "author": {
    "name": "Lukas Wunner",
    "email": "lukas@wunner.de",
    "time": "Tue Jun 11 17:35:36 2024 +0200"
  },
  "committer": {
    "name": "Lukas Wunner",
    "email": "lukas@wunner.de",
    "time": "Sun Jun 30 17:36:52 2024 +0200"
  },
  "message": "sysfs: Allow symlinks to be added between sibling groups\n\nA subsequent commit has the need to create a symlink from an attribute\nin a first group to an attribute in a second group.  Both groups belong\nto the same kobject.\n\nMore specifically, each signature received from an authentication-\ncapable device is going to be represented by a file in the first group\nand shall be accompanied by a symlink pointing to the certificate slot\nin the second group which was used to generate the signature (a device\nmay have multiple certificate slots and each is represented by a\nseparate file in the second group):\n\n/sys/devices/.../signatures/0_certificate_chain -\u003e .../certificates/slot0\n\nThere is already a sysfs_add_link_to_group() helper to add a symlink to\na group which points to another kobject, but this isn\u0027t what\u0027s needed\nhere.\n\nSo add a new function to add a symlink among sibling groups of the same\nkobject.\n\nThe existing sysfs_add_link_to_group() helper goes through a locking\ndance of acquiring sysfs_symlink_target_lock in order to acquire a\nreference on the target kobject.  That\u0027s unnecessary for the present\nuse case as the link itself and its target reside below the same\nkobject.\n\nTo simplify error handling in the newly introduced function, add a\nDEFINE_FREE() clause for kernfs_put().\n\nSigned-off-by: Lukas Wunner \u003clukas@wunner.de\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d22ad67a0f3291f4702f494939528d5d13c31fae",
      "old_mode": 33188,
      "old_path": "fs/sysfs/group.c",
      "new_id": "0cb52c9b9e1902cb2d5f8ba41964e7f402b77343",
      "new_mode": 33188,
      "new_path": "fs/sysfs/group.c"
    },
    {
      "type": "modify",
      "old_id": "87c79d076d6d7396c6da4efc5873a49a5feac873",
      "old_mode": 33188,
      "old_path": "include/linux/kernfs.h",
      "new_id": "d5726d070dba913f112b0c140a6ca32e1c81b4d1",
      "new_mode": 33188,
      "new_path": "include/linux/kernfs.h"
    },
    {
      "type": "modify",
      "old_id": "aff1d81e89717ca93b7c460ec1b01f4b817493bb",
      "old_mode": 33188,
      "old_path": "include/linux/sysfs.h",
      "new_id": "6f970832bd36f5d00059f510073295113014e2a6",
      "new_mode": 33188,
      "new_path": "include/linux/sysfs.h"
    }
  ]
}
