All of lore.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: linux-kernel@vger.kernel.org
Subject: Re: futimes()?
Date: 3 Feb 2003 11:07:15 -0800	[thread overview]
Message-ID: <b1mel3$fug$1@cesium.transmeta.com> (raw)
In-Reply-To: 20030202120752.GK5239@riesen-pc.gr05.synopsys.com

Followup to:  <20030202120752.GK5239@riesen-pc.gr05.synopsys.com>
By author:    Alex Riesen <alexander.riesen@synopsys.COM>
In newsgroup: linux.dev.kernel
>
> H. Peter Anvin, Sun, Feb 02, 2003 02:53:22 +0100:
> > In the general vein of avoiding security holes by using file
> > descriptors when doing repeated operations on the same filesystem
> > object, I have noticed that there doesn't seem to be a way to set
> > mtime using a file descriptor.  Do we need a futimes() syscall?
> 
> There is a small problem with close(). It can update mtime as well.
> 

Presumably it shouldn't unless the file descriptor has been written
to since the last fsync().

	-hpa
-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
Architectures needed: cris ia64 m68k mips64 ppc ppc64 s390 s390x sh v850 x86-64

  reply	other threads:[~2003-02-03 18:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-02  1:53 futimes()? H. Peter Anvin
2003-02-02  8:48 ` futimes()? Abramo Bagnara
2003-02-02 12:07 ` futimes()? Alex Riesen
2003-02-03 19:07   ` H. Peter Anvin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-02-02 18:59 futimes()? Adam J. Richter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='b1mel3$fug$1@cesium.transmeta.com' \
    --to=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.