PERFORCE change 167017 for review
Edward Tomasz Napierala
trasz at FreeBSD.org
Wed Aug 5 05:18:13 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=167017
Change 167017 by trasz at trasz_anger on 2009/08/05 05:17:58
Don't add group rules if group accounting is disabled.
Affected files ...
.. //depot/projects/soc2009/trasz_limits/sys/kern/kern_hrl.c#42 edit
Differences ...
==== //depot/projects/soc2009/trasz_limits/sys/kern/kern_hrl.c#42 (text+ko) ====
@@ -919,6 +919,10 @@
KASSERT(hrl_rule_fully_specified(rule), ("rule not fully specified"));
+ if ((rule->hr_subject == HRL_SUBJECT_GROUP ||
+ rule->hr_per == HRL_SUBJECT_GROUP) && !hrl_group_accounting)
+ return (EOPNOTSUPP);
+
/*
* Make sure there are no duplicated rules.
*/
More information about the p4-projects
mailing list