On 09/24/2018 02:04 PM, David Howells wrote:
Dan Williams <dan.j.williams(a)intel.com> wrote:
> I think you want to use prepare_kernel_cred(), not export init_cred.
That only works if the searching is done with the creds generated by
prepare_kernel_cred(). He probably does want init_cred, or at least
current_cred() if module loading overrides the creds with init_cred whilst
initialising the module.
Can I pass in NULL or is some sort of cred is necessary?