Find the answer to your Linux question:
Results 1 to 2 of 2
Hi!! this is my question. I have read in the Intel manuals that some instructions are only available for the operating system or executive, that is the privilege level 0. ...
  1. #1
    Just Joined!
    Join Date
    Nov 2009
    Posts
    72

    accesing privilege level 0 from user programs

    Hi!! this is my question. I have read in the Intel manuals that some instructions are only available for the operating system or executive, that is the privilege level 0. Also I read that it is possible to access privilege level instructions from user space.

    Do you know how to do it in linux??? for example, to execute LIDT instruction from user code. I am using assembly language with GAS.

    thank you very much!!!

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,100
    You cant access ring 0 from user space.
    Ring (computer security) - Wikipedia, the free encyclopedia

    If you really need that kind of access, then you need to write a kernel module.
    No idea, if ring 0 is a prerequisite for LIDT instructions, though.
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...