RHEL 7.0 kernel does not export putname(), why?

Solution In Progress - Updated -

Issue

  • Applications usually needs to copy data from the user-space to the kernel-space, for example filenames. For this purpose getname(), an exported API by the kernel is used. The getname() is a memory allocating call. The corresponding API to free the memory, putname() is not exported in the RHEL7 kernel. Not calling putname would lead to memory leakage and the driver to not function properly.

  • Is there an API similar to the functions on getname() and putname() exported by RHEL7 kernel?

Environment

  • Red Hat Enterprise Linux 7.0 Snapshot 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content