Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Jul 2015 21:41:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-fs@FreeBSD.org
Subject:   [Bug 161424] [nullfs] __getcwd() calls fail when used on nullfs mount
Message-ID:  <bug-161424-3630-zbBdqwBUbR@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-161424-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-161424-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-161424-3630-zbBdqwBUbR>