From nobody Mon Oct 25 02:40:05 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 9A9581807940 for ; Mon, 25 Oct 2021 02:40:12 +0000 (UTC) (envelope-from chris.stephan@live.com) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11olkn2065.outbound.protection.outlook.com [40.92.18.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HczhD2jVPz3Mp0; Mon, 25 Oct 2021 02:40:12 +0000 (UTC) (envelope-from chris.stephan@live.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SlD/dhWN2ksOlQlEpQmnGHUYxA/vx7NplaFueXEm2P0+SFILW4IEzn5zGSiNHoOqjOLHl5jaV5fJBvYG/7/YY2yL8Z5dMSw7Eb0ZK02pmtJyKKS+Soxg0JBXvsxYxLeTmOgb8qHnrz9todF9VHpWNE8EGiXnXRbuQvlzMpFPyM49FO5vSUXVBKh7vdFGbVSQHgL/HXxC2/8GwyNIK+bqhXWwXS6Si7Zeg2LN3c9UD15Mk10tz39cQtaz2mplayUrtKNA1RwLqjWzIVOi//odSg9/nWTqfkgF2xuXfwVo5TR2McnBkF/ehbJZzcL5Pjrh7cCRcGW5Iue2wnLlxtI3mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4rrSXlsGJu0s5cZ95wLZ87l9aEaxK3KwiRjzMaEg4Dc=; b=Qz2x3gMCPZIlvZjEY6hN1tNeFm/dAg+XI45q4GJ61FDDI+4pPL2iNKQPLT4iShS0ztupvKF0ok8pGz/14nP6y2+fzfdnleSTA0zCVlBwVMjWkFHTMqPU3kbGg/6XxSZh7LIqGA1fasECaB+3hdsoKgIFv3M7VdHxYyxOAXgQ957Cd6AkycDIwPqyKyhm1PACEoEpF/maX1afMsjcG/plUv5JU1f0edRoxk1VE0zLhNGQzmT162mJDUFxN45vucK0dBZnGQ/SdcPQA4FwBJAh+8puivhTJZduzTpyVNZph21WQYRkLFSlHr5MQofc/1Z4Esu8AVQqJI2y3H+YDDNNcA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4rrSXlsGJu0s5cZ95wLZ87l9aEaxK3KwiRjzMaEg4Dc=; b=cXTChIRt0UW1YTM2p0k7ZKuknB5I2Lu4Xg8nGjTvbB8jEW+uuSGbJP8BicEDOh70ZNb/ckXpN7AF5J00O2rRrlU8+4DN5x9NdnGIWgXc9nDtcLu9+TFP5DTFtWF2xvvQ8KvrPReLb/u/qOW/3ZoaF97O0OUOd5AqIkm4iOuKuMPZiELCSRWnarq3lbYmmcY3fK1h6QGmWoklHPndRp0WrQeUcC8Bx9jsXnVHe6wk/lgTjb+ibXMZUa680lO68EercB2CyD54f9RPGo3S3/wPO9ZQ9QzYUShz1uK9rDkJkmXLgtTSWV6CyG3fmZZwZ7iuKGbe3ENZGvw3IoHxpSJR3A== Received: from SA1PR02MB8669.namprd02.prod.outlook.com (2603:10b6:806:1fc::12) by SN6PR02MB3997.namprd02.prod.outlook.com (2603:10b6:805:2b::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.20; Mon, 25 Oct 2021 02:40:05 +0000 Received: from SA1PR02MB8669.namprd02.prod.outlook.com ([fe80::b144:e19c:19e8:b7c7]) by SA1PR02MB8669.namprd02.prod.outlook.com ([fe80::b144:e19c:19e8:b7c7%9]) with mapi id 15.20.4628.020; Mon, 25 Oct 2021 02:40:05 +0000 From: Chris Stephan To: Ed Maste CC: "freebsd-hackers@freebsd.org" Subject: Re: linux compat: namespaces and cgroups Thread-Topic: linux compat: namespaces and cgroups Thread-Index: AQHXyA4L6LAi/zGxDUODfR7umcE6vqviP0cAgAC8I9Y= Date: Mon, 25 Oct 2021 02:40:05 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: suggested_attachment_session_id: 7db08f5c-96fa-848d-f5ff-e914e03e2cd3 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [6Gqnu9zD6eD61Fnz+srRY6hB2L37AD6d] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 20e7c6cf-34fd-4bbd-2e4f-08d99760c082 x-ms-traffictypediagnostic: SN6PR02MB3997: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: GO7vpdKlKE7bqQ5+vIo1giMRHA9jOq13WXwNJ45q2Ej9O5baCLPg4XMWtCbbLzWtTKaT7oi8PbdqnJ/1xxgj0Qhsb7nqBWk+JOCr2dwPIuCkZIZfIS1m/+67sCKabD7AW2zobyUzYEqVE9Z8i5MSbkAbcQzjpbEiwdWoQeWv4H4qXwbTzgm8fPlhFWQDc8XuxsVe0v7KihVPGVKgLu3LUhejuX69aSXwVGNtghkEaEGMigfqL4D7H2+kOrVfTmYKLBY+1tc6EaPKBN941dzyw2rV2XId8ToCdvKUmgsfGt+61Ep4A5ncl/PY4zwPpzKa46jCRF87Qy1Xm5TVNI136TkLXLm4LJZOUrwJMntXEn44s9HTHPUYAIWW7j89t9u9EIzAhCJz74xz8DFNcVRzSjDMrCOqs7kP1pjnMp8nSOm5w/a8JtbLZOQKKs0et6GtD3e8jfUgE5/tPgaWg7QXKVdAVtSZJEQi9bn6H6PSB8OL2BKN2iJBzPcbVKkBsAYoNKmEKnXb+IOIhlfCSiXmyRmFdgEf2gdbkTgZzButhwI= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: l5d4hdMrPhH4/NTvpQ4bMtYXiEYy8J/jOE2ZW+AyaMQU3a6VzJEf9uYC+mz6HkFvvpbQnb8Ulrb5UoKpAOp6SMG+O3TdrDww7J1P0iVeYGHY8HzgI2vMEy+remFKOFkzQ3NzRkh9Qw017U02CtZaJvWW54I1eyWrSmxsTmkjJrjCITeskvy47LBhtpbgdbPoiwynPBAHe9rmV/7s5OVA+n/DDQs9Ic0kRpyL3+w07qDDc+TOS2ni3qFTBF6utwlTtmNDSmOfjxB9G4mzmz6hQNcsGmFwv3AL/0yCpZfPUh0wZemKjKbOWedZtdZWluxNfN8Y1INkX99EilyMkuqmHy0+9Iw033NrwoRI4kiga0urAyq8i/MWMZ7JiEyRL1eDChbtdUzsNKSTYeDP9vCaddcvNLhParXn+235VVn3TNtNRHYA6+P5QX/jm/RJPH3lqz8Ul0vD//HqNBpKaV5Or9iZ+NTMWGLHCWJLcU9s3GlhOhV0Y+EUv7PKsqAyDjvmLRzLhjwke7DOKlYy1qmkxS6wtflKMiHJR9E+5cIVUYKEzLaUdoCOh1cHg0RX/qJ0DmikAwgJ2SaB/sBOWEK6ikDqNC4mQ85QlAwnO+9irNnm5lWJUKKxOza74CDVTKYsnV3dUG1gur8ISTDIP7a9KcjO3jLB3z6jBsc1v6gH/H6lFA0l3s2jSAfm6wig3Fzx Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-cec7a.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA1PR02MB8669.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 20e7c6cf-34fd-4bbd-2e4f-08d99760c082 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Oct 2021 02:40:05.1250 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR02MB3997 X-Rspamd-Queue-Id: 4HczhD2jVPz3Mp0 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N > From: Ed Maste =0A= >=0A= > One thing that might be useful to folks who might work on the FreeBSD=0A= > kernel side is to build up a collection of small programs that=0A= > demonstrate these syscalls and interfaces.=0A= =0A= Agreed. In my spare time I can use this as a research op to get a little mo= re=0A= into the guts of how these toolsets are both leveraged today in various =0A= projects and what usecases would be most beneficial to the FreeBSD=0A= community. Without a functioning kernel interface in place I'm assuming=0A= we would be testing against a vm of centos. I noticed the linuxulator will= =0A= be compatible with linux 4.4.0 in 14-CURRENT. Would that be a good=0A= target to write against?=0A= =0A= > To some extent I think we=0A= > can separate functionality from priority/limit controls.=0A= > Demonstrations for setns, unshare, and clone would be interesting.=0A= =0A= Agreed.=0A= =0A= > Several of us have had an interest in this for some time, but I am not=0A= > aware of any existing significant work. We've spoken about starting a=0A= > regular call for these topics in the near future, and I'll follow up=0A= > when ready to move forward.=0A= =0A= I appreciate that. Looking forward to those topics. Hopefully, not too=0A= soon so maybe I will have had enough time to research to provide=0A= some solid contributions to the conversation.=0A= =0A= So catch me if I missed something, but it sounds like prior the=0A= following two tasks could be worked on in parallel:=0A= =0A= 1. Find and document examples from how these functions are =0A= leveraged today and consolidate them to simple compilable source.=0A= =0A= 2. Generate user-land utilities that can either mock or mimic the =0A= behavior of setns, unshare, and clone on FreeBSD. =0A= =0A= Cheers.=0A= =0A= =0A= =0A= Generate =