From nobody@FreeBSD.org  Wed May 30 12:27:45 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 1453B16A503
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 May 2007 12:27:45 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 0021413C465
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 May 2007 12:27:44 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l4UCRiTh040183
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 May 2007 12:27:44 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l4UCRi1K040182;
	Wed, 30 May 2007 12:27:44 GMT
	(envelope-from nobody)
Message-Id: <200705301227.l4UCRi1K040182@www.freebsd.org>
Date: Wed, 30 May 2007 12:27:44 GMT
From: Erik<fastdeverik@hotmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: PortACL Rules causing crash
X-Send-Pr-Version: www-3.0

>Number:         113157
>Category:       kern
>Synopsis:       [mac] PortACL Rules causing crash
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    rwatson
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 30 12:30:10 GMT 2007
>Closed-Date:    Mon Feb 16 13:20:15 UTC 2009
>Last-Modified:  Mon Feb 16 13:20:15 UTC 2009
>Originator:     Erik
>Release:        6.2-STABLE
>Organization:
FAST
>Environment:
FreeBSD www.maadnet.net 6.2-STABLE FreeBSD 6.2-STABLE #3: Tue May 29 07:54:13 EDT 2007     root@www.maadnet.net:/usr/obj/usr/src/sys/MAADNET.NET  i386

>Description:
My ssh daemon is running on port 8691, uid for that process is 22, gid is 22.
Kernel security is enabled and kern.securelevel is set as 1337.

Compiled kernel with options:
options MAC
options MAC_PORTACL

Specified kernel tunables in sysctl.conf:
security.mac.portacl.enabled=1
security.mac.portacl.rules=uid:80:tcp:80,uid:80:tcp:443,uid:22:tcp:8691

On system boot, when the tunables are read from sysctl.conf, a page error occurs when reading the rules. I believe this to happen because the highest port that portacl is configured (by default) to watch is 1023 but my ruleset was configured to have portacl active on 8691.



>How-To-Repeat:
See problem description.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->rwatson 
Responsible-Changed-By: rwatson 
Responsible-Changed-When: Tue Dec 23 09:58:10 UTC 2008 
Responsible-Changed-Why:  
Grab ownership of this PR as I wrote mac_portacl.  I realize it's been a bit 
but (a) can you reproduce this on a more recent version, and if so, could 
you (b) write down the faulting address from the panic message and append 
that to the PR?  If you have a serial console and can easily copy and paste, 
a copy of the entire fault message and a DDB stack trace would be great 
(perhaps too early in boot for that?) but just the fault address would be 
useful.  Thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=113157 
State-Changed-From-To: open->feedback 
State-Changed-By: rwatson 
State-Changed-When: Tue Dec 23 10:00:18 UTC 2008 
State-Changed-Why:  


http://www.freebsd.org/cgi/query-pr.cgi?pr=113157 
State-Changed-From-To: feedback->closed 
State-Changed-By: rwatson 
State-Changed-When: Mon Feb 16 13:15:54 UTC 2009 
State-Changed-Why:  
Closed due to feedback timeout; this bug has most likely already been 
fixed due to other improvements in mac_portacl.  However, if you are 
still experiencing this problem please follow up on this PR and I will 
re-opened.  If possibly please confirm on a recent 6.x or 7.x 
release.  Thanks! 


http://www.freebsd.org/cgi/query-pr.cgi?pr=113157 
>Unformatted:
