Refactor the sudoedit code to copy files so it can be shared.
The SELinux sudoedit code now extends the destination file the same way the non-SELinux version does.
This commit is contained in:
@@ -84,6 +84,9 @@
|
||||
struct command_details;
|
||||
struct command_status;
|
||||
|
||||
/* copy_file.c */
|
||||
int sudo_copy_file(const char *src, int src_fd, off_t src_len, const char *dst, int dst_fd, off_t dst_len);
|
||||
|
||||
/* exec.c */
|
||||
void exec_cmnd(struct command_details *details, int errfd);
|
||||
void terminate_command(pid_t pid, bool use_pgrp);
|
||||
|
Reference in New Issue
Block a user