Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp105158rdb; Mon, 18 Sep 2023 09:20:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFBkfK74/eieRu1RlL4Mt9ABibzvfWZ9RRiOnfkpBDfsHfswWzAYCeBwdk/atfa3p63sne1 X-Received: by 2002:a05:6a20:9749:b0:157:877a:5f5e with SMTP id hs9-20020a056a20974900b00157877a5f5emr7949725pzc.61.1695054037756; Mon, 18 Sep 2023 09:20:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695054037; cv=none; d=google.com; s=arc-20160816; b=bNZlud4vczPPze/swXYmElnN9/hcZpIWo4ZV7dY//y4yD2T5dkLDCOAUIZTGZ+AC9c cEpEcM/x0ylq9/KXcDDYN2f0u49yK/HPnw1XSoT3+6zVoi9Sfwo+RWTy0T3PHA6fZnI3 4HpCrVk7X8g0dln9ReRnPJB99W6a5v7EPNdblK1y9a7jgKbHNZB9qQCGbMch4l00OR10 0nLoAavWY1A4XVQnLA4klWetwjIPc5wvI+vhskkcausID2GzgSHB1HNhPsnepJqKhRY7 XmwvLoUULRGVDFLWi5gKAGdbj+2vIfvw2rK/5X6f9SYYzyI9HEygFEL4wHVkjCLNTeI5 MvIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=FFquh9MatLutV/AqH2mDcbYDMbyhx/Btn5qvpYa0SGg=; fh=+SSLWzjYitEcxXmbJMj7hNLFdzvLmK5qANCuI2+aMRs=; b=KhVlOv2e9CZm7yqncIemBZfMtN1TOogH5/CFu05BjESF8JZSP4tC0OBRSJkIDSMwml mZoe8YBqM/A6ZDk1MzGGsn6mRClEB7N6LCaebQE5aRjGbJ42+jO8h/mgbtcsFLu8oVVl 3/ZNu4TxanWbWEg5C4qLAl4fdpgebZnuTiHnlFvZQ+Ndf0SfoLyVzR2Zb0lpYio7zHCW DhLxD2p9SthUTb7wnKq5Jnalu8Pe8yTnhhc5hoJPMoFps08g50HPvVk7GP54qqXyMMQk zlD83XrlVwe89J3G8PXRCgJwkwMf003UJkxGaEWQJVVvtz2aaqlB1h29p5qL3/RA+uYC prFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=O8QXOTOC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id u29-20020a62d45d000000b0068fb9c0bb07si8184471pfl.13.2023.09.18.09.20.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 09:20:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=O8QXOTOC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id AEC228095F67; Mon, 18 Sep 2023 08:35:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229591AbjIRPe4 (ORCPT + 99 others); Mon, 18 Sep 2023 11:34:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229703AbjIRPec (ORCPT ); Mon, 18 Sep 2023 11:34:32 -0400 Received: from mail-ua1-x92f.google.com (mail-ua1-x92f.google.com [IPv6:2607:f8b0:4864:20::92f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4443BBC; Mon, 18 Sep 2023 08:32:09 -0700 (PDT) Received: by mail-ua1-x92f.google.com with SMTP id a1e0cc1a2514c-7a8c41bd59aso523114241.3; Mon, 18 Sep 2023 08:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695050940; x=1695655740; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=FFquh9MatLutV/AqH2mDcbYDMbyhx/Btn5qvpYa0SGg=; b=O8QXOTOCinvtS7RuUha3bcTqDNQ9kuTz4oLq2e32AaATfsWb8D+pSD0y+XeacnXTUs KCijXtXawPdRJy/xtiqJr1TWOvd+4CUFEGb72FrzR+6N/7l2CSa+KaAqCRaak6UNVw8L CdbA85Iqg42ik8F4nvLNMpn2e65N48rUIesuPBMJCiqFtEtAXXSB/WVpyCQCgqvUmm1d KIzq166PaKa8NWsrOXgnqTiA+iT/4YYwvOJU0AqQaQ+/9YiQDTA31CVFY/nnktk1HwiN pqPuPAnbbu/WWF7BnX7ZvIFzty6CcwMHERMXKc/B7qeyluaX8ttdrVcmp722DlgF8GOZ diUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695050940; x=1695655740; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FFquh9MatLutV/AqH2mDcbYDMbyhx/Btn5qvpYa0SGg=; b=PWS+YjMjhG22BjH6pikU7543fnx1evaadx/OdHg9ZjI39Qt+oQ18B26EVhFbBJE8K0 1o7ZJxBegwy49s62yvhjwXhonU2G9WWzMuKmdV3hVD7mTH8fHYYBPBDeip2kLTzsEKUV odFNsjMPduAVv7Oo7CKJkbDaj6RAdU3FuOV4jDgz9rxJJGHO0z/42YP/MWLF1GXCS07B DsRhCGzHOGLQ4A1c/9ZKQKqtOE9ZtvVWxxaluS+fiI8YFkdSinePEdV6x+mB3NfX6Fgo iH2FgGdzeZaKYEJa2KVWNop2GTZPKFkFD6IdDZvqUfJNgbCP9EVXHgBEWj4W8rtxrHrI Rbiw== X-Gm-Message-State: AOJu0Yz6MNiBaChusH9dY18rruRnRWR3K2uyyv1bmuSR6buH9QMiIVz8 00qS9DhtwpQYTOFYCxIe0W5+EvPHEmdkht0+bfM= X-Received: by 2002:a05:6102:3184:b0:452:741a:b7ec with SMTP id c4-20020a056102318400b00452741ab7ecmr1682905vsh.33.1695050940607; Mon, 18 Sep 2023 08:29:00 -0700 (PDT) MIME-Version: 1.0 References: <20230918123217.932179-1-max.kellermann@ionos.com> <20230918123217.932179-3-max.kellermann@ionos.com> <20230918124050.hzbgpci42illkcec@quack3> <20230918142319.kvzc3lcpn5n2ty6g@quack3> In-Reply-To: <20230918142319.kvzc3lcpn5n2ty6g@quack3> From: Amir Goldstein Date: Mon, 18 Sep 2023 18:28:49 +0300 Message-ID: Subject: Re: [PATCH 3/4] inotify_user: add system call inotify_add_watch_at() To: Jan Kara Cc: Max Kellermann , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 18 Sep 2023 08:35:27 -0700 (PDT) On Mon, Sep 18, 2023 at 5:23=E2=80=AFPM Jan Kara wrote: > > On Mon 18-09-23 15:57:43, Max Kellermann wrote: > > On Mon, Sep 18, 2023 at 2:40=E2=80=AFPM Jan Kara wrote: > > > Note that since kernel 5.13 you > > > don't need CAP_SYS_ADMIN capability for fanotify functionality that i= s > > > more-or-less equivalent to what inotify provides. > > > > Oh, I missed that change - I remember fanotify as being inaccessible > > for unprivileged processes, and fanotify being designed for things > > like virus scanners. Indeed I should migrate my code to fanotify. > > > > If fanotify has now become the designated successor of inotify, that > > should be hinted in the inotify manpage, and if inotify is effectively > > feature-frozen, maybe that should be an extra status in the > > MAINTAINERS file? > > The manpage update is a good idea. I'm not sure about the MAINTAINERS > status - we do have 'Obsolete' but I'm reluctant to mark inotify as > obsolete as it's perfectly fine for existing users, we fully maintain it > and support it but we just don't want to extend the API anymore. Amir, wh= at > are your thoughts on this? I think that the mention of inotify vs. fanotify features in fanotify.7 man= page is decent - if anyone wants to improve it I won't mind. A mention of fanotify as successor in inotify.7 man page is not a bad idea = - patches welcome. As to MAINTAINERS, I think that 'Maintained' feels right. We may consider 'Odd Fixes' for inotify and certainly for 'dnotify', but that sounds a bit too harsh for the level of maintenance they get. I'd like to point out that IMO, man-page is mainly aimed for the UAPI users and MAINTAINERS is mostly aimed at bug reporters and drive-by developers who submit small fixes. When developers wish to add a feature/improvement to a subsystem, they are advised to send an RFC with their intentions to the subsystem maintainers/list to get feedback on their design before starting to impleme= nt. Otherwise, the feature could be NACKed for several reasons other than "we would rather invest in the newer API". Bottom line - I don't see a strong reason to change anything, but I also do not object to improving man page nor to switching to 'Odd Fixes' status. Thanks, Amir.