[Bug 161424] [nullfs] __getcwd() calls fail when used on nullfs mount

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jul 5 21:41:29 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=161424

berend at pobox.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |berend at pobox.com

--- Comment #8 from berend at 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.


More information about the freebsd-fs mailing list