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
|
2015-12-22 19:39:34 +01:00
|
|
|
SIOCSIFPFLAGS SIOCGIFPFLAGS SIOCDIFADDR SIOCSIFHWBROADCAST SIOCGIFBR SIOCSIFBR
|
|
|
|
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-04-26 19:21:51 +02:00
|
|
|
define(`unpriv_unix_sock_ioctls', `{TIOCOUTQ FIOCLEX TCGETS TIOCGWINSZ TIOCSWINSZ FIONREAD }')
|
2016-04-15 19:54:40 +02:00
|
|
|
|
2016-02-22 21:31:57 +01:00
|
|
|
# commonly used TTY ioctls
|
|
|
|
define(`unpriv_tty_ioctls', `{ TIOCOUTQ FIOCLEX }')
|