int sandbox_cfg_allow_rename(sandbox_cfg_t **cfg, char *file1, char *file2) { sandbox_cfg_t *elem = NULL; elem = new_element2(SCMP_SYS(rename), file1, file2); if (!elem) { log_err(LD_BUG,"(Sandbox) failed to register parameter!"); return -1; } elem->next = *cfg; *cfg = elem; return 0; }
static sandbox_cfg_t* new_element(int syscall, char *value) { return new_element2(syscall, value, NULL); }
static sandbox_cfg_t* new_element(int syscall, intptr_t value) { return new_element2(syscall, value, 0); }