From owner-soc-status@freebsd.org Mon Jun 10 13:47:44 2019 Return-Path: Delivered-To: soc-status@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 6E3FC15BFFBD for ; Mon, 10 Jun 2019 13:47:44 +0000 (UTC) (envelope-from shivankgarg98@gmail.com) Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 309487451A; Mon, 10 Jun 2019 13:47:43 +0000 (UTC) (envelope-from shivankgarg98@gmail.com) Received: by mail-ed1-f44.google.com with SMTP id w33so14609072edb.10; Mon, 10 Jun 2019 06:47:43 -0700 (PDT) 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=kqU3xIrMLIvHqPNBUSnj4hHEHtwQZkv4Q1qTfRpIoZc=; b=RCfr+EaLWApeK2rdfBY5tU/OLJnSq1M/HGi1agUx9T+vjZoWPXTyclu/eVgzC63O5T B/L7RZPbCO9RZc43X9iugymT+SvGMj6icb1rFRnxJkBmcOY8xmvjwm5dDbW4RFQiMSfC I8JMJWIZ75dZ9opVfvizD3s8Y/knZwyIY8jh3Kpjc/9/dOd981bfVGWCBxTlfT4gW2hJ mjuzErBRTXyhrIDj6UENS2O4d1TH7zEO8lbfho43KPWdIHiediAFoocp8Ej9+rLKJDpe h0zADhaHDaXRDqPg2zDgbMjOwN2hS6DX8GEQg8Vdc+A6j4wHkkjZU9OC9UT25Kaqn8lP xgoA== X-Gm-Message-State: APjAAAWm4hTX4qGvDi95XOXanVrR7w3WvXcZ9CaMWefEOn+r3FJAJskZ sSV56XPAFLlbF/86iGZsnwFnwZBLJeM= X-Google-Smtp-Source: APXvYqxE9Tun+oOJ2qh/nGLrDJo7ZW2BhOpX6kiyaV2R5Pw49vgGbHAd2O9uvgeSPYJKowkjOd54ug== X-Received: by 2002:a50:ba28:: with SMTP id g37mr52354638edc.109.1560174455742; Mon, 10 Jun 2019 06:47:35 -0700 (PDT) Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com. [209.85.208.49]) by smtp.gmail.com with ESMTPSA id hk1sm1797859ejb.36.2019.06.10.06.47.35 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jun 2019 06:47:35 -0700 (PDT) Received: by mail-ed1-f49.google.com with SMTP id w33so14608984edb.10; Mon, 10 Jun 2019 06:47:35 -0700 (PDT) X-Received: by 2002:a17:906:2f8f:: with SMTP id w15mr48256025eji.72.1560174455080; Mon, 10 Jun 2019 06:47:35 -0700 (PDT) MIME-Version: 1.0 From: Shivank Garg Date: Mon, 10 Jun 2019 19:17:24 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [GSoC'19 Weekly Update] MAC policy on IP addresses in Jail To: soc-status@freebsd.org Cc: "Bjoern A. Zeeb" X-Rspamd-Queue-Id: 309487451A X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of shivankgarg98@gmail.com designates 209.85.208.44 as permitted sender) smtp.mailfrom=shivankgarg98@gmail.com X-Spamd-Result: default: False [-5.32 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[soc]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; MIME_TRACE(0.00)[0:+,1:+]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[44.208.85.209.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.96)[-0.958,0]; RCVD_TLS_LAST(0.00)[]; FORGED_SENDER(0.30)[shivank@freebsd.org,shivankgarg98@gmail.com]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[shivank@freebsd.org,shivankgarg98@gmail.com]; IP_SCORE(-2.35)[ip: (-6.01), ipnet: 209.85.128.0/17(-3.40), asn: 15169(-2.28), country: US(-0.06)] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jun 2019 13:47:44 -0000 Hi everyone, This project is aimed at developing a loadable MAC module with the "The TrustedBSD MAC Framework" to limit the set of IP addresses a VNET-enabled Jail can choose from. This week I did the following- * Understand and wrote TrustedBSD MAC framework bits for the mac_ipacl module. * Read the implementation of ifconfig and network modules in FreeBSD. (sys/netinet and sys/netinet6) * Checked the flow of code in the network modules(mainly in.c) by seeing printf logs. * I added MAC Framework checks in prison_check.c and tried simple tests with it. But I was going on the wrong path. So, had to check with my logic again. Do Check this project on Github: https://github.com/shivankgarg98/freebsd/tree/shivank_MACPolicyIPAddressJail/sys/security/mac_ipacl FreeBSD wiki: https://wiki.freebsd.org/SummerOfCode2019Projects/MACPolicyIPAddressJail Please feel free to share your ideas and feedback on this project. Regards, Shivank Garg From owner-soc-status@freebsd.org Tue Jun 11 01:53:24 2019 Return-Path: Delivered-To: soc-status@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 28FE915CE0AA for ; Tue, 11 Jun 2019 01:53:24 +0000 (UTC) (envelope-from therontarigo@gmail.com) Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0104B6EBFC for ; Tue, 11 Jun 2019 01:53:22 +0000 (UTC) (envelope-from therontarigo@gmail.com) Received: by mail-pf1-x434.google.com with SMTP id p184so3059067pfp.7 for ; Mon, 10 Jun 2019 18:53:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:message-id:date:user-agent:mime-version :content-language; bh=HbIVGrsroYto8cWrbbh4SfN1R3vGL6V782b+OJnhuQY=; b=c6TTyFCs56ug0m9jpLTZrshtywIQ7dSTY9m9szD5B6DaMc3ybPiHy6vGlOnTKhsEGN fy9sJsHZ9nhHVscUCq+PrOjEKkur9XkmxBXpcEJRByakFL6oNx4GhSF3lt04cD85Blb1 EYNKlT5EJV9Og+6oOOkgeLiv97RPKReOdfnq9oieItVY+yZBo+aILpk00mewUR6FyAOi dDkNw2ipTAaf/lFCJ76c7HVeybHDoAMvSwW+ZYacRq47GUB06MLUse8wMq7vMNH/RUZr UwaQ/GnpHXvQbfVBbS9IcDySw/p7ZQORBUl8pxRiQ3iN5uIqd2HooIo7yqiC+yn/vW+g WDpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:message-id:date :user-agent:mime-version:content-language; bh=HbIVGrsroYto8cWrbbh4SfN1R3vGL6V782b+OJnhuQY=; b=Qbg+cTaKiO8ZYPoqU/hJR3ioXUk2aPvcbMt8PCzWW8m9RQQ+8yly464adKaDm7gXi+ U61jRnZ55akk38LCftNaaSdlPudyiIbRS7s5MI+wc9z6OJlXcBUKyPF25Ik6hL4iJb2K yp2Pe8k66k2pFmTkOOFfsa3b1kgyisFSwdP7s75ffcJSZydbyVlF0D5hN/+YBJK5JnIu t2a18UJeepjpUcM46LCwhA1vRVBdzQAAYzPj4Ne628Ckdy/CBY0tcq/YXBeIAseyVDe+ iUqzgL38ZeQtOuThv9gYRLuNlo/mDUmuYWswdGnvzK2c8LlEfuuIQ1lfXcPqBmlZDYpY iLCg== X-Gm-Message-State: APjAAAVfztWTeb8SLxx8gLqVenTeox0r82gxhldQ6LUZ7B4v2Aurmzoa FJLiv3hOQxohw+pqijecMVrF+eYU X-Google-Smtp-Source: APXvYqz7Bd/CXsIFh+CbJswhXLrZHUuqj9EZnFRoZ5Di2hI3DxmeJaTRmw7wJQVUzlIBX7leBiXxBg== X-Received: by 2002:a63:6445:: with SMTP id y66mr18511362pgb.23.1560218001823; Mon, 10 Jun 2019 18:53:21 -0700 (PDT) Received: from [192.168.1.23] (c-73-170-47-221.hsd1.ca.comcast.net. [73.170.47.221]) by smtp.gmail.com with ESMTPSA id x24sm678708pjq.27.2019.06.10.18.53.20 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jun 2019 18:53:21 -0700 (PDT) Sender: Theron Tarigo From: Theron Tarigo X-Google-Original-From: Theron Tarigo To: soc-status@freebsd.org Subject: GSoC: Separation of Ports Build Process from Local Installation Message-ID: Date: Mon, 10 Jun 2019 21:53:20 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Language: en-US X-Rspamd-Queue-Id: 0104B6EBFC X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=c6TTyFCs; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of therontarigo@gmail.com designates 2607:f8b0:4864:20::434 as permitted sender) smtp.mailfrom=therontarigo@gmail.com X-Spamd-Result: default: False [-6.93 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-1.00)[-0.996,0]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(-2.93)[ip: (-9.11), ipnet: 2607:f8b0::/32(-3.18), asn: 15169(-2.29), country: US(-0.06)]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[soc-status@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[4.3.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jun 2019 01:53:24 -0000 Hello all, This past week I continued to work on the file access interception library.  It is working well enough to redirect file accesses from shell and basic tools: sh, cat, ls - more thorough testing will be needed.  This is on-schedule for the project timeline; this week I am returning attention to the proposed changes to Ports framework which will give a clear idea of which utilities will require file interception. Source of the interception library is kept at: https://github.com/therontarigo/freebsd-user-namespace Theron Tarigo