From owner-freebsd-hackers@freebsd.org Sun Feb 2 01:46:25 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3637D2339E9 for ; Sun, 2 Feb 2020 01:46:25 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: from mail-vs1-xe29.google.com (mail-vs1-xe29.google.com [IPv6:2607:f8b0:4864:20::e29]) (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 489DMN02vYz4KYJ for ; Sun, 2 Feb 2020 01:46:23 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: by mail-vs1-xe29.google.com with SMTP id v141so6766240vsv.12 for ; Sat, 01 Feb 2020 17:46:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=umbiIBoVN+LLl44AiBUABJpea5RTugbhPtVK0UhrVJo=; b=OkSiUrMdhYA6uZgutir6/HtI+1jEd4VXFCa/8jXj94oo1Kfrr2FomYq4jUBqkA2U30 MC1Z2W++I0TI3wsVUBErKFpQyZPEiCyI9R6KAeUlXmYGKzgKrabau4NnbWFiMazztbEZ h8gVIbyos8C+7+GxnvksCcCzJalwcYqSu2tvzZTAta76kdo3BOk1edlupstYcv2c0bW3 QvJOKW+nt1BeywZuT6VRyUXrmPm9xfa2UbvjsEbxyFt1iscMJQjVTiQo6FpPxfgyVP6P l0dVUf+C4AriGKGWu69XAaPM5mvkrlgptqinp4rHkaott9G9P5/4wVTQvJBKIiID5bXS VDkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=umbiIBoVN+LLl44AiBUABJpea5RTugbhPtVK0UhrVJo=; b=Mguz7I7/8pjc/41raRVKB+3Gr36NGVGppb48NfQ5EgMslludV69Rckysbmxw1gue5z 9b2gu9970c83MPUxt8KGvOMTR8CH6KyjkR8srVQu7RWnPbBBvhmL50wwqBuzug8+ZeIM VWjt574W69OuJ1KRFVE/ANLuQfSDa1lXl/ygUftwRRn0dywkXInSZJbA8SAYWtD38eRh 8j468AsnQOhH2rOimGXiJo11N2qo0xdBi2Wg2hw/hFHrMlmUlGkm72cX9mFTGiSHw5Mo eD93y3dJDxZI8Jk5GVUzA3GFdkblXo+dWYrKS0hV+uVPH72DIERTM4+GsmbYH55Mp5cC mu+w== X-Gm-Message-State: APjAAAXVwAKOznQczCMzl/JZyhL7Lj5/3YooqeH4kA3cYERdu0TgEGrk ff7ANTYfBhPTCpq4AxAeq+9zVncCUzHygyO/mac= X-Google-Smtp-Source: APXvYqyl2AfKoz9M6JY8FIoVh5Kb3E/THoxCnnZg2zxn2jmpQgMfjFKLHIZN9P1vTvmH04fIV8FUB93YpXV2XqZMBw4= X-Received: by 2002:a05:6102:4a1:: with SMTP id r1mr11874332vsa.53.1580607982711; Sat, 01 Feb 2020 17:46:22 -0800 (PST) MIME-Version: 1.0 References: <4584E3BE-F412-4902-AFB9-CAE88D660ED1@googlemail.com> <202002011904.011J4rBB079499@gndrsh.dnsmgr.net> In-Reply-To: <202002011904.011J4rBB079499@gndrsh.dnsmgr.net> From: Ben Woods Date: Sun, 2 Feb 2020 09:46:11 +0800 Message-ID: Subject: Re: More secure permissions for /root and /etc/sysctl.conf To: "Rodney W. Grimes" Cc: Gordon Bergling , FreeBSD Hackers , Ryan Stone , Wojciech Puchar X-Rspamd-Queue-Id: 489DMN02vYz4KYJ X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=OkSiUrMd; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of woodsb02@gmail.com designates 2607:f8b0:4864:20::e29 as permitted sender) smtp.mailfrom=woodsb02@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[9.2.e.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]; IP_SCORE(0.00)[ip: (-9.57), ipnet: 2607:f8b0::/32(-2.00), asn: 15169(-1.76), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FREEMAIL_CC(0.00)[googlemail.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Feb 2020 01:46:25 -0000 On Sun, 2 Feb 2020 at 03:05, Rodney W. Grimes wrote: > c) The default for home directories in all the BSD's I looked at > are 755. > > d) All distributions I looked at ship /root as 755. This would be > FreeBSD as the odd man out. > I just spun up a few other BSD's to check this, and found the following for /root permissions: DragonFlyBSD 5.6.2 = 700 HardenedBSD build 104 = 755 NetBSD 9.0 RC1 = 755 OpenBSD 6.6 = 700 For what it's worth, I am broadly supportive of this because I see no reason for /root to be world readable. Given this change only affects new installations, I think the "astonishment" can be reduced by including an entry in the release notes. Regards, Ben