Message ID | 632d9f80428e2e7a6b6a8ccc2925d87c92bbb518.1731684329.git.josef@toxicpanda.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id EAF7DD68BC6 for <linux-mm@archiver.kernel.org>; Fri, 15 Nov 2024 15:31:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2CD9E6B0093; Fri, 15 Nov 2024 10:31:35 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 22F6F6B0095; Fri, 15 Nov 2024 10:31:35 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 082346B0096; Fri, 15 Nov 2024 10:31:35 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id D505F6B0093 for <linux-mm@kvack.org>; Fri, 15 Nov 2024 10:31:34 -0500 (EST) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 8B04C818E2 for <linux-mm@kvack.org>; Fri, 15 Nov 2024 15:31:34 +0000 (UTC) X-FDA: 82788717522.30.7F4787F Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com [209.85.219.169]) by imf04.hostedemail.com (Postfix) with ESMTP id 0DB8C40029 for <linux-mm@kvack.org>; Fri, 15 Nov 2024 15:30:34 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=toxicpanda-com.20230601.gappssmtp.com header.s=20230601 header.b=kIrp+Xzf; dmarc=none; spf=none (imf04.hostedemail.com: domain of josef@toxicpanda.com has no SPF policy when checking 209.85.219.169) smtp.mailfrom=josef@toxicpanda.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731684604; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=ZU0dZL52CuS55HBpnlFc9Ffg6kvih/VgFXFf1fJzIbE=; b=cYUu0Ij6p8lofCu6KRZ6rqK5hQ0S+xILoY62T2dY84OLx53zJnjmofpEux58gactLTQsI7 gM2q7cKI7wtlBavZ/NHtwP4IXAXp37OBTY2ZhZG3DLRGTm93qLMSyZG6Tzp3scKcRSiF1x Y7bTuHYGNLH25Ty7MIFt1uYYf2rxLb8= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=toxicpanda-com.20230601.gappssmtp.com header.s=20230601 header.b=kIrp+Xzf; dmarc=none; spf=none (imf04.hostedemail.com: domain of josef@toxicpanda.com has no SPF policy when checking 209.85.219.169) smtp.mailfrom=josef@toxicpanda.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731684604; a=rsa-sha256; cv=none; b=PO5ALezyPcsEUEjrO+g44PLlttNbnooKF/7eDEbSpsqTNEWDYRubczxHfZTDkjjngBAOA+ c6m+8IM9x1dnoem4ycAmVI9xCvBKOHStfWapgjKSqsc3EFOeVy7DVaSLA85U8sIaW+QmLe bI+CbdapUyRuHwjFDOppYWys/aVFe94= Received: by mail-yb1-f169.google.com with SMTP id 3f1490d57ef6-e38193093a7so1569183276.0 for <linux-mm@kvack.org>; Fri, 15 Nov 2024 07:31:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20230601.gappssmtp.com; s=20230601; t=1731684692; x=1732289492; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=ZU0dZL52CuS55HBpnlFc9Ffg6kvih/VgFXFf1fJzIbE=; b=kIrp+XzfgHfdGHA4WoQYoLiuyEPY1UC1XMbYkFTFeHQRKaLLAwcF5mEK1fqZZ7AprL GPHVKSMWjNq7ehvpYrO/ktwwEfBHUq9EIca8yysEMJaaKb6lSXSzEroc8u7gR3R53sUc c8zpDbdjGstcdZ5CSsWusmsjiXQ95ScfT0vbaMbXXUFlO6OrCoNBlt0f6ifB77D6Jj0E aUFqzwidkqR1aIlcJkU2jOi9cRNqSv/YU5xhoKbFjgsZdaxn41J2IVgb0qJd38j06vNh f+P/4s3W3mhfFhs7B4LuxpFErV8ByazInvgsBmge2ncoiAeAhHDHmZ1x4dl8GvDRxV99 0cqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731684692; x=1732289492; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZU0dZL52CuS55HBpnlFc9Ffg6kvih/VgFXFf1fJzIbE=; b=l3YmWx8aYbAox1K1KbHcplU078EDag6kV8l4PTnZJabfTteAUORy3hRbo0OCpckz33 hboTF726vZMx4Gt6F4nDtO7HUuyKE3iQChNxKs2DrEllBANiUpdWwMF2Px1g1so0DOZX CXAiLIWPgK8qtm2/JvmjKJ73QSU3HmBaAZeIcBgyzwGWJch4sZJk6Bko4B9W2aUsLVjb 7S9Wlaxt9Gw7dK7V2Nc+pYGskkTEPCPKhgE7KrmUjgi0/XgJwXpP5ojzKlqTElEGbeU8 iRytxJ9lPIrq9CV+oaT1by1fCgkia/9FsYx3dq2EXJoL5mbk91t5AnQo+NbIjE+wvmtP qK4g== X-Forwarded-Encrypted: i=1; AJvYcCUtA/VMszilqmYgT+wC8XwCMIjjpUjjUn3pnFIc9Hk00bKFQylU8v5x7wfnneU/TCaI4w6kZeUC2Q==@kvack.org X-Gm-Message-State: AOJu0Ywa54wJHjobamJHHGTmZ2b1aK+PN9/EAUV0FgNXc4akCaocc2dD 2otEiZiHk4n41AbxqM4VZkWY6pk2JLw0KqTj0X7Ezs+6IR6jdTEs/71p4RNogpY= X-Google-Smtp-Source: AGHT+IGL1oUEZJ3rWhtkHzcHN//l4Kwa6WIU+uMQ5VnS4NxAxx6XDhapJjpe9N68qs8G4gEKoRwuyw== X-Received: by 2002:a05:6902:1825:b0:e28:fa51:634a with SMTP id 3f1490d57ef6-e382615f44fmr2204741276.31.1731684691641; Fri, 15 Nov 2024 07:31:31 -0800 (PST) Received: from localhost (syn-076-182-020-124.res.spectrum.com. [76.182.20.124]) by smtp.gmail.com with ESMTPSA id 3f1490d57ef6-e38152caccdsm1011626276.14.2024.11.15.07.31.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Nov 2024 07:31:30 -0800 (PST) From: Josef Bacik <josef@toxicpanda.com> To: kernel-team@fb.com, linux-fsdevel@vger.kernel.org, jack@suse.cz, amir73il@gmail.com, brauner@kernel.org, torvalds@linux-foundation.org, viro@zeniv.linux.org.uk, linux-xfs@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-mm@kvack.org, linux-ext4@vger.kernel.org Subject: [PATCH v8 06/19] fanotify: reserve event bit of deprecated FAN_DIR_MODIFY Date: Fri, 15 Nov 2024 10:30:19 -0500 Message-ID: <632d9f80428e2e7a6b6a8ccc2925d87c92bbb518.1731684329.git.josef@toxicpanda.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <cover.1731684329.git.josef@toxicpanda.com> References: <cover.1731684329.git.josef@toxicpanda.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 0DB8C40029 X-Stat-Signature: 8eufq4h6cjxag1nu6n8ennpzgtwgxeon X-HE-Tag: 1731684634-441655 X-HE-Meta: U2FsdGVkX18ZTu4khX8X+CngbUHIEX8NMy6tqOo1tXzv8KGZcZizP2z4/sjt9CEmjhWfIrtnLypEJq3dlV8dxA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c6wmj025AKjasiS2kUJ7yc4jsxUcbeYix2GknOubMwCGCw7c+pi+IVbrJ9z+miLkwm6LnYuO7thLguj8VFztd3KPwvdUfXMMcoODHhPEW7jWIHkvYcpdyh2dvkKW/KtOX3WmmWPnX+UnE3wTaq5V5iRRt1ZOhHLVSd+QLcr6zMKAXxIuQkoYxM3N0Eaaguwf6IwweMe9ZgFswaySOTXexFHSv5SSH5k+2V4wOmlb9MlL4CEcUwyAALNkTEhvU4lFNMgW5qruyge3NabvDDhJ0orXhMQIUhxy+OerRLXQCeFwk36ea2lAN5TAlgw5EMb2FQLas3kb4YZkZZfFg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
fanotify: add pre-content hooks
|
expand
|
diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h index 99d81c3c11d7..2dc30cf637aa 100644 --- a/include/linux/fsnotify_backend.h +++ b/include/linux/fsnotify_backend.h @@ -55,6 +55,7 @@ #define FS_OPEN_PERM 0x00010000 /* open event in an permission hook */ #define FS_ACCESS_PERM 0x00020000 /* access event in a permissions hook */ #define FS_OPEN_EXEC_PERM 0x00040000 /* open/exec event in a permission hook */ +/* #define FS_DIR_MODIFY 0x00080000 */ /* Deprecated (reserved) */ /* * Set on inode mark that cares about things that happen to its children. diff --git a/include/uapi/linux/fanotify.h b/include/uapi/linux/fanotify.h index 34f221d3a1b9..79072b6894f2 100644 --- a/include/uapi/linux/fanotify.h +++ b/include/uapi/linux/fanotify.h @@ -25,6 +25,7 @@ #define FAN_OPEN_PERM 0x00010000 /* File open in perm check */ #define FAN_ACCESS_PERM 0x00020000 /* File accessed in perm check */ #define FAN_OPEN_EXEC_PERM 0x00040000 /* File open/exec in perm check */ +/* #define FAN_DIR_MODIFY 0x00080000 */ /* Deprecated (reserved) */ #define FAN_EVENT_ON_CHILD 0x08000000 /* Interested in child events */