From owner-freebsd-hackers@freebsd.org Sun Feb 2 20:42:56 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 8FFBD238BDA for ; Sun, 2 Feb 2020 20:42:56 +0000 (UTC) (envelope-from tommi.pernila@gmail.com) Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) (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 489jZl4L1Sz4ctq for ; Sun, 2 Feb 2020 20:42:55 +0000 (UTC) (envelope-from tommi.pernila@gmail.com) Received: by mail-qv1-xf2b.google.com with SMTP id z3so5911234qvn.0 for ; Sun, 02 Feb 2020 12:42:55 -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=Hhc8+zViUEPJP2venJzmk/sSUgf98O3b1DPpVqNIRYU=; b=Aw5uVO/z5y2AbsLKYLl2y5kCYg3wyx0wKK7oarKnzGN6ItOBd8Ba1AQo5Hinj+8yIQ 02t4Mq/Aao0XjV9uVp9QQapcYNTp5yEnI4bHPMMaFlhNJuYwyCed9fiFUylxq1ZndVMF 9n1Txr7tWz0/nypLTyZNTpKH8NiCFR0Ua+CEirkgVW/wyjV2+VawghVnykqXxNtEumeZ VTaC2Kh87fP7iHWYIKx87+ofsSd6rimbZ1bRXDEOqaPNZ1yixAz1SWIFDGPIp2tvQ1tD pgWIER6w+SYDfn3/NYbsjNNwO+pbrLA76RDBjitALC3VKfs89i+rbY4ATjqkYbXNt5Ju GIoA== 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=Hhc8+zViUEPJP2venJzmk/sSUgf98O3b1DPpVqNIRYU=; b=cKELCMsiXlbwnKDenhYo5D52sYsiShq3dHUQJjRf9+lvR1IzYe9ku5ai4RT3M5yBMs JiOP2qQIqLZIbUsxguo/n84DMp+T1YbpqFR6WatJvbzobNjTrSOLKqbAGgW/SgxPzQFh 3PKtoaor1ZGCnPuN4BWOVG97jhLYq3tHauRq2I02XOVRZngXT0WTQuqdLIKiKWqLXfmT 2lDZuxLV4ZXBIdPf8cjCBMcY6wL1fZN66x/Sv60qUh8knSdySoe+zePr3pJg+MT/3Rl1 aQHXwr6dQvswrOYhROCCXCWvPatRxmMGhy+W9c/d2Eae97qX74YQGPZPxkFFDlqgmf2F mbQg== X-Gm-Message-State: APjAAAUsKja+RFLJo/ZC6x5XS/WSfdxDeVlWiYC3cz388gOM7x3CA9XN IgJUh4v+d/TrabzffzyUPS5xcfjRC/uyLOyzXzY= X-Google-Smtp-Source: APXvYqxM9Gk76oMH2gEIWgQ27PuUMxeAkgHfJqwLzEUTBd3VU48OF+e0AVn3auu8XMLwtI+5DkjjzHq/48puEkYY3XI= X-Received: by 2002:a0c:edc3:: with SMTP id i3mr20275020qvr.29.1580676168703; Sun, 02 Feb 2020 12:42:48 -0800 (PST) MIME-Version: 1.0 References: <616e8222-a377-fdf0-bf55-79e73a509065@quip.cz> <202002021808.012I8CNm083835@gndrsh.dnsmgr.net> In-Reply-To: <202002021808.012I8CNm083835@gndrsh.dnsmgr.net> From: Tommi Pernila Date: Sun, 2 Feb 2020 22:42:37 +0200 Message-ID: Subject: Re: More secure permissions for /root and /etc/sysctl.conf To: "Rodney W. Grimes" Cc: Ben Woods , FreeBSD Hackers , Gordon Bergling , Miroslav Lachman <000.fbsd@quip.cz>, Ryan Stone , Wojciech Puchar X-Rspamd-Queue-Id: 489jZl4L1Sz4ctq X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Aw5uVO/z; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of tommipernila@gmail.com designates 2607:f8b0:4864:20::f2b as permitted sender) smtp.mailfrom=tommipernila@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; URI_COUNT_ODD(1.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCPT_COUNT_SEVEN(0.00)[7]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-4.08), ipnet: 2607:f8b0::/32(-2.00), asn: 15169(-1.76), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; 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]; 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)[freebsd-hackers@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; FREEMAIL_CC(0.00)[gmail.com] 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 20:42:56 -0000 On Sun 2. Feb 2020 at 20.08, Rodney W. Grimes wrote: > [ Charset UTF-8 unsupported, converting... ] > > Ben Woods wrote on 2020/02/02 02:46: > > > > [...] > > > 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. > > > > +1 > > > > I see no reason for world readable /root too. > > We always set user's homes to 0700 (subdirs of /usr/home). > > Who is "We" in this context? > > FreeBSD's default for home directories is 755. > > And as I have stated before anyone who is taking group rx off > of /root is fooling themselves as that just creates pain for > members of group wheel who now needlessly need to su to > see /root's files. > > If you have issues with group wheel being able to read /root > you have far far bigger problems that need addressed than > a simple chmod g-rw /root is going to fix. > 700 for /root has it's place but i think it is a POLA violation. I'm guessing that the majority here can agree that 755 is bit too broad? 750 should not create any problems and would be a good compromise. -T > -- > Rod Grimes > rgrimes@freebsd.org > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >