• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# socket ioctls allowed to unprivileged apps
2define(`unpriv_sock_ioctls', `
3{
4# all socket ioctls except:
5# 1) the Mac address SIOCGIFHWADDR 0x8927
6# 2) device private SIOCDEVPRIVATE-SIOCDEVPRIVLAST 0x89F0-0x89FF
7# 3) protocol private SIOCPROTOPRIVATE-SIOCPROTOPRIVLAST 0x89E0-0x89EF
80x8900-0x8926 0x8928-0x89DF
9# all wireless extensions ioctls except:
10# 1) get/set essid IOCSIWESSID 0x8B1A SIOCGIWESSID 0x8B1B
11# 2) device private ioctls SIOCIWFIRSTPRIV-SIOCIWLASTPRIV 0x8BE0-0x8BFF
120x8B00-0x8B09 0x8B1C-0x8BDF
13# commonly used TTY ioctls
140x5411 0x5451
15}')
16
17define(`TCGETS', `0x00005401')
18define(`TIOCOUTQ', `0x00005411')
19define(`TIOCGWINSZ', `0x00005413')
20define(`TIOCSWINSZ', `0x00005414')
21define(`FIONREAD', `0x0000541b')
22define(`FIOCLEX', `0x00005451')
23
24# commonly used ioctls on unix sockets
25define(`unpriv_unix_sock_ioctls', `{ TIOCOUTQ FIOCLEX TCGETS TIOCGWINSZ TIOCSWINSZ FIONREAD }')
26