I wish to allow for my program to interface with the GPIO pins on the jetson TX2 during runtime. An easy solution to this problem is to start the script with sudo permissions, but this opens up the system to vulnerabilities. The next easiest solution would be to change the permissions of the /sys/class/gpio/ directory. However, this contains two issues. Firstly, these permissions do not persist on reboot (from what I have initially observed). Secondly, these permissions are not recursive to exported pins (e.g. If I were to export pin 217, I would not be able to write to its direction or value without having to grant permissions once again).
If anyone has any insight as to where to look for a solution to this, please let me know.