Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp12471307pxu; Fri, 1 Jan 2021 23:57:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYj0+y89PoZsg9uP+nLkN/8IaBtmZWQEaAkqOElM/Xjf1+yEqiUL6wPuqukeQKzJnMw4uD X-Received: by 2002:a50:f299:: with SMTP id f25mr61940808edm.133.1609574231613; Fri, 01 Jan 2021 23:57:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609574231; cv=none; d=google.com; s=arc-20160816; b=dRtxvu9D41EUChbDiZxYu6dUHVHYh0psvxkWdm23YnSt+XQnvXlPz7j33X0reMazec 5NMU0zhwpLRGtm85EJxkOVC/J940mztNb8ZiduWyAi8+bpFyNn0bF8Ki+UsSbItIs4sS O6dPmsvpJ2u5PLidrHqeSZwUm6q9TQSUkT/P8ctrFDlFYQegbaNnc+TtL9zC+0qwdhVM dJHK+h8NU8WNMqAhZbqegc0TrbQECzKvEDQbyBKP1Syc+ovqRDlugLVubScGpL+eveHB X97uHjWFHt1u3ToD9/6Kg45moAuH5ncRzcF0lfOj/O8ma0rrukPFijK0reIa99fhlSRS QbRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=P8vdX/CdQBZr5DGs31enHkcYQr+98zYEQ5FMO2kYpqs=; b=05ZKTh+eE24IfM/w5ty5DSyhFYyWeTfdxJ7226pU7fNTfaFRs0UGnopa394nsmtcAY m3d5z9klsM31ahJ0vCSyyrp/sLopLrvaLa/xjqQBQCsy63BAcr6/ZuPqPUZNkHaEyloJ r/CVE2TcVIRZ1t6P//yXI5uul50J+qixCzZNhIzF1H/GmxFz4MtkW/kic/H+AHXOsGBs wL63oMwJE4A4+l/aeqPlPzmkLg+rqbfcV7fUvONCpfek3WPoG7FJEySh8Q1At32N8vDk rVbg0W+JzSMZ2w7qcTe7dzGaiQKMv47bvqpREZqX/d07E5T5r/VJ8PQOUGrEY7KfRoGV cPfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=wVvdtwcD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ci19si25521260ejb.718.2021.01.01.23.56.39; Fri, 01 Jan 2021 23:57:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=wVvdtwcD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726340AbhABHwk (ORCPT + 99 others); Sat, 2 Jan 2021 02:52:40 -0500 Received: from conssluserg-06.nifty.com ([210.131.2.91]:45969 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726210AbhABHwk (ORCPT ); Sat, 2 Jan 2021 02:52:40 -0500 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 1027pfKm015162; Sat, 2 Jan 2021 16:51:41 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 1027pfKm015162 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1609573901; bh=P8vdX/CdQBZr5DGs31enHkcYQr+98zYEQ5FMO2kYpqs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=wVvdtwcDM/KIfhXuoirH5mecGv9YPGMYnhuVxPWEjF1vP0pagUl2QHRui8w9h3wyn EIrMUEyCt9anLjKcsfVF6h2oG3cR26RIOfn951tAfKSEh6LAyxhhAaUtV0UVf+OW9T j67Wo4BIwd0Eeyto0DHCN3fVIMqnM2aWlma2PcV7RN6JvgTpwVJ/3F1EzVlL3DQMjD U+9jFgLUcQO8CQwVWrOIh/yg1v3G5NsvW0grFNa/6uUILY1Z4TKaHFmnQMDTEbTeJc jZG0auziw4dui4qoz0YH8qI8akuI0f2/pbNpz+Me9vhobteKm7FhPnA0kTLyt5rpR5 A1F+ArMMu+zuQ== X-Nifty-SrcIP: [209.85.210.178] Received: by mail-pf1-f178.google.com with SMTP id 11so13353186pfu.4; Fri, 01 Jan 2021 23:51:41 -0800 (PST) X-Gm-Message-State: AOAM53040wZJDJgsq6nHA4gbUBGc9eVY2Mr7H617F0oqw8TxKTHQMcZG 7RlZDwXLSiNlH+YTvUhbwQ1tJ7S0YIyzqYjkE00= X-Received: by 2002:a62:820d:0:b029:1ad:d810:6805 with SMTP id w13-20020a62820d0000b02901add8106805mr40038143pfd.63.1609573900636; Fri, 01 Jan 2021 23:51:40 -0800 (PST) MIME-Version: 1.0 References: <20210101161435.GA344@duo.ucw.cz> In-Reply-To: From: Masahiro Yamada Date: Sat, 2 Jan 2021 16:51:03 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Linux 5.11-rc1 To: Sedat Dilek Cc: Pavel Machek , Linus Torvalds , Linux Kbuild mailing list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 2, 2021 at 3:55 AM Sedat Dilek wrote: > > On Fri, Jan 1, 2021 at 5:14 PM Pavel Machek wrote: > > > > Hi! > > > > > > > > > $ dpkg -L kmod | grep bin | grep depmod > > > > > /sbin/depmod > > > > > > > > > > $ which depmod > > > > > [ empty ] > > > > > > > > > > $ echo $PATH > > > > > /opt/proxychains-ng/bin:/home/dileks/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games > > > > > > Ok, I think this is a broken setup that has a separate /sbin but does > > > not have it in the PATH. > > > > That's how it is supposed to work, AFAICT. It is so on Debian here, > > for example. > > > > /sbin is for management commands, why would I have it in PATH when > > running as normal user? > > > > I am here on Debian/testing AMD64 and waiting for feedback [2]. > > For now I have applied the diff from [1]. > > - Sedat - > > [1] https://marc.info/?l=linux-kbuild&m=160919738006768&w=2 > [2] https://marc.info/?l=linux-kernel&m=160919729606750&w=2 PATH for the root on Debian is /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin depmod is used from 'make module_install'. For the native module installation to the host machine, module_install is run after 'su -' or 'sudo', which successfully finds depmod in /sbin. I also tested 'make deb-pkg' with/without rootless builds. It also successfully found depmod in /sbin, presumably dpkg tools automatically tweak PATH env variable. Maybe, the problem is when we run 'make modules_install' for cross compilation, which we do not necessarily require the root permission. Users can still adjust PATH in ~/.profile, but somebody may think breaking the legacy behavior is annoying. So, after some consideration, the workaround by Linus looks good to me. -- Best Regards Masahiro Yamada