New: crypt may return EPERM and/or EINVAL
https://bugzilla.kernel.org/show_bug.cgi?id=69771
Bug ID: 69771
Summary: crypt may return EPERM and/or EINVAL
Product: Documentation
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: man-pages
Assignee: documentation_man-pages-ztI5WcYan/[email protected]
Reporter: [email protected]
Regression: No
http://man7.org/linux/man-pages/man3/crypt.3.html
crypt(3) man page only has a description about ENOSYS. However current glibc may return EPERM and EINVAL too.
I'd suggest to add following description
EPERM: If /proc/sys/crypto/fips_enabled is turned on and try to use weak crypt type, such as DES.
EINVAL: salt argument has wrong format.
Thanks.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
[Bug 69771] crypt may return EPERM and/or EINVAL
In reply to a message not in the archivehttps://bugzilla.kernel.org/show_bug.cgi?id=69771
Michael Kerrisk <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |[email protected]Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
[Bug 69771] crypt may return EPERM and/or EINVAL
In reply to a message not in the archivehttps://bugzilla.kernel.org/show_bug.cgi?id=69771
Michael Kerrisk <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |CODE_FIX--- Comment #1 from Michael Kerrisk <[email protected]> --- Thanks, for the report Motohiro. I added these texts:
EINVAL salt has the wrong format.
EPERM /proc/sys/crypto/fips_enabled has a nonzero value, and an
attempt was made to use a weak encryption type, such as DES.
Okay?
Just for future reports: to help me verify details, pointers to the relevant source files would save me doing some hunting. (I did find them after a little searching, in this case)
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
[Bug 69771] crypt may return EPERM and/or EINVAL
In reply to a message not in the archivehttps://bugzilla.kernel.org/show_bug.cgi?id=69771
--- Comment #2 from KOSAKI Motohiro <[email protected]> ---
Quoted 9 lines
Thanks, for the report Motohiro. I added these texts:
EINVAL salt has the wrong format.
EPERM
/proc/sys/crypto/fips_enabledhas a nonzero value, and an
attempt was made to use a weak encryption type, such as DES.Okay?
Yes, thanks.
Quoted 1 line
Just for future reports: to help me verify details, pointers to the relevant >source files would save me doing some hunting. (I did find them after a little >searching, in this case)
Oops. Sorry about that. Yes, I'll do that.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html