[LTP] [PATCH] cgroup: Handle trailing new line in cgroup.controllers

Marius Kittler mkittler@suse.de
Wed Oct 25 13:19:20 CEST 2023


Am Mittwoch, 25. Oktober 2023, 13:05:33 CEST schrieb Richard Palethorpe via 
ltp:
> +	switch (ctrl_name[l]) {
> +	case '\n': break;
> +	case '\0': break;
> +	default:
> +		tst_brk(TBROK, "Unexpected char in %s: %c", ctrl_name, 
ctrl_name[l]);

I'm wondering whether that's a bit too restrictive. Or is there any official 
documentation says that you really can only have the letters a-z in cgroup 
names (and not even A-Z). Otherwise it might be better to make this just a 
warning or allow any printable characters.




More information about the ltp mailing list