mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
kmod: make usermodehelper path a const string
This is in preparation for making it so that usermode helper programs can't be changed, if desired, by userspace. We will tackle the mess of cleaning up the write-ability of argv and env later, that's going to take more work, for much less gain... Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -56,7 +56,7 @@ struct file;
|
||||
struct subprocess_info {
|
||||
struct work_struct work;
|
||||
struct completion *complete;
|
||||
char *path;
|
||||
const char *path;
|
||||
char **argv;
|
||||
char **envp;
|
||||
int wait;
|
||||
@@ -67,10 +67,11 @@ struct subprocess_info {
|
||||
};
|
||||
|
||||
extern int
|
||||
call_usermodehelper(char *path, char **argv, char **envp, int wait);
|
||||
call_usermodehelper(const char *path, char **argv, char **envp, int wait);
|
||||
|
||||
extern struct subprocess_info *
|
||||
call_usermodehelper_setup(char *path, char **argv, char **envp, gfp_t gfp_mask,
|
||||
call_usermodehelper_setup(const char *path, char **argv, char **envp,
|
||||
gfp_t gfp_mask,
|
||||
int (*init)(struct subprocess_info *info, struct cred *new),
|
||||
void (*cleanup)(struct subprocess_info *), void *data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user