ugidfw_vnode.c (108376) | ugidfw_vnode.c (109623) |
---|---|
1/*- 2 * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson 3 * Copyright (c) 2001, 2002 Networks Associates Technology, Inc. 4 * All rights reserved. 5 * 6 * This software was developed by Robert Watson for the TrustedBSD Project. 7 * 8 * This software was developed for the FreeBSD Project in part by Network --- 17 unchanged lines hidden (view full) --- 26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * | 1/*- 2 * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson 3 * Copyright (c) 2001, 2002 Networks Associates Technology, Inc. 4 * All rights reserved. 5 * 6 * This software was developed by Robert Watson for the TrustedBSD Project. 7 * 8 * This software was developed for the FreeBSD Project in part by Network --- 17 unchanged lines hidden (view full) --- 26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * |
34 * $FreeBSD: head/sys/security/mac_bsdextended/mac_bsdextended.c 108376 2002-12-28 23:41:18Z rwatson $ | 34 * $FreeBSD: head/sys/security/mac_bsdextended/mac_bsdextended.c 109623 2003-01-21 08:56:16Z alfred $ |
35 */ 36/* 37 * Developed by the TrustedBSD Project. 38 * "BSD Extended" MAC policy, allowing the administrator to impose 39 * mandatory rules regarding users and some system objects. 40 * 41 * XXX: Much locking support required here. 42 */ --- 116 unchanged lines hidden (view full) --- 159 160 error = mac_bsdextended_rule_valid(&temprule); 161 if (error) 162 return (error); 163 164 if (rules[index] == NULL) { 165 /* printf("addition\n"); */ 166 MALLOC(ruleptr, struct mac_bsdextended_rule *, | 35 */ 36/* 37 * Developed by the TrustedBSD Project. 38 * "BSD Extended" MAC policy, allowing the administrator to impose 39 * mandatory rules regarding users and some system objects. 40 * 41 * XXX: Much locking support required here. 42 */ --- 116 unchanged lines hidden (view full) --- 159 160 error = mac_bsdextended_rule_valid(&temprule); 161 if (error) 162 return (error); 163 164 if (rules[index] == NULL) { 165 /* printf("addition\n"); */ 166 MALLOC(ruleptr, struct mac_bsdextended_rule *, |
167 sizeof(*ruleptr), M_MACBSDEXTENDED, M_WAITOK | | 167 sizeof(*ruleptr), M_MACBSDEXTENDED, |
168 M_ZERO); 169 *ruleptr = temprule; 170 rules[index] = ruleptr; 171 if (index+1 > rule_slots) 172 rule_slots = index+1; 173 rule_count++; 174 } else { 175 /* printf("replacement\n"); */ --- 584 unchanged lines hidden --- | 168 M_ZERO); 169 *ruleptr = temprule; 170 rules[index] = ruleptr; 171 if (index+1 > rule_slots) 172 rule_slots = index+1; 173 rule_count++; 174 } else { 175 /* printf("replacement\n"); */ --- 584 unchanged lines hidden --- |