X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fkmod.h;fp=include%2Flinux%2Fkmod.h;h=27501f4def78df7683aa31f5fe4ae171310fc86e;hb=43bc926fffd92024b46cafaf7350d669ba9ca884;hp=95d0e4b0814daa4b77b0df7b0d3e2418607726b4;hpb=cee37fe97739d85991964371c1f3a745c00dd236;p=linux-2.6.git diff --git a/include/linux/kmod.h b/include/linux/kmod.h index 95d0e4b08..27501f4de 100644 --- a/include/linux/kmod.h +++ b/include/linux/kmod.h @@ -19,6 +19,7 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include #include #include #include @@ -34,7 +35,19 @@ static inline int request_module(const char * name, ...) { return -ENOSYS; } #endif #define try_then_request_module(x, mod...) ((x) ?: (request_module(mod), (x))) -extern int call_usermodehelper(char *path, char *argv[], char *envp[], int wait); + +struct key; +extern int call_usermodehelper_keys(char *path, char *argv[], char *envp[], + struct key *session_keyring, int wait); + +static inline int +call_usermodehelper(char *path, char **argv, char **envp, int wait) +{ + return call_usermodehelper_keys(path, argv, envp, NULL, wait); +} + extern void usermodehelper_init(void); +extern int __exec_usermodehelper(char *path, char **argv, char **envp, + struct key *ring); #endif /* __LINUX_KMOD_H__ */