Is there a way to allow only a specific program to access a device file (e.g. serial interface) in Linux?
Could I maybe create a user that is the only one with access to the file and set that user to be only allowed to run a specific piece of software? Or is there a way to make the system require sudo password for accepting the use of device file without running the program itself as sudo? Or can this be handled with an external program?