OpenVZ Forum


Home » General » Support » /dev/mem: Operation not permitted
icon9.gif  /dev/mem: Operation not permitted [message #35550] Thu, 02 April 2009 21:58 Go to previous message
bbhenry is currently offline  bbhenry
Messages: 17
Registered: February 2009
Junior Member
I have an application trying to access the /dev/mem and get the following error:
/dev/mem: Operation not permitted


I have already grand access of the /dev/mem to my container with both of the method I found on the wiki, even though I can see the device being available in my container , but I still get the permission denied error message. Here are the 2 methods I tried

vzctl set 2005 --devnodes mem:rw --save

or
2005 device config file with the following setting:
DEVICES="c:1:1:rw"


Both of them was able to create a /dev/mem inside my container, but I just can't get permission to access it. By the way, I am able to access the /dev/mem from HN using:
cat /dev/mem

but when I do the same thing in container, I get operation not permitted

I am using Centos 5.2 on HN, with OpenVZ kernel 2.6.18-92.1.18.el5.028stab060.2

I also have a question about mknod, what's the difference when /dev is created from mknod and device being passed by vzctl set 2005 --devnodes?



 
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message icon12.gif
Previous Topic: OpenVZ + ALT Linux Sisyphus (20081222) + WebVZ
Next Topic: CPU-Limit not working?
Goto Forum:
  


Current Time: Sun Jul 28 22:14:00 GMT 2024

Total time taken to generate the page: 0.02743 seconds