|
@@ -1394,10 +1394,6 @@ sandbox_cfg_allow_stat_filename(sandbox_cfg_t **cfg, char *file)
|
|
|
sandbox_cfg_t *elem = NULL;
|
|
|
|
|
|
elem = new_element(SCMP_stat, file);
|
|
|
- if (!elem) {
|
|
|
- log_err(LD_BUG,"(Sandbox) failed to register parameter!");
|
|
|
- return -1;
|
|
|
- }
|
|
|
|
|
|
elem->next = *cfg;
|
|
|
*cfg = elem;
|
|
@@ -1411,10 +1407,6 @@ sandbox_cfg_allow_open_filename(sandbox_cfg_t **cfg, char *file)
|
|
|
sandbox_cfg_t *elem = NULL;
|
|
|
|
|
|
elem = new_element(SCMP_SYS(open), file);
|
|
|
- if (!elem) {
|
|
|
- log_err(LD_BUG,"(Sandbox) failed to register parameter!");
|
|
|
- return -1;
|
|
|
- }
|
|
|
|
|
|
elem->next = *cfg;
|
|
|
*cfg = elem;
|
|
@@ -1428,10 +1420,6 @@ sandbox_cfg_allow_chmod_filename(sandbox_cfg_t **cfg, char *file)
|
|
|
sandbox_cfg_t *elem = NULL;
|
|
|
|
|
|
elem = new_element(SCMP_SYS(chmod), file);
|
|
|
- if (!elem) {
|
|
|
- log_err(LD_BUG,"(Sandbox) failed to register parameter!");
|
|
|
- return -1;
|
|
|
- }
|
|
|
|
|
|
elem->next = *cfg;
|
|
|
*cfg = elem;
|
|
@@ -1445,10 +1433,6 @@ sandbox_cfg_allow_chown_filename(sandbox_cfg_t **cfg, char *file)
|
|
|
sandbox_cfg_t *elem = NULL;
|
|
|
|
|
|
elem = new_element(SCMP_SYS(chown), file);
|
|
|
- if (!elem) {
|
|
|
- log_err(LD_BUG,"(Sandbox) failed to register parameter!");
|
|
|
- return -1;
|
|
|
- }
|
|
|
|
|
|
elem->next = *cfg;
|
|
|
*cfg = elem;
|
|
@@ -1463,11 +1447,6 @@ sandbox_cfg_allow_rename(sandbox_cfg_t **cfg, char *file1, char *file2)
|
|
|
|
|
|
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;
|
|
|
|
|
@@ -1480,10 +1459,6 @@ sandbox_cfg_allow_openat_filename(sandbox_cfg_t **cfg, char *file)
|
|
|
sandbox_cfg_t *elem = NULL;
|
|
|
|
|
|
elem = new_element(SCMP_SYS(openat), file);
|
|
|
- if (!elem) {
|
|
|
- log_err(LD_BUG,"(Sandbox) failed to register parameter!");
|
|
|
- return -1;
|
|
|
- }
|
|
|
|
|
|
elem->next = *cfg;
|
|
|
*cfg = elem;
|