call_usermodehelper_keys — start a usermode application
int call_usermodehelper_keys
(char * path, char ** argv, char ** envp, struct key * session_keyring, int wait);
pathname for the application
null-terminated argument list
null-terminated environment list
session keyring for process (NULL for an empty keyring)
wait for the application to finish and return status. when -1 don't wait at all, but you get no useful error back when the program couldn't be exec'ed. This makes it safe to call from interrupt context.
Runs a user-space application. The application is started asynchronously if wait is not set, and runs as a child of keventd. (ie. it runs with full root capabilities).
Must be called from process context. Returns a negative error code if program was not execed successfully, or 0.