Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1077477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:34:50+00:00 2026-05-16T21:34:50+00:00

For the purpose of security-oriented source code review, I’m interested in finding (comprehensively) all

  • 0

For the purpose of security-oriented source code review, I’m interested in finding (comprehensively) all ioctl commands that are registered in the Linux kernel. Also, I’d like to classify them as either accessible by administrators (e.g root), and which ones are accessible by unprivileged users.

I’m not sure if it would be easier to read the kernel source code or if there is some way to query the list in user-space. If I need to look in the kernel, what functions would I need to look for for registration of ioctls?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T21:34:50+00:00Added an answer on May 16, 2026 at 9:34 pm

    ioctls don’t actually get registered in the kernel, each type of file-like object has a different set of ioctls available.

    Most of the time they are implemented using a switch statement.

    So what you really need to do is:

    • Figure out what set of devices / file types are security-relevant – those devices only openable by root presumably don’t need such to be checked for root-exploits.
    • Work out what ioctls are available.

    In practice finding out what ioctls are available is nontrivial. Many devices have a man page which lists them, but others don’t, and the list may be incomplete.

    Usually there is a function somewhere with a big switch-statement. However there is a kind of “inheritance” whereby a lot of devices have several different kinds of ioctl implemented at different levels.

    The same “kind” of driver is usually implemented in several different types of hardware, and they often share quite a lot of code.

    For example, serial ports have their own ioctls defined in http://lxr.linux.no/#linux+v2.6.35/drivers/serial/serial_core.c#L1107

    But serial ports also potentially have ioctls defined on a per-driver basis, but as they are ttys, they also respond to tty ioctls.

    It’s differently structured for each subsystem because they have different behaviour.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I often read that one purpose of a VIEW is security: to allow some
I know that SSL certificate is used for security purpose of application so that
I know that there is code like this: http://www.java2s.com/Code/Android/Security/RSAencryptdecryptfunctionRSAECBPKCS1Padding.htm /* Copyright (c) 2010, Sungjin
The purpose I aming for is, that 2 seconds after my activity was started
The purpose of this code is to pull upgrade.zip from a central server, extract
for security purpose I do some queries in this way: SELECT avatar_data FROM users
Medium Security in IE8 states that third-party cookies that save information that can be
It seems like a general purpose need on the web that a page can
I have on security purpose application,i need some security while uninstalling an application please
I am developing an application for security purpose which has 1 requirement as Wipe

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.