From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.1 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id E2DE01F462 for ; Tue, 21 May 2019 06:05:05 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-type; q=dns; s=default; b=K1YQF aoZAt4rX8tp8hXpT5oRrdjjkf3smjzy2TbUcaajEzj9UnuYhqINFb+G8edobYVH+ +tzR72aejRwQKeyQWiRbjB67oGHm1e+KpOXjGgWzBffldEZHVQ+2id8F91sm1BZt pIuRO7FjqPwj8iJQ/sgodqONW9ZkM0oiYy/Z1g= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-type; s=default; bh=NsCjU5zrrLp ZRDXetNfMh3qInXM=; b=V5VxSwwrR1npYznGo6FfCLC+rVRclpEgOs1EiFNdPbR vMFA3NjoThHnd3WxbpfCE0nJEF+EJuRcfVi5hYlerjbXUnOEScEX86c5AxTgJfEW ebndvhWFZG1ILnQ24Z6dbd4fsqVWivRxD3vnwnKqLQAwAQnVs25dvIgwJaO6sNTo = Received: (qmail 127934 invoked by alias); 21 May 2019 06:05:03 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 127922 invoked by uid 89); 21 May 2019 06:05:03 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mx1.redhat.com From: Florian Weimer To: Joseph Myers Cc: Subject: Re: Add F_SEAL_FUTURE_WRITE from Linux 5.1 to bits/fcntl-linux.h References: Date: Tue, 21 May 2019 08:04:52 +0200 In-Reply-To: (Joseph Myers's message of "Mon, 20 May 2019 21:58:33 +0000") Message-ID: <87v9y4fim3.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain * Joseph Myers: > This patch adds the new F_SEAL_FUTURE_WRITE constant from Linux 5.1 to > bits/fcntl-linux.h. > > Tested for x86_64. > > 2019-05-20 Joseph Myers > > * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU] > (F_SEAL_FUTURE_WRITE): New macro. > > diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h > index 4b4d6f7ae5..3f32eb328b 100644 > --- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h > +++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h > @@ -284,6 +284,8 @@ struct f_owner_ex > # define F_SEAL_SHRINK 0x0002 /* Prevent file from shrinking. */ > # define F_SEAL_GROW 0x0004 /* Prevent file from growing. */ > # define F_SEAL_WRITE 0x0008 /* Prevent writes. */ > +# define F_SEAL_FUTURE_WRITE 0x0010 /* Prevent future writes while > + mapped. */ > #endif > > #ifdef __USE_GNU I checked this against the Linux sources and the change looks good to me. Thanks, Florian