I would be careful, a critical buffer overflow vulnerability was just found in the Douane kernel module: https://github.com/Douane/douane-dkms/commit/61023b91fbafab8...
+ // Don't do anything if the process_path length is > PATH_LENGTH
+ if (strlen(process_path) > PATH_LENGTH)
+ return;