read limits.conf (from /etc/security by default, overridable in
login.conf) git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14887 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997 - 2004 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1997 - 2005 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -481,6 +481,14 @@ do_login(const struct passwd *pwd, char *tty, char *ttyn)
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
if(rootlogin == 0) {
|
||||||
|
const char *file = login_conf_get_string("limits");
|
||||||
|
if(file == NULL)
|
||||||
|
file = _PATH_LIMITS_CONF;
|
||||||
|
|
||||||
|
read_limits_conf(file, pwd);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef HAVE_SETPCRED
|
#ifdef HAVE_SETPCRED
|
||||||
if (setpcred (pwd->pw_name, NULL) == -1)
|
if (setpcred (pwd->pw_name, NULL) == -1)
|
||||||
warn("setpcred(%s)", pwd->pw_name);
|
warn("setpcred(%s)", pwd->pw_name);
|
||||||
|
Reference in New Issue
Block a user