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
|
|
|
|
SIOCGIFNAME SIOCGIFCONF SIOCGIFFLAGS SIOCGIFADDR 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
|
|
|
# commonly used TTY ioctls
|
2015-12-22 19:39:34 +01:00
|
|
|
TIOCOUTQ FIOCLEX
|
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
|
|
|
|
SIOCADDRT SIOCDELRT SIOCRTMSG SIOCSIFLINK SIOCSIFFLAGS SIOCSIFADDR SIOCGIFDSTADDR
|
|
|
|
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
|
|
|
}')
|