diff options
Diffstat (limited to 'src/firejail/cgroup.c')
-rw-r--r-- | src/firejail/cgroup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/firejail/cgroup.c b/src/firejail/cgroup.c index 4d64d3fd8..9e6a2e549 100644 --- a/src/firejail/cgroup.c +++ b/src/firejail/cgroup.c | |||
@@ -78,6 +78,8 @@ errout: | |||
78 | 78 | ||
79 | 79 | ||
80 | void set_cgroup(const char *path) { | 80 | void set_cgroup(const char *path) { |
81 | invalid_filename(path); | ||
82 | |||
81 | // path starts with /sys/fs/cgroup | 83 | // path starts with /sys/fs/cgroup |
82 | if (strncmp(path, "/sys/fs/cgroup", 14) != 0) | 84 | if (strncmp(path, "/sys/fs/cgroup", 14) != 0) |
83 | goto errout; | 85 | goto errout; |