Attention is currently required from: Frank Filz.
Lior Suliman would like Frank Filz to review this change.
idmapper: Implement RFC 5661 compliant numeric ID parsing
This patch introduces string_to_numeric_uid_gid to strictly enforce
RFC 5661, Section 5.9 requirements for numeric owners and groups.
The new helper ensures:
No leading zeros (except for the value "0").
No non-numeric characters (e.g., '+' or '-').
Proper 32-bit range validation with error logging.
The atless2id and pwentname2id functions were updated to use this
safer parsing logic. Additionally, name2id now bypasses cache
lookups and defaults to numeric parsing when ID mapping is disabled.
Change-Id: I5f8cd6f9d56041931e54e335d0b03283d1015aca
Signed-off-by: Lior Suliman <liorsu@gmail.com>
---
M src/idmapper/idmapper.c
1 file changed, 63 insertions(+), 14 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/31/1235931/1
To view, visit change 1235931. To unsubscribe, or for help writing mail filters, visit settings.