I’ve been trying to figure out how to do a read only resource manager. My best guess is in the mode_t section of the iofunc_attr_init.
Normally the parameters for this is: S_IFNAM | 0666
What does the 0666 mean?
I tried changing this to: S_IRUSR | S_IRGRP | S_IROTH
running echo 50 > resmgr results in:
cannot create resmgr: permission denied
however if I change to root, I can write to the resmgr (it runs the io_write function). Which seems odd because the permissions for the file are: -r–r–r–
How do I fix this to disable root’s write permissions??