summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-07-02 15:44:30 +0000
committerrwatson <rwatson@FreeBSD.org>2007-07-02 15:44:30 +0000
commitbb6f1c3d9ba9c5a3452440ffdafda555b482e1b2 (patch)
treea6829e6848409dd6ed71a316c4ad90e027763530
parente95a48819f9b6d3b48a30f62ace338be6db7c580 (diff)
downloadFreeBSD-src-bb6f1c3d9ba9c5a3452440ffdafda555b482e1b2.zip
FreeBSD-src-bb6f1c3d9ba9c5a3452440ffdafda555b482e1b2.tar.gz
Continue pre-7.0 privilege cleanup: update suser(9) comments to be priv(9)
comments. Approved by: re (bmah)
-rw-r--r--sys/net/if_ppp.c4
-rw-r--r--sys/netinet/raw_ip.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c
index 24c381a..462b7c5 100644
--- a/sys/net/if_ppp.c
+++ b/sys/net/if_ppp.c
@@ -716,8 +716,8 @@ pppsioctl(ifp, cmd, data)
case SIOCSIFMTU:
/*
- * XXXRW: Isn't this suser() check redundant to the one at the ifnet
- * layer?
+ * XXXRW: Isn't this priv_check() check redundant to the one at the
+ * ifnet layer?
*/
error = priv_check(td, PRIV_NET_SETIFMTU);
if (error)
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c
index cd0f64a..1a1b4e0 100644
--- a/sys/netinet/raw_ip.c
+++ b/sys/netinet/raw_ip.c
@@ -349,7 +349,7 @@ rip_output(struct mbuf *m, struct socket *so, u_long dst)
* after it gives up privilege, so some caution is required. For options
* passed down to the IP layer via ip_ctloutput(), checks are assumed to be
* performed in ip_ctloutput() and therefore no check occurs here.
- * Unilaterally checking suser() here breaks normal IP socket option
+ * Unilaterally checking priv_check() here breaks normal IP socket option
* operations on raw sockets.
*
* When adding new socket options here, make sure to add access control
OpenPOWER on IntegriCloud