diff options
author | Rene Ladan <rene@FreeBSD.org> | 2017-07-01 21:58:04 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2017-07-01 21:58:04 +0000 |
commit | ecf42402003bd8bdbec66f7dc1103f9909513ee3 (patch) | |
tree | 32ab83feca1ff00f3ffc6ca981a488aff0386969 /www/apache22-itk-mpm/files/mpm-itk-limits | |
parent | Mark BROKEN: size and checksum mismatch (diff) |
Remove expired ports:
2017-06-30 misc/p5-Geo-Coder-Many: deprecated and no longer maintained by upstream
2017-07-01 graphics/gimp-elsamuko-script: Broken for more than 2 years
2017-07-01 devel/anjuta-extras: Last release in 2013 and doesn't build with recent GTK+
2017-07-01 www/apache22-worker-mpm: Upstream propose EoL of apache 2.2.x during the next 12 months
2017-07-01 www/apache22-itk-mpm: Upstream propose EoL of apache 2.2.x during the next 12 months
2017-07-01 www/apache22-peruser-mpm: Upstream propose EoL of apache 2.2.x during the next 12 months
2017-07-01 www/apache22-event-mpm: Upstream propose EoL of apache 2.2.x during the next 12 months
Notes
Notes:
svn path=/head/; revision=444851
Diffstat (limited to 'www/apache22-itk-mpm/files/mpm-itk-limits')
-rw-r--r-- | www/apache22-itk-mpm/files/mpm-itk-limits | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/www/apache22-itk-mpm/files/mpm-itk-limits b/www/apache22-itk-mpm/files/mpm-itk-limits deleted file mode 100644 index b8a8c5b85e38..000000000000 --- a/www/apache22-itk-mpm/files/mpm-itk-limits +++ /dev/null @@ -1,53 +0,0 @@ ---- server/mpm/experimental/itk/Makefile.in 2011-07-01 10:33:45.000000000 +0000 -+++ server/mpm/experimental/itk/Makefile.in 2011-07-01 10:33:57.000000000 +0000 -@@ -1,5 +1,6 @@ - - LTLIBRARY_NAME = libitk.la - LTLIBRARY_SOURCES = itk.c -+LTLIBRARY_LIBADD = -lutil - - include $(top_srcdir)/build/ltlib.mk ---- server/mpm/experimental/itk/itk.c 2011-07-01 10:04:40.000000000 +0000 -+++ server/mpm/experimental/itk/itk.c 2011-07-01 10:17:19.000000000 +0000 -@@ -41,6 +41,8 @@ - #if APR_HAVE_SYS_TYPES_H - #include <sys/types.h> - #endif -+#include <pwd.h> -+#include <login_cap.h> - - #define CORE_PRIVATE - -@@ -1438,6 +1440,8 @@ - gid_t wanted_gid; - const char *wanted_username; - int err = 0; -+ struct passwd *pw; -+ login_cap_t *lc; - - itk_server_conf *sconf = - (itk_server_conf *) ap_get_module_config(r->server->module_config, &mpm_itk_module); -@@ -1481,6 +1485,23 @@ - wanted_username = unixd_config.user_name; - } - -+ if ((pw = getpwuid(wanted_uid)) == NULL) { -+ _DBG("crit: invalid uid: (%ld)", wanted_uid, strerror(errno)); -+ err = 1; -+ } -+ -+ /* -+ * Apply user resource limits based on login class. -+ */ -+ if ((lc = login_getclassbyname(pw->pw_class, pw)) == NULL) { -+ _DBG("failed to login_getclassbyname()", strerror(errno)); -+ err = 1; -+ } -+ if ((setusercontext(lc, pw, wanted_uid, LOGIN_SETRESOURCES)) != 0) { -+ _DBG("failed to setusercontext()", strerror(errno)); -+ err = 1; -+ } -+ - if (!err && wanted_uid != -1 && wanted_gid != -1 && (getuid() != wanted_uid || getgid() != wanted_gid)) { - if (setgid(wanted_gid)) { - _DBG("setgid(%d): %s", wanted_gid, strerror(errno)); |