fscrypt_encrypt_symlink(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, this is the fscrypt_encrypt_symlink(9) page from the Kernel API Manual ✨ it’s giving kernel-API internals but make it cute πŸ’… no cap, this is the one for encrypting a symlink target when it needs it πŸ¦‹


🌸 NAME 🌸

fscrypt_encrypt_symlink β€” encrypt the symlink target if needed πŸ’–

✨ SYNOPSIS ✨

int fscrypt_encrypt_symlink (struct inode *inode , const char *target ,
unsigned int len , struct fscrypt_str *disk_link );

πŸŽ€ ARGUMENTS πŸŽ€

  • inode β€” symlink inode 🌱
  • target β€” plaintext symlink target ✨
  • len β€” length of target excluding null terminator πŸ“
  • disk_link β€” (in/out) the on-disk symlink target being prepared πŸ› οΈ

πŸ’« DESCRIPTION πŸ’«

If the symlink target needs to be encrypted, then this function encrypts it into disk_link->name πŸ’₯. fscrypt_prepare_symlink must have been called previously to compute disk_link->len ⚠️. If the filesystem did not allocate a buffer for disk_link->name after calling fscrypt_prepare_link, then one will be kmalloc'ed and the filesystem will be responsible for freeing it 🧹🫢.

πŸ”₯ RETURN πŸ”₯

0 on success, -errno on failure πŸ˜­πŸŽ‰

🌈 SEE ALSO 🌈


Signed off with love from the Kernel API Manual corner: source ./include/linux, date October 2026, page fscrypt_encrypt_symlink(9) πŸ’–πŸ¦‹βœ¨ periodt.

πŸ“¦ where this page comes from