static int is_cgroup_path(const char *fname) {
	// path starts with /sys/fs/cgroup
	if (strncmp(fname, "/sys/fs/cgroup", 14) != 0)
		return 0;

	// no .. traversal
	char *ptr = strstr(fname, "..");
	if (ptr)
		return 0;

	return 1;
}
static int is_cgroup_path(const char *fname) {
	 
	if (strncmp(fname, "/sys/fs/cgroup", 14) != 0)
		return 0;

	 
	char *ptr = strstr(fname, "..");
	if (ptr)
		return 0;

	return 1;
}