Deleted Added
full compact
altq_cbq.c (148887) altq_cbq.c (164033)
1/* $FreeBSD: head/sys/contrib/altq/altq/altq_cbq.c 148887 2005-08-09 10:20:02Z rwatson $ */
1/* $FreeBSD: head/sys/contrib/altq/altq/altq_cbq.c 164033 2006-11-06 13:42:10Z rwatson $ */
2/* $KAME: altq_cbq.c,v 1.19 2003/09/17 14:23:25 kjc Exp $ */
3
4/*
5 * Copyright (c) Sun Microsystems, Inc. 1993-1998 All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:

--- 1047 unchanged lines hidden (view full) ---

1057 int error = 0;
1058
1059 /* check cmd for superuser only */
1060 switch (cmd) {
1061 case CBQ_GETSTATS:
1062 /* currently only command that an ordinary user can call */
1063 break;
1064 default:
2/* $KAME: altq_cbq.c,v 1.19 2003/09/17 14:23:25 kjc Exp $ */
3
4/*
5 * Copyright (c) Sun Microsystems, Inc. 1993-1998 All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:

--- 1047 unchanged lines hidden (view full) ---

1057 int error = 0;
1058
1059 /* check cmd for superuser only */
1060 switch (cmd) {
1061 case CBQ_GETSTATS:
1062 /* currently only command that an ordinary user can call */
1063 break;
1064 default:
1065#if (__FreeBSD_version > 400000)
1065#if (__FreeBSD_version > 700000)
1066 error = priv_check(p, PRIV_ALTQ_MANAGE);
1067#elsif (__FreeBSD_version > 400000)
1066 error = suser(p);
1067#else
1068 error = suser(p->p_ucred, &p->p_acflag);
1069#endif
1070 if (error)
1071 return (error);
1072 break;
1073 }

--- 110 unchanged lines hidden ---
1068 error = suser(p);
1069#else
1070 error = suser(p->p_ucred, &p->p_acflag);
1071#endif
1072 if (error)
1073 return (error);
1074 break;
1075 }

--- 110 unchanged lines hidden ---