)]}'
{
  "commit": "0c3bc7899e6dfb52df1c46118a5a670ae619645f",
  "tree": "451e70daa47b17a87fdb552f2f3cd83350fdd8ef",
  "parents": [
    "bf1ac16edf6770a92bc75cf2373f1f9feea398a4"
  ],
  "author": {
    "name": "Christian Brauner",
    "email": "brauner@kernel.org",
    "time": "Wed Jul 20 14:32:52 2022 +0200"
  },
  "committer": {
    "name": "Christian Brauner (Microsoft)",
    "email": "brauner@kernel.org",
    "time": "Mon Aug 22 12:52:23 2022 +0200"
  },
  "message": "ntfs: fix acl handling\n\nWhile looking at our current POSIX ACL handling in the context of some\noverlayfs work I went through a range of other filesystems checking how they\nhandle them currently and encountered ntfs3.\n\nThe posic_acl_{from,to}_xattr() helpers always need to operate on the\nfilesystem idmapping. Since ntfs3 can only be mounted in the initial user\nnamespace the relevant idmapping is init_user_ns.\n\nThe posix_acl_{from,to}_xattr() helpers are concerned with translating between\nthe kernel internal struct posix_acl{_entry} and the uapi struct\nposix_acl_xattr_{header,entry} and the kernel internal data structure is cached\nfilesystem wide.\n\nAdditional idmappings such as the caller\u0027s idmapping or the mount\u0027s idmapping\nare handled higher up in the VFS. Individual filesystems usually do not need to\nconcern themselves with these.\n\nThe posix_acl_valid() helper is concerned with checking whether the values in\nthe kernel internal struct posix_acl can be represented in the filesystem\u0027s\nidmapping. IOW, if they can be written to disk. So this helper too needs to\ntake the filesystem\u0027s idmapping.\n\nFixes: be71b5cba2e6 (\"fs/ntfs3: Add attrib operations\")\nCc: Konstantin Komarov \u003calmaz.alexandrovich@paragon-software.com\u003e\nCc: ntfs3@lists.linux.dev\nSigned-off-by: Christian Brauner (Microsoft) \u003cbrauner@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5e0e0280e70debaac0c9e9478a65853b7deb8c1b",
      "old_mode": 33188,
      "old_path": "fs/ntfs3/xattr.c",
      "new_id": "3e9118705174fcb6017b95d98400ffa9dec249bf",
      "new_mode": 33188,
      "new_path": "fs/ntfs3/xattr.c"
    }
  ]
}
