Skip to contentSkip to conversation

New: crypt may return EPERM and/or EINVAL

Bug 69771 bugzilla-daemon-590EEB7GvNiWaY/[email protected] 1 participant 4 messages Jan 31, 2014 – Feb 26, 2014 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

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

A message that is not in the archive (sent off-list or not yet received): bug-69771-11311-3bo0kxnWaOQUvHkbgXJLS5sdmw4N0Rt+2LY78lusg7I@public.gmane.org/

#2 lore raw

[Bug 69771] crypt may return EPERM and/or EINVAL

https://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
#3 lore raw

[Bug 69771] crypt may return EPERM and/or EINVAL

In reply to a message not in the archive

https://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
#4 lore raw

[Bug 69771] crypt may return EPERM and/or EINVAL

In reply to a message not in the archive

https://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_enabled has 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