I made a program that tries to do mmaping on /dev/mem and it fails with:
Failed to open /dev/mem: Operation not permitted
And I tried using od as a test for my code being bad too:
od: /dev/mem: Operation not permitted
od: /dev/port: Operation not permitted
I am also running Kubuntu 22.04 LTS
To clarify, I never mmaped /dev/port.
How do I make these files open-able?