I'm creating my own syscalls and I'm using functions from this link How to read/write files within a Linux kernel module? to reading and writing to files
the problem is that these functions are not working when non-root user calls my new syscall.
the options are: set root permissions before calling to these functions or create a file with permission 777 before calling to these functions maybe there are more options
but I don't know how to do this.