Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Aug 2009 05:18:12 GMT
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 167017 for review
Message-ID:  <200908050518.n755ICeN071594@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=167017

Change 167017 by trasz@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.
 	 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908050518.n755ICeN071594>