[LU-15855] Return -ENOKEY to encrypt-unaware clients if filename is missing Created: 13/May/22  Updated: 20/Sep/22  Resolved: 27/Jun/22

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.15.0
Fix Version/s: Lustre 2.16.0, Lustre 2.15.2

Type: Bug Priority: Minor
Reporter: Sebastien Buisson Assignee: Sebastien Buisson
Resolution: Fixed Votes: 0
Labels: encryption

Issue Links:
Related
is related to LU-13717 Client-side encryption - support file... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Applications that check for the existence of a file normally get -ENOENT when the filename does not exist.
To reduce issues with applications running on clients without keys or without fscrypt support that check for the existence of a file in an encrypted directory, we could return -ENOKEY in the case the filename is missing. That would at least catch applications that are looking for -ENOENT when trying to check if a file already exists.



 Comments   
Comment by Gerrit Updater [ 13/May/22 ]

"Sebastien Buisson <sbuisson@ddn.com>" uploaded a new patch: https://review.whamcloud.com/47349
Subject: LU-15855 enc: enc-unaware clients get ENOKEY if file not found
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 289b8a8714190955a8fd3f613fc3ba9c9cf36af1

Comment by Gerrit Updater [ 27/Jun/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/47349/
Subject: LU-15855 enc: enc-unaware clients get ENOKEY if file not found
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 00898697f998c095e6dab3dd27e347cb1150ee8c

Comment by Gerrit Updater [ 27/Jun/22 ]

"Sebastien Buisson <sbuisson@ddn.com>" uploaded a new patch: https://review.whamcloud.com/47790
Subject: LU-15855 enc: enc-unaware clients get ENOKEY if file not found
Project: fs/lustre-release
Branch: b2_15
Current Patch Set: 1
Commit: 3f3695181974bd497631cca96fdb11f2fb849381

Comment by Peter Jones [ 27/Jun/22 ]

Landed for 2.16

Comment by Gerrit Updater [ 20/Aug/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/47790/
Subject: LU-15855 enc: enc-unaware clients get ENOKEY if file not found
Project: fs/lustre-release
Branch: b2_15
Current Patch Set:
Commit: 405b1fc7fb9291e2768221f0b6762cfc8bfaacf6

Generated at Sat Feb 10 03:21:52 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.