Displaying 20 results from an estimated 27 matches for "rlim".
Did you mean:
elim
2002 May 14
1
AIX capabilities not set
Hi,
we're in the process of setting up large-page support on IBM regattas,
but for large-page support the users have to have a set of extra
capabilities (CAP_BYPASS_RAC_VMM,CAP_PROPAGATE). This are configured
on a per user basis by listing which capability each user have in
/etc/security/user.
Unfortunately they don't get set when the users log in via OpenSSH
(3.1p1). Does anybody know
2013 Feb 23
2
Bug#701445: xcp-vncterm: ftbfs with eglibc-2.17
...on at least amd64 with
eglibc-2.17, but succeeds to build with eglibc-2.13. The
severity of this report may be raised before the jessie release.
The test rebuild was done together with GCC-4.8, so some issues
might be caused by the updated GCC as well.
main.c:545:19: error: storage size of 'rlim' isn't known
The full build log can be found at:
http://people.debian.org/~doko/logs-20130217/gcc48/xcp-vncterm_0.1-2_unstable_gcc48.log
The last lines of the build log are at the end of this report.
To install eglibc from experimental,
apt-get -t experimental install libc6-dev
To bui...
2009 Nov 25
4
Structural Equation Models(SEM)
...,
0.08003300, 0.11213013, 0.24646337, 0.03609901,
0.04900990, 0.03752475, 0.03609901, 0.31702970)
rn=c("R","L","I","M")
cn=c("R","L","I","M")
tcv=matrix(cmat,nrow=4,ncol=4,dimnames=list(rn,cn))
model.RLIM <- specify.model()
R -> f1, laddR, NA
L -> f1, laddL, NA
I -> f1, laddI, NA
M -> f1, laddM, NA
R <-> R, dR,NA
L <-> L, dL,NA
I <-> I, dI,NA
M <-> M, dM,NA
f1 <-> f1, df1,NA
sem.RLIM=sem(model.RLIM,tcv,101...
2000 Jun 13
2
2.2.1p1 / AIX 4.2.1.0.06 login nits
Hi.
New (2.1.1p1) login code is nicer on AIX (4.2.1.0.06). Thanks.
A couple of issues, though, which I haven't really dug into yet. I'm
wondering if anyone else has seen them? If not, I'll investigate &
report.
1. If I set "UseLogin" to "yes", everything seems fine except that
the authentication agent forwarding doesn't work. The "SSH"
2001 Oct 30
1
[PATCH] for solaris 2.6
...o the repository yet.
It may not be the best patch possible... basic problem is that
_LARGEFILE64_SOURCE needs to be defined on Solaris 2.6 if
AC_SYS_LARGEFILE ends up doing a '#define _FILE_OFFSET_BITS 64'
If _FILE_OFFSET_BITS == 64, then <sys/resource.h> will define a
'struct rlimit64' but NOT define a 'struct rlimit' leading to a
failure to compile ssh.c because 'struct rlimit' is not a complete
type.
When _LARGEFILE64_SOURCE is defined, it adds a #define rlimit rlimit64
so that uses of 'struct rlimit rlim;' will become 'struct rlimit64 rlim...
2002 Dec 27
1
RLIMIT_AS patch for FreeBSD
Hey,
I've just updated the FreeBSD dovecot port to the 0.99.4 beta release,
the following patch was needed as FreeBSD has setrlimit(2) but does not
define RLIMIT_AS (I believe). I switched the code the require both,
alternatively find a parallel option in the FreeBSD setrlimit(2) manual
page. ( http://www.freebsd.org/cgi/man.cgi?setrlimit )
You may be interested in integrating this patch.
--- src/lib/restrict-process-size.c...
1998 Nov 21
2
simple perl script bypasses limits
Any user with shell access, or with access to upload a cgi
script can exploit this to make machine thrash badly.
Seems to circumvent any limits in the kernel
Here are my settings
dlai@whale.home.org:/home/dlai?limit
cputime unlimited
filesize 20000 kbytes
datasize 8192 kbytes
stacksize 8192 kbytes
coredumpsize 1000000 kbytes
memoryuse 8192 kbytes
descriptors
2017 Apr 20
1
[PATCH] tests: Replace test-max-disks with several tests.
...it (EXIT_FAILURE);
+ guestfs_close (g);
+
+ exit (EXIT_SUCCESS);
+}
+
+/**
+ * Work out the maximum number of disks that could be added to the
+ * libguestfs appliance, based on these factors:
+ *
+ * =over 4
+ *
+ * =item the current backend
+ *
+ * =item the max number of open file descriptors (RLIMIT_NOFILE)
+ *
+ * =back
+ */
+static ssize_t
+get_max_disks (guestfs_h *g)
+{
+ ssize_t ret;
+ struct rlimit rlim;
+ /* We reserve a little bit of "headroom" because qemu uses more
+ * file descriptors than just the disk files.
+ */
+ const unsigned fd_headroom = 32;
+
+ ret = gu...
2001 Feb 08
0
openssh2.3.0p1 and /etc/limits
...lude <stdio.h>
+#include <utmp.h>
+#include <pwd.h>
+
+#include <sys/resource.h>
+#define LIMITS
+
+#ifdef LIMITS
+
+#ifndef LIMITS_FILE
+#define LIMITS_FILE "/etc/limits"
+#endif
+
+#define memzero(ptr, size) memset((void *)(ptr), 0, (size))
+
+#define LOGIN_ERROR_RLIMIT 1
+#define LOGIN_ERROR_LOGIN 2
+
+/* Set a limit on a resource */
+/*
+ * rlimit - RLIMIT_XXXX
+ * value - string value to be read
+ * multiplier - value*multiplier is the actual limit
+ */
+static int
+setrlimit_value(unsigned int rlimit, const char *value, unsigned int multiplier)
+{
+ struct r...
2003 Jan 17
0
Multiple problems with 2.2.7a-0.2
...accounts from my /etc/passwd and smbpasswd files, then
manually re-add them. I have an add user script defined in smb.conf:
add user script = /usr/sbin/useradd -g machines -c NTMachine -d
/dev/null -s /bin/false %m$ && /usr/bin/smbpasswd -a -m %m$
I also have
admin users = ajones, rlim, root
domain admin group = @root
Out of sheer desperation I have allowed root to log in (ie root is not an
invalid user), but the automatic adding of the computer to the domain
doesn't work.
Problem #3:
As far as I can tell, printer settings are supposed to work in 2.2.7a .
I have an HP41...
2001 Oct 26
2
problems building on solaris 2.6
Using the latest cvs sources, the compilation of ssh.c fails.
The 'struct rlimit rlim;' line is being expanded by cpp into
'struct rlimit64 rlim;' and there is no struct rlimit64 defined.
In order to get the struct rlimit64 to be included when the
#include <sys/resource.h>
is used, it appears to need the _LARGEFILE64_SOURCE symbol defined OR
it needs the...
2001 May 03
1
[PATCH]: Workaround a security leak on Windows
...==================================================================
RCS file: /cvs/openssh_cvs/ssh-agent.c,v
retrieving revision 1.54
diff -u -p -r1.54 ssh-agent.c
--- ssh-agent.c 2001/04/04 01:53:21 1.54
+++ ssh-agent.c 2001/05/03 12:19:50
@@ -714,6 +714,9 @@ main(int ac, char **av)
#ifdef HAVE_SETRLIMIT
struct rlimit rlim;
#endif
+#ifdef HAVE_CYGWIN
+ int prev_mask;
+#endif
pid_t pid;
char *shell, *format, *pidstr, pidstrbuf[1 + 3 * sizeof pid];
extern int optind;
@@ -805,10 +808,19 @@ main(int ac, char **av)
memset(&sunaddr, 0, sizeof(sunaddr));
sunaddr.sun_family = AF_UNIX;...
2001 Mar 28
1
Ext3 and LFS - possible? fatal?
Has anyone tried LFS (ie >2G files support) and Ext3 together?
Are there good reasons why this should/should not work?
I see the RH enterprise kernel patch set specifically does not attempt
both lfs and ext3, but the lfs patches themselves touch some reasonably
localised parts of ext2, so I would hope (without having dived in there
to test), that the ext3 changes would mirror that
2000 Sep 12
0
OpenSSH 2.2.0p1 port to QNX 4
...*******
*** 215,220 ****
--- 215,221 ----
original_real_uid = getuid();
original_effective_uid = geteuid();
+ #if !defined(__QNX__) || defined(__QNXNTO__)
/* If we are installed setuid root be careful to not drop core. */
if (original_real_uid != original_effective_uid) {
struct rlimit rlim;
***************
*** 222,227 ****
--- 223,229 ----
if (setrlimit(RLIMIT_CORE, &rlim) < 0)
fatal("setrlimit failed: %.100s", strerror(errno));
}
+ #endif /* !__QNX__ || __QNXNTO__ */
/*
* Use uid-swapping to give up root privileges for the duration of...
2004 Sep 15
1
RC2 zaptel compile problem
...nux/sched.h:261: error: storage size of `default_kioctx' isn't
known
include/linux/sched.h:286: error: storage size of `shared_pending' isn't
known
include/linux/sched.h:378: error: storage size of `wall_to_prev' isn't
known
include/linux/sched.h:502: error: storage size of `rlim' isn't known
include/linux/sched.h:510: error: storage size of `thread' isn't known
include/linux/sched.h:522: error: storage size of `pending' isn't known
include/linux/stat.h:68: error: storage size of `atime' isn't known
include/linux/stat.h:69: error: storage siz...
2007 Jul 11
1
make error R-5.1 on sun solaris
I hope this is enough information to determine the problem. Thanks in
advance for any help.
Configure goes ok (I think)
./configure --prefix=$HOME --without-iconv
R is now configured for sparc-sun-solaris2.9
Source directory: .
Installation directory: /home/dpowers
C compiler: gcc -g -O2
Fortran 77 compiler: f95 -g
C++ compiler: g++
2023 Jun 17
2
[PATCH] ssh-agent: add systemd socket-based activation
...ame[0])
unlink(socket_name);
@@ -2000,7 +2012,7 @@ int
main(int ac, char **av)
{
int c_flag = 0, d_flag = 0, D_flag = 0, k_flag = 0, s_flag = 0;
- int sock, ch, result, saved_errno;
+ int sock = 0, ch, result, saved_errno;
char *shell, *format, *pidstr, *agentsocket = NULL;
#ifdef HAVE_SETRLIMIT
struct rlimit rlim;
@@ -2015,6 +2027,9 @@ main(int ac, char **av)
struct pollfd *pfd = NULL;
size_t npfd = 0;
u_int maxfds;
+#ifdef WITH_SYSTEMD
+ int nfds = 0;
+#endif
/* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */
sanitise_stdfd();
@@ -2142,6 +2157,25 @@ main(i...
2007 Aug 16
0
[PATCH/RFC 2/4]Introduce a new field "guest" in task_struct
...e =3D cgtime =3D cputime_zero;
+ utime =3D stime =3D gtime =3D 0;
=
rcu_read_lock();
if (lock_task_sighand(task, &flags)) {
@@ -406,6 +413,7 @@
cmaj_flt =3D sig->cmaj_flt;
cutime =3D sig->cutime;
cstime =3D sig->cstime;
+ cgtime =3D sig->cgtime;
rsslim =3D sig->rlim[RLIMIT_RSS].rlim_cur;
=
/* add up live thread stats at the group level */
@@ -416,6 +424,7 @@
maj_flt +=3D t->maj_flt;
utime +=3D task_utime(t);
stime +=3D task_stime(t);
+ gtime +=3D task_gtime(t);
t =3D next_thread(t);
} while (t !=3D task);
=
@@ -423,6 +432,7...
2007 Aug 16
0
[PATCH/RFC 2/4]Introduce a new field "guest" in task_struct
...e =3D cgtime =3D cputime_zero;
+ utime =3D stime =3D gtime =3D 0;
=
rcu_read_lock();
if (lock_task_sighand(task, &flags)) {
@@ -406,6 +413,7 @@
cmaj_flt =3D sig->cmaj_flt;
cutime =3D sig->cutime;
cstime =3D sig->cstime;
+ cgtime =3D sig->cgtime;
rsslim =3D sig->rlim[RLIMIT_RSS].rlim_cur;
=
/* add up live thread stats at the group level */
@@ -416,6 +424,7 @@
maj_flt +=3D t->maj_flt;
utime +=3D task_utime(t);
stime +=3D task_stime(t);
+ gtime +=3D task_gtime(t);
t =3D next_thread(t);
} while (t !=3D task);
=
@@ -423,6 +432,7...
2018 Nov 19
2
[PATCH] openssl-compat: Test for OpenSSL_add_all_algorithms before using.
OpenSSL 1.1.0 has deprecated this function.
---
configure.ac | 1 +
openbsd-compat/openssl-compat.c | 2 ++
openbsd-compat/openssl-compat.h | 4 ++++
3 files changed, 7 insertions(+)
diff --git a/configure.ac b/configure.ac
index 3f7fe2cd..db2aade8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2710,6 +2710,7 @@ if test "x$openssl" = "xyes" ; then
])