2015-06-06 00:28:55 +02:00
|
|
|
# socket ioctls allowed to unprivileged apps
|
|
|
|
define(`unpriv_sock_ioctls', `
|
|
|
|
{
|
2015-12-22 19:39:34 +01:00
|
|
|
# Socket ioctls for gathering information about the interface
|
2016-06-14 12:57:02 +02:00
|
|
|
SIOCGSTAMP SIOCGSTAMPNS
|
2016-04-13 19:09:11 +02:00
|
|
|
SIOCGIFNAME SIOCGIFCONF SIOCGIFFLAGS SIOCGIFADDR SIOCGIFDSTADDR SIOCGIFBRDADDR
|
2016-01-08 22:37:53 +01:00
|
|
|
SIOCGIFNETMASK SIOCGIFMTU SIOCGIFINDEX SIOCGIFCOUNT SIOCGIFTXQLEN
|
2015-12-22 19:39:34 +01:00
|
|
|
# Wireless extension ioctls. Primarily get functions.
|
|
|
|
SIOCGIWNAME SIOCGIWFREQ SIOCGIWMODE SIOCGIWSENS SIOCGIWRANGE SIOCGIWPRIV
|
|
|
|
SIOCGIWSTATS SIOCGIWSPY SIOCSIWTHRSPY SIOCGIWTHRSPY SIOCGIWRATE SIOCGIWRTS
|
|
|
|
SIOCGIWFRAG SIOCGIWTXPOW SIOCGIWRETRY SIOCGIWPOWER
|
2015-06-06 00:28:55 +02:00
|
|
|
}')
|
2015-12-07 17:30:43 +01:00
|
|
|
|
2015-12-22 19:39:34 +01:00
|
|
|
# socket ioctls never allowed to unprivileged apps
|
2015-12-07 17:30:43 +01:00
|
|
|
define(`priv_sock_ioctls', `
|
|
|
|
{
|
2016-01-05 17:01:53 +01:00
|
|
|
# qualcomm rmnet ioctls
|
|
|
|
WAN_IOC_ADD_FLT_RULE WAN_IOC_ADD_FLT_INDEX
|
2015-12-22 19:39:34 +01:00
|
|
|
# socket ioctls
|
2016-04-13 19:09:11 +02:00
|
|
|
SIOCADDRT SIOCDELRT SIOCRTMSG SIOCSIFLINK SIOCSIFFLAGS SIOCSIFADDR
|
2015-12-22 19:39:34 +01:00
|
|
|
SIOCSIFDSTADDR SIOCSIFBRDADDR SIOCSIFNETMASK SIOCGIFMETRIC SIOCSIFMETRIC SIOCGIFMEM
|
|
|
|
SIOCSIFMEM SIOCSIFMTU SIOCSIFNAME SIOCSIFHWADDR SIOCGIFENCAP SIOCSIFENCAP
|
2016-01-08 22:37:53 +01:00
|
|
|
SIOCGIFHWADDR SIOCGIFSLAVE SIOCSIFSLAVE SIOCADDMULTI SIOCDELMULTI
|
2016-05-17 06:12:17 +02:00
|
|
|
SIOCSIFPFLAGS SIOCGIFPFLAGS SIOCDIFADDR SIOCSIFHWBROADCAST SIOCKILLADDR SIOCGIFBR SIOCSIFBR
|
2015-12-22 19:39:34 +01:00
|
|
|
SIOCSIFTXQLEN SIOCETHTOOL SIOCGMIIPHY SIOCGMIIREG SIOCSMIIREG SIOCWANDEV
|
|
|
|
SIOCOUTQNSD SIOCDARP SIOCGARP SIOCSARP SIOCDRARP SIOCGRARP SIOCSRARP SIOCGIFMAP
|
|
|
|
SIOCSIFMAP SIOCADDDLCI SIOCDELDLCI SIOCGIFVLAN SIOCSIFVLAN SIOCBONDENSLAVE
|
|
|
|
SIOCBONDRELEASE SIOCBONDSETHWADDR SIOCBONDSLAVEINFOQUERY SIOCBONDINFOQUERY
|
|
|
|
SIOCBONDCHANGEACTIVE SIOCBRADDBR SIOCBRDELBR SIOCBRADDIF SIOCBRDELIF SIOCSHWTSTAMP
|
|
|
|
# device and protocol specific ioctls
|
|
|
|
SIOCDEVPRIVATE-SIOCDEVPRIVLAST
|
|
|
|
SIOCPROTOPRIVATE-SIOCPROTOPRIVLAST
|
|
|
|
# Wireless extension ioctls
|
|
|
|
SIOCSIWCOMMIT SIOCSIWNWID SIOCSIWFREQ SIOCSIWMODE SIOCSIWSENS SIOCSIWRANGE
|
|
|
|
SIOCSIWPRIV SIOCSIWSTATS SIOCSIWSPY SIOCSIWAP SIOCGIWAP SIOCSIWMLME SIOCGIWAPLIST
|
|
|
|
SIOCSIWSCAN SIOCGIWSCAN SIOCSIWESSID SIOCGIWESSID SIOCSIWNICKN SIOCGIWNICKN
|
|
|
|
SIOCSIWRATE SIOCSIWRTS SIOCSIWFRAG SIOCSIWTXPOW SIOCSIWRETRY SIOCSIWENCODE
|
|
|
|
SIOCGIWENCODE SIOCSIWPOWER SIOCSIWGENIE SIOCGIWGENIE SIOCSIWAUTH SIOCGIWAUTH
|
|
|
|
SIOCSIWENCODEEXT SIOCGIWENCODEEXT SIOCSIWPMKSA
|
|
|
|
# Dev private ioctl i.e. hardware specific ioctls
|
|
|
|
SIOCIWFIRSTPRIV-SIOCIWLASTPRIV
|
2015-12-07 17:30:43 +01:00
|
|
|
}')
|
2016-02-22 21:31:57 +01:00
|
|
|
|
2016-04-15 19:54:40 +02:00
|
|
|
# commonly used ioctls on unix sockets
|
2016-11-22 23:22:43 +01:00
|
|
|
define(`unpriv_unix_sock_ioctls', `{
|
2018-10-17 20:04:06 +02:00
|
|
|
TIOCOUTQ FIOCLEX FIONCLEX TCGETS TIOCGWINSZ TIOCSWINSZ FIONREAD
|
2016-11-22 23:22:43 +01:00
|
|
|
}')
|
2016-04-15 19:54:40 +02:00
|
|
|
|
2016-02-22 21:31:57 +01:00
|
|
|
# commonly used TTY ioctls
|
2016-11-22 23:22:43 +01:00
|
|
|
# merge with unpriv_unix_sock_ioctls?
|
|
|
|
define(`unpriv_tty_ioctls', `{
|
2020-11-08 05:23:08 +01:00
|
|
|
TIOCOUTQ FIOCLEX FIONCLEX TCGETS TCSETS TCSETSW TCSETSF TIOCGWINSZ TIOCSWINSZ
|
|
|
|
TIOCSCTTY TCFLSH TIOCSPGRP TIOCGPGRP
|
2016-11-22 23:22:43 +01:00
|
|
|
}')
|
2016-07-15 20:56:35 +02:00
|
|
|
|
|
|
|
# point to point ioctls
|
|
|
|
define(`ppp_ioctls', `{
|
|
|
|
PPPIOCGL2TPSTATS PPPIOCGCHAN PPPIOCATTCHAN PPPIOCDISCONN
|
|
|
|
PPPIOCCONNECT PPPIOCSMRRU PPPIOCDETACH PPPIOCATTACH
|
|
|
|
PPPIOCNEWUNIT PPPIOCGIDLE PPPIOCSDEBUG PPPIOCGDEBUG
|
|
|
|
PPPIOCSACTIVE PPPIOCSPASS PPPIOCSNPMODE PPPIOCGNPMODE
|
|
|
|
PPPIOCSCOMPRESS PPPIOCXFERUNIT PPPIOCSXASYNCMAP
|
|
|
|
PPPIOCGXASYNCMAP PPPIOCSMAXCID PPPIOCSMRU PPPIOCGMRU
|
|
|
|
PPPIOCSRASYNCMAP PPPIOCGRASYNCMAP PPPIOCGUNIT PPPIOCSASYNCMAP
|
|
|
|
PPPIOCGASYNCMAP PPPIOCSFLAGS PPPIOCGFLAGS PPPIOCGCALLINFO
|
|
|
|
PPPIOCBUNDLE PPPIOCGMPFLAGS PPPIOCSMPFLAGS PPPIOCSMPMTU
|
|
|
|
PPPIOCSMPMRU PPPIOCGCOMPRESSORS PPPIOCSCOMPRESSOR PPPIOCGIFNAME
|
|
|
|
}')
|
2020-09-03 21:07:33 +02:00
|
|
|
|
|
|
|
# unprivileged binder ioctls
|
|
|
|
define(`unpriv_binder_ioctls', `{
|
|
|
|
BINDER_WRITE_READ BINDER_SET_IDLE_TIMEOUT BINDER_SET_MAX_THREADS
|
|
|
|
BINDER_SET_IDLE_PRIORITY BINDER_SET_CONTEXT_MGR BINDER_THREAD_EXIT
|
|
|
|
BINDER_VERSION BINDER_GET_NODE_DEBUG_INFO BINDER_GET_NODE_INFO_FOR_REF
|
2021-04-20 07:55:33 +02:00
|
|
|
BINDER_SET_CONTEXT_MGR_EXT BINDER_ENABLE_ONEWAY_SPAM_DETECTION
|
2020-09-03 21:07:33 +02:00
|
|
|
}')
|