kern/186251: authpf(8) always fails with "error removing stale rulesets" on 10.0-RELEASE
Thomas Apel
thomas.apel at gmx.net
Wed Jan 29 18:20:02 UTC 2014
>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 at 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 at 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:
More information about the freebsd-bugs
mailing list