From owner-freebsd-fs@freebsd.org Sun Jul 5 21:41:29 2015 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8194998ECB1 for ; Sun, 5 Jul 2015 21:41:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6CF9119FA for ; Sun, 5 Jul 2015 21:41:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t65LfTMs064032 for ; Sun, 5 Jul 2015 21:41:29 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-fs@FreeBSD.org Subject: [Bug 161424] [nullfs] __getcwd() calls fail when used on nullfs mount Date: Sun, 05 Jul 2015 21:41:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 8.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: berend@pobox.com X-Bugzilla-Status: In Progress X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-fs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jul 2015 21:41:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=161424 berend@pobox.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |berend@pobox.com --- Comment #8 from berend@pobox.com --- Still happens on latest 10.1 To repeat you need to be an unprivileged user. As root I get: r = 0x7fffffffe690, errno = 2 dir = /home/berend/sites/staging.xplainhosting.com As user berend I get: r = 0x0, errno = 13 dir = My setup: zpool name u1. Mounted as: /u1/home on /home (nullfs, local) Users reside in a postgresql which is made available via pam_pgsql and nss-pgsql.conf files. The latter appears to be inconsequential, because when a user is simply listed in /etc/passwd get the same error. For example this user: www:*:80:80::0:0:World Wide Web Owner:/nonexistent:/bin/sh I get: $ pwd /home/test # su www $ /tmp/a.out r = 0x0, errno = 13 dir = $ whoami www Hope this helps. -- You are receiving this mail because: You are the assignee for the bug.