I'm trying to get hardware access through the use of ioperm(). However, when running the program as a normal user, I get an "operation not permitted" error (UID is 1000). No problem here, as this is as it's supposed to be.
But running it as fakeroot does not help as it produces the same error (UID is 0). And this I don't get.
What am I doing wrong here?
Code:
// get access to I/O port
if (ioperm( 0x378, 3, 1 )) {
perror("ioperm");
}
Btw, root is the owner of the app.