patch-2.4.0-test8 linux/net/ax25/ax25_uid.c
Next file: linux/net/core/dev.c
Previous file: linux/net/ax25/ax25_route.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Mon Aug 28 21:16:05 2000
- Orig file:
v2.4.0-test7/linux/net/ax25/ax25_uid.c
- Orig date:
Tue Nov 23 22:42:21 1999
diff -u --recursive --new-file v2.4.0-test7/linux/net/ax25/ax25_uid.c linux/net/ax25/ax25_uid.c
@@ -78,7 +78,7 @@
return -ENOENT;
case SIOCAX25ADDUID:
- if (!suser())
+ if (!capable(CAP_NET_ADMIN))
return -EPERM;
if (ax25_findbyuid(sax->sax25_uid))
return -EEXIST;
@@ -95,7 +95,7 @@
return 0;
case SIOCAX25DELUID:
- if (!suser())
+ if (!capable(CAP_NET_ADMIN))
return -EPERM;
for (ax25_uid = ax25_uid_list; ax25_uid != NULL; ax25_uid = ax25_uid->next) {
if (ax25cmp(&sax->sax25_call, &ax25_uid->call) == 0)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)