From owner-freebsd-amd64@freebsd.org Mon Mar 19 07:14:04 2018 Return-Path: Delivered-To: freebsd-amd64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C4ADFF5676D for ; Mon, 19 Mar 2018 07:14:03 +0000 (UTC) (envelope-from tdteoenming@gmail.com) Received: from mail-yw0-x232.google.com (mail-yw0-x232.google.com [IPv6:2607:f8b0:4002:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47D3F7F930 for ; Mon, 19 Mar 2018 07:14:03 +0000 (UTC) (envelope-from tdteoenming@gmail.com) Received: by mail-yw0-x232.google.com with SMTP id z82so7894973ywd.9 for ; Mon, 19 Mar 2018 00:14:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=3/sDZDUoLKVu5ZLuE+bBRNLKTnEKKvtcf9kxi64rbcc=; b=LPTR251+YlgduIaZGlVsW6Li98RYGpj+OXNtHLHBhIDKQKr4CtfNHrh3z/xxGdCl0v UHaRTEaNLqy0I3oQjPDosFKybNDfPAsbh7OTKw1T+geZ6xU53QCH2OJn1nY4FPQGjfMS GaPhzolbfQwPmrSP4VwfJrtH9PRqh7lG9IVLPemeGyYd/X5LSWD10Cno/9nMJK9UewJN a1ktLY4PqbkW6wG0qlHuveJa+FnEeIMFCaD+S4zRiJzZKoBk2Pf3JaVDx5by30vGXKGY yWf4KdufT+sCI/BQtgmgKQStWVUUJVr0cBOUOuogaBLIdki6Tr5pvvs9j6cdn2WKQzUa LfNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=3/sDZDUoLKVu5ZLuE+bBRNLKTnEKKvtcf9kxi64rbcc=; b=PHZppoZB8h4dwcJfVThfV6urs1yF80iYj+SNqME8VCgF/W9XJEXB+fukwhq34UEDDD tQMYNkSey/J4S4ZiikiGn9xE6TtsuH9nOsUvPp2QCr5qX/I2PqZS8IzB5YRloISiprlh R9kV3WHTZcDLHtUb08Cymg7/L8CjpRHV5C1+Xf/D0pmP5T+3ffxFeJancO1qBysVvgF8 wzuLpVuRCVS0i4aTW/ibZnyWvPSoafQxCWpGh+MJjkqJA5B2FVPPiundynQ2HEtH8Ffs SQEZyu4VzDu4mBJl9z9F3KyMbhq1GS0QXUTawIalReKZp0AHTEG8/uFRn2yJ4/9eGnxu 2Olw== X-Gm-Message-State: AElRT7HATW7TbKuqQx93rHRbQB1RhcSUm13h7nfTXvTAkfZznY7OHrnl hGMYWpxgjk6IPAlPrTQqdt0hhIhPz23e//CJWX1T X-Google-Smtp-Source: AG47ELsLVL1rFebgMbPjX8zaensVtIdMQzf+aMHc/g6VvL5igeg9jJmHgjhe3CF+spRjm80HluSidap7oqreR9Jzuqc= X-Received: by 10.129.162.84 with SMTP id z81mr5926625ywg.377.1521443642564; Mon, 19 Mar 2018 00:14:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.13.235.200 with HTTP; Mon, 19 Mar 2018 00:14:02 -0700 (PDT) From: Turritopsis Dohrnii Teo En Ming Date: Mon, 19 Mar 2018 15:14:02 +0800 Message-ID: Subject: [LEARNING OUTCOME] Wi-Fi WPA Hacking Tool is Totally Useless on New Wireless Routers To: freebsd-amd64@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Mar 2018 07:14:04 -0000 Hi, I am sharing my learning outcomes. Recently I downloaded Kali Linux 64-bit Version 2018.1 and ran it on my HP laptop with the integrated Intel Dual Band Wireless-AC 8260 Wireless Network Card. I wanted to test if I could hack the Wi-Fi WPA password on Ruckus R700 Access Point (AP) and the Aztech DSL8900GR(AC) Wireless Router. So I started using the Reaver WPA cracking tool. I understand that the Reaver tool works because there is a bug with Wi-Fi Protected Setup (WPS). I have no luck with Reaver on the Ruckus R700 Access Point. After running Reaver, I found out that WPS is permanently disabled on the Ruckus R700 AP with no option to turn it back on at all. Hence It is not possible to hack the WPA password on Ruckus R700 AP. Understanding that I couldn't do anything further with Ruckus R700 AP, I proceeded to test Reaver on the Aztech DSL8900GR(AC) wireless router. In this case, I also found out that WPS is disabled by default on the Aztech wireless router. Reaver will not be useful at all if WPS is disabled. But there is an option to enable WPS. So I enabled WPS in the Aztech wireless router configuration page. And continued testing with Reaver. But because Aztech wireless router has the rate limiting security feature, brute force password attacks will be very slow and probably take forever. The rate limiting security feature on the Aztech wireless router is meant to slow you down when you are brute forcing the WPS pin. So here is my conclusion: Reaver Wi-Fi WPA hacking tool is totally useless on new wireless routers which have the WPS disabled or have implemented a fix for the WPS bug. Are there any other WPA cracking tools which I can use in my educational learning journey? Please advise. Mr. Turritopsis Dohrnii Teo En Ming Singapore 13 March 2018 Tuesday 4:28 PM Singapore Time ===BEGIN SIGNATURE=== Turritopsis Dohrnii Teo En Ming's Academic Qualifications as at 30 Oct 2017 [1] https://tdtemcerts.wordpress.com/ [2] http://tdtemcerts.blogspot.sg/ [3] https://www.scribd.com/user/270125049/Teo-En-Ming ===END SIGNATURE=== From owner-freebsd-amd64@freebsd.org Tue Mar 20 20:21:59 2018 Return-Path: Delivered-To: freebsd-amd64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1E466F6B4EF for ; Tue, 20 Mar 2018 20:21:59 +0000 (UTC) (envelope-from georg@bege.email) Received: from mail.unix.io (mail.unix.io [IPv6:2001:470:1f0b:97d::2]) by mx1.freebsd.org (Postfix) with ESMTP id A8AF785B6B for ; Tue, 20 Mar 2018 20:21:58 +0000 (UTC) (envelope-from georg@bege.email) Received: from mail.unix.io (localhost [127.0.0.1]) by mail.unix.io (Postfix) with ESMTP id F272C2E9A20 for ; Tue, 20 Mar 2018 21:21:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bege.email; h=reply-to:to :from:subject:message-id:date:mime-version:content-type :content-transfer-encoding; s=mail141202; bh=X7ZpiuqBAaYZiOPO1+K spmIXkxc=; b=exSjJVuhKInANuyZzio3/jUxL+z4ZJkEC4HF2FscTKBf1z+VipK NdRcMJf9VBV7rL3lcekTiMYqzBZcS1LocSPsZphjjv5UnqzYqZzNfHGCW2/JXnT8 a/eXeV9WPRsfMJ8wZ0wYC6EHaZmsWSjcZX04FqtcrH1R/D5T77ej+w+A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bege.email; h=reply-to:to :from:subject:message-id:date:mime-version:content-type :content-transfer-encoding; q=dns; s=mail141202; b=eComXFFHDam8C pk158lM+h2iBD6DRDEYdW9CPv0a2KP7Bm1gSnJjQN2a9OkfvZd4y0wSj06R5joo+ 8X03b7CJ+2AbWRenEFOkEjUVWws7YBMONPWS8Qy7uYzzPD5UN9I1NtCshH/QaHk5 VZsFZCKYOfHWeTocin7utxM4FCYFlE= Received: from [IPv6:2001:470:1f0b:518:e294:67ff:fee5:ab1e] (lazarus.int.ninth-art.de [IPv6:2001:470:1f0b:518:e294:67ff:fee5:ab1e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.unix.io (Postfix) with ESMTPSA id 6C22C2E9A1C for ; Tue, 20 Mar 2018 21:21:55 +0100 (CET) Reply-To: georg@bege.email To: freebsd-amd64@freebsd.org From: Georg Bege Subject: Linux compat / changing compat path Message-ID: Date: Tue, 20 Mar 2018 21:21:52 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Mar 2018 20:21:59 -0000 Hello users, Im not sure if this is actually the right mailing list for my question. I was looking for something non-amd64 related - but somehow I didnt find=20 that the other topics would be a better match too. Im looking for a way to change the `default` linux compatibility=20 userspace path /compat/linux to something else. Basically right now, I've different jails (also Linux ones) where I keep=20 software which is not compatible with my main system. Also the pkg available linux-c* packages cant suit every thing I need,=20 so I'd like to run programs I've installed (or compiled) from my jails. It works if I change the above mentioned path with a symlink... however=20 this is very unflexible. What would be good is if I could change it per environment - is there a=20 way? Any environment variable perhaps? (And no LD_LIBRARY_PATH isnt cutting it in any cases) best regards, Georg --=20 Georg Bege Mail: georg@bege.email XMPP: therion@ninth-art.de IRC: megaTherion @ Freenode From owner-freebsd-amd64@freebsd.org Wed Mar 21 08:09:19 2018 Return-Path: Delivered-To: freebsd-amd64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C78E6F51EF7 for ; Wed, 21 Mar 2018 08:09:19 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr0-x232.google.com (mail-wr0-x232.google.com [IPv6:2a00:1450:400c:c0c::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 404BB8209F for ; Wed, 21 Mar 2018 08:09:19 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr0-x232.google.com with SMTP id l8so4200695wrg.5 for ; Wed, 21 Mar 2018 01:09:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=5wVrTqnSGpccwiwhV/TV7kvlCKgwCwZUY4qU7/10Xcg=; b=JHLEl+HxdnBhvADBgTm6ZK2fg2YrdgXdIDNoZX6BCk2AL8NzuOYKWXWLtxU0iH1exe pf033F7NDd1R8MpnCZ4OaTcYnqr2cU9QkB+yqEpizfdmWM4tuWy20pmKvSvC+bkzMlWz VGyMHSaGK/Oe1JlqkcWtoAD+5ZxMWiDHQq6iUmz2LhM112TbFtwEQbY7VhINCZGeK6pZ vyMi3eGntPoEwhdEV2y0fwkD/ex0A2Y7M7RyLunsUcwfpYcmB0/tR5Hl1pjxHNuBb5+B 8gA4wiVisvK/8tz/hE4Z01gH41g94T+H1MmMujFzwZdKf9c0g1TBB6Lw3OkFwK85p9oJ aXiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=5wVrTqnSGpccwiwhV/TV7kvlCKgwCwZUY4qU7/10Xcg=; b=ZFcqP2Ll4ANDVNp+fBtDBfIBzsgT/lAiwzXibLGUu2faUFkEHuWvlKfpQBkmZimVBP hZQZPCtpDYk69J5u3b/gsuCNzRbA04pZcQK2JRNhO3kq3luOFWjKbcTpd/L8F11QdAbt vzYDF3JYCBLg6AoIVuNwOUTxxKBIe0MsO/RWxPTSkSDu/E461mX/QL+Fu8oDFR3G94iv N1pRa9BZnkssDvEaWCgftT8b9Eb2Dt7X4rpD1xxNj8Urit6llgWrvpAZlGApAInnQEhP 9uX8j/Ryp7bPKVCSSSACeNEQw71yUY+19XYasipqoz4LAdTWtRv4hd0UagPxiqgWT/3o wndQ== X-Gm-Message-State: AElRT7FL0JcFD50cg4V0MjWYrM26h41OS20Qpcx/kSfsy4JX2DjzjTLj YMR1Y598Z4V+rd2bukhQIWsQ4g== X-Google-Smtp-Source: AG47ELvkKwGL0RKlUzxv6yAWMa92atH/5zGIHihnlW2gyt1T161hCXjvrGCm24QKRe7oiY+XNk0Z6g== X-Received: by 10.223.161.135 with SMTP id u7mr11207058wru.184.1521619758297; Wed, 21 Mar 2018 01:09:18 -0700 (PDT) Received: from ernst.home (p5B02330E.dip0.t-ipconnect.de. [91.2.51.14]) by smtp.gmail.com with ESMTPSA id v53sm1160890wrc.45.2018.03.21.01.09.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Mar 2018 01:09:17 -0700 (PDT) Date: Wed, 21 Mar 2018 09:09:11 +0100 From: Gary Jennejohn To: Georg Bege Cc: freebsd-amd64@freebsd.org Subject: Re: Linux compat / changing compat path Message-ID: <20180321090911.4d1059c2@ernst.home> In-Reply-To: References: Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Mar 2018 08:09:20 -0000 On Tue, 20 Mar 2018 21:21:52 +0100 Georg Bege wrote: > Hello users, > > Im not sure if this is actually the right mailing list for my question. > I was looking for something non-amd64 related - but somehow I didnt find that the other topics would be a better match too. > > Im looking for a way to change the `default` linux compatibility userspace path /compat/linux to something else. > Basically right now, I've different jails (also Linux ones) where I keep software which is not compatible with my main system. > > Also the pkg available linux-c* packages cant suit every thing I need, so I'd like to run programs I've installed (or compiled) from my jails. > It works if I change the above mentioned path with a symlink... however this is very unflexible. > What would be good is if I could change it per environment - is there a way? Any environment variable perhaps? > (And no LD_LIBRARY_PATH isnt cutting it in any cases) > emulation would be the correct mailing list. This is defined in /usr/ports/Mk/bsd.port.mk as LINUXBASE?= /compat/linux so theoretically it could be overridden in /etc/make.conf. But you would have to recompile all your Linux ports. -- Gary Jennejohn From owner-freebsd-amd64@freebsd.org Wed Mar 21 08:45:14 2018 Return-Path: Delivered-To: freebsd-amd64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1DB6DF54842 for ; Wed, 21 Mar 2018 08:45:14 +0000 (UTC) (envelope-from se@freebsd.org) Received: from mailout12.t-online.de (mailout12.t-online.de [194.25.134.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailout00.t-online.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id ACFE1838C6 for ; Wed, 21 Mar 2018 08:45:13 +0000 (UTC) (envelope-from se@freebsd.org) Received: from fwd06.aul.t-online.de (fwd06.aul.t-online.de [172.20.26.150]) by mailout12.t-online.de (Postfix) with SMTP id CAE6041E9D15 for ; Wed, 21 Mar 2018 09:39:12 +0100 (CET) Received: from Stefans-MBP-LAN.fritz.box (TETFk4ZOwhVQ1nlghtH04uijEd8W8QfFSQvYs48zHNdmAKe2vJUyIfaZ4-wxcJ3Qz9@[84.154.103.83]) by fwd06.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1eyZH3-0u3mBk0; Wed, 21 Mar 2018 09:39:09 +0100 Subject: Re: Linux compat / changing compat path To: freebsd-amd64@freebsd.org References: <20180321090911.4d1059c2@ernst.home> From: Stefan Esser Message-ID: Date: Wed, 21 Mar 2018 09:39:09 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180321090911.4d1059c2@ernst.home> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-ID: TETFk4ZOwhVQ1nlghtH04uijEd8W8QfFSQvYs48zHNdmAKe2vJUyIfaZ4-wxcJ3Qz9 X-TOI-MSGID: af745da8-86b9-4003-a074-3391c513ea03 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Mar 2018 08:45:14 -0000 Am 21.03.18 um 09:09 schrieb Gary Jennejohn: > On Tue, 20 Mar 2018 21:21:52 +0100 > Georg Bege wrote: > >> Hello users, >> >> Im not sure if this is actually the right mailing list for my question. >> I was looking for something non-amd64 related - but somehow I didnt find that the other topics would be a better match too. >> >> Im looking for a way to change the `default` linux compatibility userspace path /compat/linux to something else. >> Basically right now, I've different jails (also Linux ones) where I keep software which is not compatible with my main system. >> >> Also the pkg available linux-c* packages cant suit every thing I need, so I'd like to run programs I've installed (or compiled) from my jails. >> It works if I change the above mentioned path with a symlink... however this is very unflexible. >> What would be good is if I could change it per environment - is there a way? Any environment variable perhaps? >> (And no LD_LIBRARY_PATH isnt cutting it in any cases) >> > > emulation would be the correct mailing list. > > This is defined in /usr/ports/Mk/bsd.port.mk as > LINUXBASE?= /compat/linux > so theoretically it could be overridden in /etc/make.conf. > > But you would have to recompile all your Linux ports. And you want to change occurances of /compat/linux in the kernel (and possibly some libraries and user programs), e.g. in /sys/amd64/linux/linux_sysvec.c ... There is some magic that makes an exec of /bin/sh look up /compat/linux/bin/sh first, if performed from within a program running under Linux emulation, and if you need that behavior, you have to adjust at least the kernel sources. Maybe the hard-coded "/compat/linux" should be replaced by a macro, to allow easy modification without loss of functionality ... Regards, STefan From owner-freebsd-amd64@freebsd.org Wed Mar 21 11:49:19 2018 Return-Path: Delivered-To: freebsd-amd64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AF904F60B47 for ; Wed, 21 Mar 2018 11:49:19 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr0-x231.google.com (mail-wr0-x231.google.com [IPv6:2a00:1450:400c:c0c::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 28CE26B0F1 for ; Wed, 21 Mar 2018 11:49:19 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr0-x231.google.com with SMTP id l8so4878451wrg.5 for ; Wed, 21 Mar 2018 04:49:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=Ux54d2+aU1FV0XN3r3hIuF8TQA2N81hYqeRoAH8fvms=; b=Tq7oGSDUdrvHUbictg1QX8HHqDELExVxzFmRvrlQheaXSL2zshvgZc9xPO0XgKDInV G3zCrI1ZcPcA70IICZNkoJ21FhFi+KWhKrq9Cnw6oYq3ix5usT6/0Kh522F1w/nl9ssZ S+PzXPIDzZ/W47Y+aW72/pqOKHoJ0qoF/ZmMLrcEYTfkT3l/95/QlSSKWIzNkBId9vky 4ar7aoPC1InFJ2dTgO8TF4m8RrS/3s8mZLJ88GWCSfVem7m5GTedV6xDYUjl0YLZeeQj d33g4bGNpZ8r8jDU9i8D5ozd5JL3aNIdSe6DP71dkC2xEVdxNPNfqnvKapobRcqMDaeF YHZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=Ux54d2+aU1FV0XN3r3hIuF8TQA2N81hYqeRoAH8fvms=; b=M0MMeiWBoCl6I9QsMyi2cEHH4a7hsIxPTw2ewblnlfJdyekNau6xesEtVGNXkeZM0J GGRJ1OqDMLUE8e2DGxh0KH8njLxaXok8x/JDR2As5qcOTjvEJkeQKI2z5CQO7MzrBU+H 1rjINH7j3Vs1rTXC/XDyM3SpOMFJFE1aKzm5rKZHf2zo159pP9GkGxGDLyeoi0JRTdr2 ljsQ97WovBQMFKnOwqZPXr9RNuiXtmcuMG35yoIFmfHvhWDwjH1dolF4thKDdr7ALh4S e39nUgVapkIBWHYvtSJQmUGryU3iEbtwDI9nPPpZFn0sJvgW7xtb+KuieJDosc91slYd xK3Q== X-Gm-Message-State: AElRT7GPe1sXj5TMKY1Yi/laObGJw8L/RHi1Bh+gUdb6f6haSUNtWKwm MxoCRz8drqbI/QNgT/wxVFw1Rw== X-Google-Smtp-Source: AG47ELuT+UUdy1q9kcuIdOk20SrYUtsxoyISYcCi4ywlAWOYPX4Co50Qg8k32m8Y3N/7QPGUo23nZw== X-Received: by 10.223.152.138 with SMTP id w10mr5152334wrb.34.1521632957418; Wed, 21 Mar 2018 04:49:17 -0700 (PDT) Received: from ernst.home (p5B02330E.dip0.t-ipconnect.de. [91.2.51.14]) by smtp.gmail.com with ESMTPSA id f23sm5117748wra.51.2018.03.21.04.49.16 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Mar 2018 04:49:16 -0700 (PDT) Date: Wed, 21 Mar 2018 12:49:15 +0100 From: Gary Jennejohn To: freebsd-amd64@freebsd.org Subject: Re: Linux compat / changing compat path Message-ID: <20180321124915.03dfb49d@ernst.home> In-Reply-To: References: <20180321090911.4d1059c2@ernst.home> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Mar 2018 11:49:19 -0000 On Wed, 21 Mar 2018 09:39:09 +0100 Stefan Esser wrote: > Am 21.03.18 um 09:09 schrieb Gary Jennejohn: > > On Tue, 20 Mar 2018 21:21:52 +0100 > > Georg Bege wrote: > > > >> Hello users, > >> > >> Im not sure if this is actually the right mailing list for my question. > >> I was looking for something non-amd64 related - but somehow I didnt find that the other topics would be a better match too. > >> > >> Im looking for a way to change the `default` linux compatibility userspace path /compat/linux to something else. > >> Basically right now, I've different jails (also Linux ones) where I keep software which is not compatible with my main system. > >> > >> Also the pkg available linux-c* packages cant suit every thing I need, so I'd like to run programs I've installed (or compiled) from my jails. > >> It works if I change the above mentioned path with a symlink... however this is very unflexible. > >> What would be good is if I could change it per environment - is there a way? Any environment variable perhaps? > >> (And no LD_LIBRARY_PATH isnt cutting it in any cases) > >> > > > > emulation would be the correct mailing list. > > > > This is defined in /usr/ports/Mk/bsd.port.mk as > > LINUXBASE?= /compat/linux > > so theoretically it could be overridden in /etc/make.conf. > > > > But you would have to recompile all your Linux ports. > > And you want to change occurances of /compat/linux in the kernel (and possibly > some libraries and user programs), e.g. in /sys/amd64/linux/linux_sysvec.c ... > > There is some magic that makes an exec of /bin/sh look up /compat/linux/bin/sh > first, if performed from within a program running under Linux emulation, and > if you need that behavior, you have to adjust at least the kernel sources. > > Maybe the hard-coded "/compat/linux" should be replaced by a macro, to allow > easy modification without loss of functionality ... > Thanks, Stefan. I completely forgot about the kernel stuff. Makes me wonder why LINUXBASE is even overrideable in the ports tree. -- Gary Jennejohn From owner-freebsd-amd64@freebsd.org Wed Mar 21 11:57:48 2018 Return-Path: Delivered-To: freebsd-amd64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ED71DF61447 for ; Wed, 21 Mar 2018 11:57:47 +0000 (UTC) (envelope-from agapon@gmail.com) Received: from mail-lf0-f41.google.com (mail-lf0-f41.google.com [209.85.215.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 546AA6B572; Wed, 21 Mar 2018 11:57:47 +0000 (UTC) (envelope-from agapon@gmail.com) Received: by mail-lf0-f41.google.com with SMTP id o102-v6so7412447lfg.8; Wed, 21 Mar 2018 04:57:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=i6wgBWmlVWEliOAw9Q98dtnjGfR4zMMjXIyt0Fb+Xrw=; b=F5/xbHwcepY8pEWzSRpye4zJMH87tb4XBcAiP1K9O5GHmBigJIAhaHsUoaXRLKXJHa QrVUTAAeD2I+XzTXThFZhRuWxQa1Vhn0eDv4YOMPfNPoFCjj6wZOBRvVE243A2k9qYqh aUb5ADAeCbZEaimOVzpD+TYjuTrf4mgcQvpeg0S79JzI3yrIyAf3Y7F7c2ZYtFIK06NT ah5/5AUFV1tKCuSFAYjg24yxH0+ktX/ZDJon5QopwbztbnrbqlymRi8P9L8y0Lne4OEg +aZr/qcHc9LTCRfFGKiat5pVx9f0NwAjDU+rzvDH525f7oNW0nkUb/ZAe6DUWZxkrL6W XveA== X-Gm-Message-State: AElRT7FpEQNjWImmZpWek75Slsmjc+bodBZ+rgtp87fMuURzQo9Sia9d 5/dg9WDbJAU9C5cUUB2zh92GWk0b X-Google-Smtp-Source: AG47ELuzEGmUgCGRCjdiW50vD4yXArU7FuASqTmlKyROh7KrmNn/3TngaZYjHqv6Xkk6i3gy0rOU7w== X-Received: by 10.46.117.2 with SMTP id q2mr2291172ljc.12.1521633459929; Wed, 21 Mar 2018 04:57:39 -0700 (PDT) Received: from [192.168.0.88] (east.meadow.volia.net. [93.72.151.96]) by smtp.googlemail.com with ESMTPSA id h68-v6sm1003257lfk.67.2018.03.21.04.57.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Mar 2018 04:57:39 -0700 (PDT) Subject: Re: Linux compat / changing compat path To: Stefan Esser , freebsd-amd64@freebsd.org References: <20180321090911.4d1059c2@ernst.home> From: Andriy Gapon Message-ID: <75bf1e70-b43a-5642-f69a-cc085c50225a@FreeBSD.org> Date: Wed, 21 Mar 2018 13:57:37 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Wed, 21 Mar 2018 12:10:20 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Mar 2018 11:57:48 -0000 On 21/03/2018 10:39, Stefan Esser wrote: > And you want to change occurances of /compat/linux in the kernel (and possibly > some libraries and user programs), e.g. in /sys/amd64/linux/linux_sysvec.c ... > > There is some magic that makes an exec of /bin/sh look up /compat/linux/bin/sh > first, if performed from within a program running under Linux emulation, and > if you need that behavior, you have to adjust at least the kernel sources. > > Maybe the hard-coded "/compat/linux" should be replaced by a macro, to allow > easy modification without loss of functionality ... I am not sure what would actually happen in the following case. Create a jail and make it "pure Linux". That is, install only Linux binaries there, no FreeBSD at all. And install them under the root of the jail, that is, no /compat/linux within the jail. Would that work? Would I be able to start such a jail (processes in it) ? Would they be able to correctly find their libraries and other executables they might want to exec? If this works or could be made to work, then I am sure that some people would it useful. -- Andriy Gapon From owner-freebsd-amd64@freebsd.org Wed Mar 21 12:37:31 2018 Return-Path: Delivered-To: freebsd-amd64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 49F1EF649DA for ; Wed, 21 Mar 2018 12:37:31 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9F59C6D282; Wed, 21 Mar 2018 12:37:30 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id w2LCbFQD013960 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 21 Mar 2018 14:37:18 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua w2LCbFQD013960 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id w2LCbFrk013959; Wed, 21 Mar 2018 14:37:15 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 21 Mar 2018 14:37:15 +0200 From: Konstantin Belousov To: Andriy Gapon Cc: Stefan Esser , freebsd-amd64@freebsd.org Subject: Re: Linux compat / changing compat path Message-ID: <20180321123715.GK76926@kib.kiev.ua> References: <20180321090911.4d1059c2@ernst.home> <75bf1e70-b43a-5642-f69a-cc085c50225a@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <75bf1e70-b43a-5642-f69a-cc085c50225a@FreeBSD.org> User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Mar 2018 12:37:31 -0000 On Wed, Mar 21, 2018 at 01:57:37PM +0200, Andriy Gapon wrote: > On 21/03/2018 10:39, Stefan Esser wrote: > > And you want to change occurances of /compat/linux in the kernel (and possibly > > some libraries and user programs), e.g. in /sys/amd64/linux/linux_sysvec.c ... > > > > There is some magic that makes an exec of /bin/sh look up /compat/linux/bin/sh > > first, if performed from within a program running under Linux emulation, and > > if you need that behavior, you have to adjust at least the kernel sources. > > > > Maybe the hard-coded "/compat/linux" should be replaced by a macro, to allow > > easy modification without loss of functionality ... > > I am not sure what would actually happen in the following case. > Create a jail and make it "pure Linux". That is, install only Linux binaries > there, no FreeBSD at all. And install them under the root of the jail, that is, > no /compat/linux within the jail. > Would that work? > Would I be able to start such a jail (processes in it) ? > Would they be able to correctly find their libraries and other executables they > might want to exec? > > If this works or could be made to work, then I am sure that some people would it > useful. > This already works. /compat/linux prefix is first try, and if not found, code falls back to normal lookup. People did used 'native linux' jails, in particular, to do builds. From owner-freebsd-amd64@freebsd.org Wed Mar 21 18:39:07 2018 Return-Path: Delivered-To: freebsd-amd64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9BA99F5BAB6 for ; Wed, 21 Mar 2018 18:39:07 +0000 (UTC) (envelope-from georg@bege.email) Received: from mail.unix.io (mail.unix.io [IPv6:2001:470:1f0b:97d::2]) by mx1.freebsd.org (Postfix) with ESMTP id 35A5B7FA54 for ; Wed, 21 Mar 2018 18:39:07 +0000 (UTC) (envelope-from georg@bege.email) Received: from mail.unix.io (localhost [127.0.0.1]) by mail.unix.io (Postfix) with ESMTP id 8A85F2E9A58; Wed, 21 Mar 2018 19:38:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bege.email; h=reply-to :subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s= mail141202; bh=Z4cZ/fGzvnF8c+ItRI9X2LMq06Q=; b=BhHSULznaIZb/orO2 17yDV8FICqCIHpc7hip+w/7TmfOoX4DDU7qwMrDbKiUrsbwPalNVCSDZs8J9xxhx Jms8jbi/8qVU3MFDnx7QrsvwKbXsYUGscCLeOtnG44Z9l6DLfYHMNjTmAgBH0nfP 1TWpGTmCmtEnZTbXUPuaRF1Jak= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bege.email; h=reply-to :subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; q=dns; s= mail141202; b=DM1d28fq3mDshozw80VA2mIJWv28rAcu/IrWgppRSlfsBrtFUL /MpDNqavDaZoQ6mIZpuJl18p+yyCMWsXxX4bzXy5wvv+bVnGuxKcp5ieqq6H/OYu o5ap31CZp9h+tvuHDC5tjJYgpJgUp1HB4Oi8RdQQE8GB0Tq8HwW5WdKBI= Received: from [IPv6:2001:470:1f0b:518:e294:67ff:fee5:ab1e] (lazarus.int.ninth-art.de [IPv6:2001:470:1f0b:518:e294:67ff:fee5:ab1e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.unix.io (Postfix) with ESMTPSA id 697C12E9A1C; Wed, 21 Mar 2018 19:38:58 +0100 (CET) Reply-To: georg@bege.email Subject: Re: Linux compat / changing compat path To: gljennjohn@gmail.com Cc: freebsd-amd64@freebsd.org References: <20180321090911.4d1059c2@ernst.home> From: Georg Bege Message-ID: <52b6bf35-98ed-7196-390b-2c4935946252@bege.email> Date: Wed, 21 Mar 2018 19:38:56 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180321090911.4d1059c2@ernst.home> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Mar 2018 18:39:07 -0000 Hello Well this is not exacly what I want, I dont want to recompile stuff. My understanding is that this path is used by the layer as search path for libraries and the whole environment... that is what I want to change... Am 21.03.2018 um 09:09 schrieb Gary Jennejohn: > On Tue, 20 Mar 2018 21:21:52 +0100 > Georg Bege wrote: > >> Hello users, >> >> Im not sure if this is actually the right mailing list for my question. >> I was looking for something non-amd64 related - but somehow I didnt find that the other topics would be a better match too. >> >> Im looking for a way to change the `default` linux compatibility userspace path /compat/linux to something else. >> Basically right now, I've different jails (also Linux ones) where I keep software which is not compatible with my main system. >> >> Also the pkg available linux-c* packages cant suit every thing I need, so I'd like to run programs I've installed (or compiled) from my jails. >> It works if I change the above mentioned path with a symlink... however this is very unflexible. >> What would be good is if I could change it per environment - is there a way? Any environment variable perhaps? >> (And no LD_LIBRARY_PATH isnt cutting it in any cases) >> > > emulation would be the correct mailing list. > > This is defined in /usr/ports/Mk/bsd.port.mk as > LINUXBASE?= /compat/linux > so theoretically it could be overridden in /etc/make.conf. > > But you would have to recompile all your Linux ports. > -- Georg Bege Mail: georg@bege.email XMPP: therion@ninth-art.de IRC: megaTherion @ Freenode