[Bug 235122] rc.subr limits call breaks non-root usage

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jan 4 18:24:12 UTC 2021


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

Mateusz Piotrowski <0mp at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |0mp at FreeBSD.org

--- Comment #5 from Mateusz Piotrowski <0mp at FreeBSD.org> ---
I think that I've accidentally discovered a hack/workaround:

    $ limits -C default echo ok
    limits: setrlimit datasize: Operation not permitted
    $ limits -C nonexistent echo ok
    login class 'nonexistent' non-existent, using default
    limits: setrlimit datasize: Operation not permitted
    $ limits -C me echo ok
    login class 'me' non-existent, using current settings
    ok

It turns out that setting the login class to "me" causes limits(1) to only
print a warning, instead of failing. I am not sure why it is so. Please note
that I do in fact have a "me" entry in my ~/.login_conf.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-rc mailing list