mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Replace a suser() check with an explicit check for PRIV_NET_SETIFMTU.
This commit is contained in:
parent
b8c4cc421e
commit
bd146f1302
1 changed files with 2 additions and 1 deletions
|
|
@ -719,7 +719,8 @@ pppsioctl(ifp, cmd, data)
|
|||
* XXXRW: Isn't this suser() check redundant to the one at the ifnet
|
||||
* layer?
|
||||
*/
|
||||
if ((error = suser(td)) != 0)
|
||||
error = priv_check(td, PRIV_NET_SETIFMTU);
|
||||
if (error)
|
||||
break;
|
||||
if (ifr->ifr_mtu > PPP_MAXMTU)
|
||||
error = EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue