create_dummy_file(): Create a file to trigger call_modprobe in case of execution
| 300 | |
| 301 | // create_dummy_file(): Create a file to trigger call_modprobe in case of execution |
| 302 | void create_dummy_file(void) { |
| 303 | int fd; |
| 304 | fd = open(dummy_file, O_CREAT | O_RDWR, S_IRWXU | S_IRWXG | S_IRWXO); |
| 305 | write(fd, dummy_content, sizeof(dummy_content)); |
| 306 | close(fd); |
| 307 | } |
| 308 | |
| 309 | // get_new_modprobe_path(): Read the new modprobe_path (read it from /proc/sys/kernel/modprobe) |
| 310 | char *get_new_modprobe_path(void) { |
no outgoing calls
no test coverage detected