Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp246852rdb; Mon, 18 Sep 2023 13:53:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IENbN235d9MPzVIrNdTEqfQ8iErk0HGOa0fsIvMEYIwyVa9zeQmGCp6R0wLDBESeaDEah3D X-Received: by 2002:a05:6a00:c96:b0:690:28d0:b7b3 with SMTP id a22-20020a056a000c9600b0069028d0b7b3mr12479885pfv.13.1695070433803; Mon, 18 Sep 2023 13:53:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695070433; cv=none; d=google.com; s=arc-20160816; b=vgwOUFKJk3alStSUPGAz1ZTpATemGjzKR+u26gk41H3r821/3/fYmKQP6g2/rYoISZ s2I4UFNKWRfAZ7SFhSeOmHl4UTFyCgFqULZb9WFv1Sf6oDXepznFQ+2wlllNbdEvCol5 0L0ViUG7C/eOa5iU5WkAPsbFLn0FAxJI1qDBckRPII6uiiwWgqdDwJTvUOJ3DH2R60Io /vy+7LBcSYnvTVhHIvVN2YVg9JeXloGJKYlK1/Ixb9dDZGaQ8QpsN/0PF7xGpeHkgyK8 qG3VNNEbsZPiBbjcbpJC+oL7NLc6W9dezOZ0+U98escruW5mQTscN7EGd5DBdYctEc+O /zTw== 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=zW90+4LnhcXuYh4PgbZ4Zl6heO2MhvqvxAqb1aqy9sA=; fh=0Pmfv/I4mRlaH9sqW+suxpGGxOadHhQ1yO6Te03bGa8=; b=fvf0RfV5LC7jVMaNiUNWoB6BVDlxDobC6BRWl8oZOiX4c3D6ZRrHhPLcW0TDILBv2L 5DtYD7p8410rm/W4oKGjEN+iloUT3l13f58E2Ud/FMZCAThq40bJR9Uvfa9+JFZWA/Qd FzMwe2DyUsw7XkjH8Zcn5K1n3YHhGwxUApnMPNyMktCF8lFy20PLoIkgL6Hno2mIoC2P Bz7haJTeqWtEdaZkQ8asgnBopKTkBNp91I/nLEcg1cmTESmuSc1KfWj7Xf4fSRDoKY3O HgMYR0RhDyPy89ovLeNJ11OWsU3Y79c8EFlsX1Re/B2bfjZv9suI1cxQWDr+YQzA2V9e KC8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b="KCR/+8gZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id l69-20020a638848000000b00565f37c5472si8359070pgd.781.2023.09.18.13.53.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 13:53:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b="KCR/+8gZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 0F72D819D720; Mon, 18 Sep 2023 12:45:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229495AbjIRTpf (ORCPT + 99 others); Mon, 18 Sep 2023 15:45:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjIRTpf (ORCPT ); Mon, 18 Sep 2023 15:45:35 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30440B6 for ; Mon, 18 Sep 2023 12:45:29 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2b962c226ceso80342631fa.3 for ; Mon, 18 Sep 2023 12:45:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1695066327; x=1695671127; 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=zW90+4LnhcXuYh4PgbZ4Zl6heO2MhvqvxAqb1aqy9sA=; b=KCR/+8gZYD6+QDchae8pwZvJni38Hbn1IT+ROSaQtdjgJ8L+elvODQ9fPv+1Z//Byv gStV5BMuMxwhv8bepohgoxGmuqH7X8RGxVXwLtxb2aqmIlkYhqgHPxO2SWf6qhAJYtBc wxk1ndck4R/upcAe5XkByj7y1htLnTPWuDKt1R+564SHG5jhoOQlB5H6bNvXjDcUQx9g 4JCZt2sHyIe2AANQ3/7357FA104vZuowS/PqIcsyT03UJ48BEHIyx4HixZgsfy2Qi5c8 cYU4OCYOhj7f3NEY0WBIi4diTfQzhIbiA4rAit6ocPbQ7KAEKxXx45xeO9F3qhy5G/+j uvVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695066327; x=1695671127; 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=zW90+4LnhcXuYh4PgbZ4Zl6heO2MhvqvxAqb1aqy9sA=; b=lNspgcvHf7SIXrbZGRDkLVJgDpkG0BaZD4pS8Uvzxg7NtENwheFWYSH/MjWK2NzEfy gQ4bTFIVIr5mdpxuQKCWSQKSB6AWFtNz9fWKBfRm6QJuttozjNzacb+Wb0DYg/PLCv2M dlqu8gQOsY/YdBWMWvTj7AQjPc1dVw3ttP+nuXYemg/wa8Rqrzhd3ebnTP5r1gB3nlon OZywaeH8d4qaGDUp+iy5yaKyKimmubHWVWdn9MOrgL4VcRLc36xtZ89izUMZHqS15ySU LBE/zUdVDyp4FWO3CFJDTDgA85LxpQbG2AqvJpCKzNdqMW4Q0bs2y9AoDGnL92zKLHOa NVwg== X-Gm-Message-State: AOJu0YzCQopJyZe1c1LG6CuyI4g8PYscnutCHpZ9cGBx9HHjPYOtCbPX 0BGmyYeXNXf1GyUGmS+dkxjDiHL4RGsIeE7owD0+7A== X-Received: by 2002:a2e:9607:0:b0:2bc:f252:6cc4 with SMTP id v7-20020a2e9607000000b002bcf2526cc4mr8663483ljh.10.1695066327372; Mon, 18 Sep 2023 12:45:27 -0700 (PDT) MIME-Version: 1.0 References: <20230918123217.932179-1-max.kellermann@ionos.com> <20230918123217.932179-3-max.kellermann@ionos.com> <20230918124050.hzbgpci42illkcec@quack3> In-Reply-To: <20230918124050.hzbgpci42illkcec@quack3> From: Max Kellermann Date: Mon, 18 Sep 2023 21:45:16 +0200 Message-ID: Subject: Re: [PATCH 3/4] inotify_user: add system call inotify_add_watch_at() To: Jan Kara Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, amir73il@gmail.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 18 Sep 2023 12:45:52 -0700 (PDT) On Mon, Sep 18, 2023 at 2:40=E2=80=AFPM Jan Kara wrote: > Is there any problem with using fanotify for you? Turns out fanotify is unusable for me, unfortunately. I have been using inotify to get notifications of cgroup events, but the cgroup filesystem appears to be unsupported by fanotify: all attempts to use fanotify_mark() on cgroup event files fail with ENODEV. I think that comes from fanotify_test_fsid(). Filesystems without a fsid work just fine with inotify, but fail with fanotify. Since fanotify lacks important features, is it really a good idea to feature-freeze inotify? (By the way, what was not documented is that fanotify_init() can only be used by unprivileged processes if the FAN_REPORT_FID flag was specified. I had to read the kernel sources to figure that out - I have no idea why this limitation exists - the code comment in the kernel source doesn't explain it.)