Skip to content
Snippets Groups Projects
Select Git revision
  • 54a4aab47ce6ea70402e19d038dc0f4817f8ab9d
  • test default
2 results

ioctl_macros

Blame
  • user avatar
    Jeff Vander Stoep authored and Jeffrey Vander Stoep committed
    Create a macro of unprivileged ioctls including
    - All common socket ioctls except MAC address
    - All wireless extensions ioctls except get/set ESSID
    - Some commonly used tty ioctls
    
    Bug: 21657002
    Change-Id: Ib08be9cb70d08c1fa2c8bddbae519e7c2df5293c
    de9b5301
    History
    ioctl_macros 338 B
    # socket ioctls allowed to unprivileged apps
    define(`unpriv_sock_ioctls', `
    {
    # all socket ioctls except the Mac address SIOCGIFHWADDR 0x8927
    0x8900-0x8926 0x8928-0x89ff
    # all wireless extensions ioctls except get/set essid
    # IOCSIWESSID 0x8B1A SIOCGIWESSID 0x8B1B
    0x8B00-0x8B09 0x8B1C-0x8BFF
    # commonly used TTY ioctls
    0x5411 0x5451
    }')