Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jan 2014 18:13:50 GMT
From:      Thomas Apel <thomas.apel@gmx.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/186251: authpf(8) always fails with "error removing stale rulesets" on 10.0-RELEASE
Message-ID:  <201401291813.s0TIDoZb035414@oldred.freebsd.org>
Resent-Message-ID: <201401291820.s0TIK1xg023562@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         186251
>Category:       kern
>Synopsis:       authpf(8) always fails with "error removing stale rulesets" on 10.0-RELEASE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 29 18:20:01 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Thomas Apel
>Release:        10.0-RELEASE
>Organization:
>Environment:
FreeBSD freebsd 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
After upgrading from 9.1 to 10.0-RELEASE, authpf does not work anymore. The SSH session is immediately terminated after login and the syslog contains the following error message "error removing stale rulesets" (apparently something in remove_stale_rulesets() goes wrong):

root@freebsd:/var/log # tail -n 3 all.log 
Jan 29 16:30:13 freebsd sshd[1035]: Accepted keyboard-interactive/pam for test from 192.168.0.11 port 52213 ssh2
Jan 29 16:30:13 freebsd authpf[1039]: error removing stale rulesets
Jan 29 16:30:13 freebsd sshd[1038]: Received disconnect from 192.168.0.11: 11: disconnected by user
>How-To-Repeat:
I can reproduce the problem on a freshly installed system with the following minimal config (the same config works on both 9.1 and 9.2):

echo 'pf_enable="YES"' >> /etc/rc.conf
touch /etc/pf.conf
/etc/rc.d/pf start

mkdir /etc/authpf
touch /etc/authpf/authpf.conf
touch /etc/authpf/authpf.rules
mount -t fdescfs null /dev/fd

<create user "test">
echo /usr/sbin/authpf >> /etc/shells
chsh -s authpf test

<login as user "test" via SSH>
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



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