Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 May 2001 20:41:07 +0200 (CEST)
From:      Paul Herman <pherman@frenchfries.net>
To:        <freebsd-stable@FreeBSD.ORG>
Subject:   Re: sbsize in /etc/login.conf behaving strangely
Message-ID:  <Pine.BSF.4.33.0105042028110.9937-100000@husten.security.at12.de>
In-Reply-To: <Pine.BSF.4.33.0105040009260.17092-100000@husten.security.at12.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 4 May 2001, Paul Herman wrote:

> For the life of me I can't find out why login_getcapnum() is getting
> called on sbsize rather than login_getcapsize(), even though
> lib/libutil/login_class.c:58 has:
>
>     { "sbsize",       login_getcapsize, RLIMIT_SBSIZE   },

This is getting strange:

  bash-2.04$ grep sbsize /etc/login.conf
          :sbsize=4096K:\
  bash-2.04$ id
  uid=1000(pherman) gid=1000(users) groups=1000(users)
  bash-2.04$ limits -U pherman | grep sbsize
    sbsize               4096 bytes
  bash-2.04$ limits | grep sbsize
    sbsize            4194304 bytes

I have a case that I can reproduce in which a value "4096K" for sbsize
will give a "cannot create socket" error from within an FTP session,
but replacing "4096K" with "4194304" in /etc/login.conf no longer
gives the error.  I can't seem to track down where it's tripping up,
though.

-Paul.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0105042028110.9937-100000>