Closed ZoltanFridrich closed 1 month ago
Do we have any assurance that the truncated filename doesn't collide with others? Perhaps we could fall back to other naming scheme, e.g., hash, if the filename would be longer than 255?
Yes, we do. Because the name is truncated before any modifications and checks.
trust extract
creates file names based on CKA_LABEL attribute of trusted certificates. Some of these certificates contain labels that are longer then file name limit on linux which causes file creation to fail. This MR makesmake_unique_name
to trim names that are equal or longer then 255.