net-misc/0000755000000000000000000000000011025221070011261 5ustar rootrootnet-misc/netkit-rsh/0000755000000000000000000000000011025221212013347 5ustar rootrootnet-misc/netkit-rsh/Manifest0000644000000000000000000000525411025221212015046 0ustar rootrootAUX netkit-rsh-0.17-arg_max.patch 2095 RMD160 18b7ab328280559640f7e6cd0a2e1c23969b3a4c SHA1 79a59b2f11fe280aa9925d904602781ddf042f79 SHA256 afa542d2d761af57e06ea8a2c7170bc34162040598b01e1d7877b854baa83e58 AUX rexec.pamd-include 303 RMD160 5afd89107abe2c2011a84e0cc92d1739bd05afe3 SHA1 f9f7830344180f022c444585a9eecb5352c4b5f5 SHA256 97dcaaa56a442f022cc981a484b66d570026b46e2d08e62fff5c5bd5e0fcedf2 AUX rexec.pamd-pambase 251 RMD160 5081a45281096072f66cf41e1a22a2ef030232a3 SHA1 ca988774302c3d40ddd11b6d810def30ed2c9c1f SHA256 3227d179ed7dc96b4ba300f462a623e798d43876f22fe69cab3a4ffbcf3005ee AUX rexec.xinetd 280 RMD160 d3b6fb472d0367ee4427ed998f38121b11b9f149 SHA1 700e2f210b077d36ca5f3dbdc47480d7f6c0e8e2 SHA256 52e523dacdf1e8f6b296e97a6a6a33a3addbccf7cbd8a94e8eeaaf20ef644bc1 AUX rlogin.pamd-include 386 RMD160 b529dd9cf418a97bf451e213f28ac19e8fa1167d SHA1 b937057be43eeec3f6465d7c82ac8bf74c0371a8 SHA256 94a3d3f4d64d4274ccb87bb85e02cb5d34cc28e181b1e694b49019d07f6c7dc0 AUX rlogin.pamd-pambase 347 RMD160 5d14a98d4ef1dff9d7f50e9a2ba5a41d75cd643d SHA1 80a4f6cdde450af7992490ccd5ad318afa8e2102 SHA256 582605870bd78635d95fa1f5cc9de2bb8e451f922638dc5b5b299acd4503a7eb AUX rlogin.xinetd 282 RMD160 9545db5264546debeb100ab883b325fed2171fef SHA1 e974123bd7b6b0c1e6194ad49f8729740ca200a2 SHA256 13bd540eb312acada08f778d29c05bbffb81138962c5b9f2d638ce905ac54312 AUX rsh.pamd-include 412 RMD160 10a374830e306b9428d4671adf77e53005bd5f54 SHA1 41044fb5d0ab3efb9c2cd82e2e777ed3e33b244f SHA256 e7c3297b66f4d2f7af958ff831eb0973b1b54438e4e5658141d28e52417e3a5d AUX rsh.pamd-pambase 370 RMD160 ebd250129318394af10b5fc16e11b21fa70311e7 SHA1 6cf0f83926068f735b6943012da48755859222a3 SHA256 d46b192755d3f27c0268eb000aff4548c378cba6a448431bc10f39b6ae4d444f AUX rsh.xinetd 279 RMD160 8a244fdbb32b3bdb6b15818f91d00c4f155196ff SHA1 a3636b487f4db1748a14c96d424dcaa3c1c92d3b SHA256 0b4ca94d07628a9096400846bae40c80c4ab92123bfd2722d07e364c48fa00dd DIST netkit-rsh-0.17-patches-1.0.tar.bz2 13612 RMD160 2f4f8913e4fd8b38dc4a0e8c0b7426ebd17fc61a SHA1 bea076c1262952d930b7352dc8e1d15f7314e85e SHA256 2b1281e8bfaa871de3e4ad26357cc04e4e0537dcb25b8b2cf87a9cdb630bf43d DIST netkit-rsh-0.17.tar.gz 58268 RMD160 288dd91c84fcebde8e401d3d0bf93d99c3bac73e SHA1 022185bf31af23abbb6d4f34621f94d9d0c4b6ea SHA256 edcac7fa18015f0bc04e573f3f54ae3b638d71335df1ad7dae692779914ad669 DIST rexec-1.5.tar.gz 18469 RMD160 713ed4e6ec125f8f0b8056eb53b41e4e34e6c29b SHA1 cee670cccf50741022f453b9ae42f3823418b5d2 SHA256 9bcf9986eb9637d1b8e8ab62a61c80f3422d628e837e72c6ad8c2e38604ccaf4 EBUILD netkit-rsh-0.17-r9.ebuild 1946 RMD160 077f8146c457d9eed9dcc7998ab96d1bafdd33e2 SHA1 da04080cff7012c5944fd8ee413063d7c3b628e2 SHA256 009502449179a4510ed17d3eee1089fa3baded0130f3cbf562fc4b829bf8ecb1 net-misc/netkit-rsh/files/0000755000000000000000000000000011025221124014453 5ustar rootrootnet-misc/netkit-rsh/files/rlogin.pamd-pambase0000644000000000000000000000053310756657542020252 0ustar rootroot#%PAM-1.0 # For root login to succeed here with pam_securetty, "rlogin" must be # listed in /etc/securetty. auth required pam_securetty.so auth sufficient pam_rhosts_auth.so auth include system-remote-login account include system-remote-login password include system-remote-login session include system-remote-login net-misc/netkit-rsh/files/rsh.xinetd0000644000000000000000000000042707712522576016516 0ustar rootrootservice shell { socket_type = stream protocol = tcp wait = no user = root group = tty server = /usr/sbin/in.rshd log_on_success = PID HOST USERID EXIT DURATION log_on_failure = USERID ATTEMPT disable = yes } net-misc/netkit-rsh/files/rlogin.pamd-include0000644000000000000000000000060210244072466020246 0ustar rootroot#%PAM-1.0 # For root login to succeed here with pam_securetty, "rlogin" must be # listed in /etc/securetty. auth required pam_nologin.so auth required pam_securetty.so auth required pam_env.so auth sufficient pam_rhosts_auth.so auth include system-auth account include system-auth password include system-auth session include system-auth net-misc/netkit-rsh/files/rexec.xinetd0000644000000000000000000000043007712522576017022 0ustar rootrootservice exec { socket_type = stream protocol = tcp wait = no user = root group = tty server = /usr/sbin/in.rexecd log_on_success = PID HOST USERID EXIT DURATION log_on_failure = USERID ATTEMPT disable = yes } net-misc/netkit-rsh/files/rexec.pamd-pambase0000644000000000000000000000037310756657542020070 0ustar rootroot# For root login to succeed here with pam_securetty, "rexec" must be # listed in /etc/securetty. auth required pam_securetty.so auth include system-remote-login account include system-remote-login session include system-remote-login net-misc/netkit-rsh/files/rlogin.xinetd0000644000000000000000000000043207712522576017210 0ustar rootrootservice login { socket_type = stream protocol = tcp wait = no user = root group = tty server = /usr/sbin/in.rlogind log_on_success = PID HOST USERID EXIT DURATION log_on_failure = USERID ATTEMPT disable = yes } net-misc/netkit-rsh/files/netkit-rsh-0.17-arg_max.patch0000644000175000001440000000405711025220766022472 0ustar billydvusersdiff -Naur ./rexecd/rexecd.c ../copy/rexecd/rexecd.c --- ./rexecd/rexecd.c 2000-07-23 06:16:22.000000000 +0200 +++ ../copy/rexecd/rexecd.c 2008-06-13 21:33:11.000000000 +0200 @@ -223,7 +223,8 @@ static void doit(struct sockaddr_in *fromp) { - char cmdbuf[ARG_MAX+1]; + char *cmdbuf; + long cmdbuflen; char user[16], pass[16]; struct passwd *pwd; int s = -1; @@ -242,6 +243,18 @@ #endif #endif /* USE_PAM */ + cmdbuflen = sysconf (_SC_ARG_MAX); + if (!(cmdbuflen > 0)) { + syslog (LOG_ERR, "sysconf (_SC_ARG_MAX) failed"); + fatal ("sysconf (_SC_ARG_MAX) failed\n"); + } + + cmdbuf = malloc (++cmdbuflen); + if (cmdbuf == NULL) { + syslog (LOG_ERR, "Could not allocate space for cmdbuf"); + fatal ("Could not allocate space for cmdbuf\n"); + } + signal(SIGINT, SIG_DFL); signal(SIGQUIT, SIG_DFL); signal(SIGTERM, SIG_DFL); @@ -291,7 +304,7 @@ getstr(user, sizeof(user), "username too long\n"); getstr(pass, sizeof(pass), "password too long\n"); - getstr(cmdbuf, sizeof(cmdbuf), "command too long\n"); + getstr(cmdbuf, cmdbuflen, "command too long\n"); #ifdef USE_PAM #define PAM_BAIL if (pam_error != PAM_SUCCESS) { \ pam_end(pamh, pam_error); exit(1); \ diff -Naur ./rshd/rshd.c ../copy/rshd/rshd.c --- ./rshd/rshd.c 2008-06-13 21:40:15.000000000 +0200 +++ ../copy/rshd/rshd.c 2008-06-13 21:45:04.000000000 +0200 @@ -337,7 +337,8 @@ static void doit(struct sockaddr_in *fromp) { - char cmdbuf[ARG_MAX+1]; + char *cmdbuf; + long cmdbuflen; const char *theshell, *shellname; char locuser[16], remuser[16]; struct passwd *pwd; @@ -346,6 +347,18 @@ u_short port; int pv[2], pid, ifd; + cmdbuflen = sysconf (_SC_ARG_MAX); + if (!(cmdbuflen > 0)) { + syslog (LOG_ERR, "sysconf (_SC_ARG_MAX) failed"); + exit (1); + } + + cmdbuf = malloc (++cmdbuflen); + if (cmdbuf == NULL) { + syslog (LOG_ERR, "Could not allocate space for cmdbuf"); + exit (1); + } + signal(SIGINT, SIG_DFL); signal(SIGQUIT, SIG_DFL); signal(SIGTERM, SIG_DFL); net-misc/netkit-rsh/files/rexec.pamd-include0000644000000000000000000000045710244072466020072 0ustar rootroot#%PAM-1.0 # For root login to succeed here with pam_securetty, "rexec" must be # listed in /etc/securetty. auth required pam_nologin.so auth required pam_securetty.so auth optional pam_env.so auth include system-auth account include system-auth session include system-auth net-misc/netkit-rsh/files/rsh.pamd-pambase0000644000000000000000000000056210756657542017556 0ustar rootroot#%PAM-1.0 # For root login to succeed here with pam_securetty, "rsh" must be # listed in /etc/securetty. auth required pam_securetty.so # Uncomment this and comment the following to use rhosts_auth module #auth required pam_rhosts_auth.so auth include system-remote-login account include system-remote-login session include system-remote-login net-misc/netkit-rsh/files/rsh.pamd-include0000644000000000000000000000063410244072466017555 0ustar rootroot#%PAM-1.0 # For root login to succeed here with pam_securetty, "rsh" must be # listed in /etc/securetty. auth required pam_nologin.so auth required pam_securetty.so auth optional pam_env.so # Uncomment this and comment the following to use rhosts_auth module #auth required pam_rhosts_auth.so auth include system-auth account include system-auth session include system-auth net-misc/netkit-rsh/netkit-rsh-0.17-r9.ebuild0000644000175000001440000000363211025220747020446 0ustar billydvusers# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/netkit-rsh/netkit-rsh-0.17-r9.ebuild,v 1.8 2008/03/21 15:39:31 maekke Exp $ inherit eutils pam toolchain-funcs PATCHVER="1.0" DESCRIPTION="Netkit's Remote Shell Suite: rexec{,d} rlogin{,d} rsh{,d}" HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/" SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${P}.tar.gz mirror://gentoo/rexec-1.5.tar.gz mirror://gentoo/${P}-patches-${PATCHVER}.tar.bz2" LICENSE="BSD" SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc64 ~sparc ~x86" IUSE="pam" DEPEND=">=sys-libs/ncurses-5.2 pam? ( >=sys-auth/pambase-20080219.1 )" src_unpack() { unpack ${A} cd "${S}" #bug 225341 epatch "${FILESDIR}"/netkit-rsh-0.17-arg_max.patch rm -rf rexec mv ../rexec rexec if [[ -n ${PATCHVER} ]] ; then EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch fi if tc-is-cross-compiler ; then # Can't do runtime tests when cross-compiling sed -i -e "s|./__conftest|: ./__conftest|" configure fi } src_compile() { local myconf use pam || myconf="--without-pam" tc-export CC ./configure ${myconf} || die sed -i \ -e "s:-pipe -O2:${CFLAGS}:" \ -e "/^LDFLAGS=$/d" \ -e "s:-Wpointer-arith::" \ MCONFIG || die "could not sed MCONFIG" emake || die } src_install() { local b exe insinto /etc/xinetd.d for b in rcp rexec{,d} rlogin{,d} rsh{,d} ; do if [[ ${b:0-1} == "d" ]] ; then dosbin ${b}/${b} || die "dosbin ${b} failed" dosym ${b} /usr/sbin/in.${b} doman ${b}/${b}.8 else dobin ${b}/${b} || die "dobin ${b} failed" doman ${b}/${b}.1 [[ ${b} != "rexec" ]] \ && fperms 4711 /usr/bin/${b} if [[ ${b} != "rcp" ]]; then newins "${FILESDIR}"/${b}.xinetd ${b} newpamd "${FILESDIR}/${b}.pamd-pambase" ${b} fi fi done dodoc README ChangeLog BUGS newdoc rexec/README README.rexec }