Skip to content

Store (encrypted) DirectoryID inside of ciphertext directory #113

Closed

Description

@infeo

With CryptoFS 2.1.0 exists a possibilty to restore orphaned directories. The only downside of this method (and also other health fixes of Diagnostic Results) is, that the for the fix important dirId is not present by looking only at the encrypted vault structure and hence all files inside the orphaned dir need new, arbitrary names.

After implementing #47, this problem can be solved by storing the directory ID within the dir node itself, simplyfing the retrieveal if the dirID and making also more fixes possible.

Activity

  1. overheadhunter commented on Sep 6, 2021

    @overheadhunter
    Member

    Or alternatively (since xattr may not survive sync) we can store it in a dedicated file inside the dir. This may need encryption to prevent attackers to descramble the dir structure.

  2. infeo commented on Nov 29, 2021

    @infeo
    MemberAuthor

    Regarding encryption: The dirId can be encrypted with the masterkey and the rootDir as AD. That way, we can always decrypt it and it is has the same protection level as everything else.

  3. overheadhunter commented on Nov 29, 2021

    @overheadhunter
    Member

    and the rootDir as AD

    can you explain what purpose this serves?

  4. infeo commented on Nov 29, 2021

    @infeo
    MemberAuthor

    can you explain what purpose this serves?

    The intention was to unify some code, but a short research and talk showed me, this is completely unnecessary^^

  5. changed the title [-]Store (encrypted) DirectoryID in extended attributes of directory[/-] [+]Store (encrypted) DirectoryID inside of ciphertext directory[/+] on Mar 31, 2022
  6. self-assigned this
    on Mar 31, 2022
  7. added this to the 2.4.1 milestone on Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions