login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
3
Re: [PATCH] utimensat() non-conformances and fixes [v3]
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Michael Kerrisk <mtk.manpages@...>
To: Miklos Szeredi <miklos@...>
Cc: <drepper@...>, <viro@...>, <akpm@...>, <linux-kernel@...>, <linux-man@...>, <linux-fsdevel@...>
Subject:
Re: [PATCH] utimensat() non-conformances and fixes [v3]
Date: Tuesday, June 3, 2008 - 7:05 am
Hi Miklos,
quoted text
> 2) I've found yet another divergence from the spec -- but this > was in the original implementation, rather than being > something that has been introduced. In do_futimes() there is > > if (!times && !(file->f_mode & FMODE_WRITE)) > write_error = -EACCES; > > However, the check here should not be against the f_mode (file access > mode), but the against actual permission of the file referred to by > the underlying descriptor. This means that for the do_futimes() + > times==NULL case, a set-user-ID root program could open a file > descriptor O_RDWR/O_WRONLY for which the real UID does not have write > access, and then even after reverting the the effective UID, the real > user could still update file. > > I'm not sure of the correct way to get the required nameidata (to do a > vfs_permission() call) from the file descriptor. Can you give me a > tip there?
Could you point me at the right way of doing this? Cheers, Michael --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] utimensat() non-conformances and fixes -- version 2
, Michael Kerrisk
, (Fri May 16, 4:31 am)
Re: [PATCH] utimensat() non-conformances and fixes -- versio...
, Miklos Szeredi
, (Fri May 16, 12:59 pm)
[PATCH] utimensat() non-conformances and fixes [v3]
, Michael Kerrisk
, (Fri May 30, 11:34 am)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Michael Kerrisk
, (Tue Jun 3, 7:05 am)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Miklos Szeredi
, (Tue Jun 3, 7:13 am)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Michael Kerrisk
, (Tue Jun 3, 7:52 am)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Al Viro
, (Tue Jun 3, 7:22 am)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Miklos Szeredi
, (Tue Jun 3, 8:16 am)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Al Viro
, (Tue Jun 3, 9:05 am)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Michael Kerrisk
, (Tue Jun 3, 7:27 am)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Jamie Lokier
, (Tue Jun 3, 7:30 am)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Michael Kerrisk
, (Tue Jun 3, 7:39 am)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Al Viro
, (Tue Jun 3, 7:49 am)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Jamie Lokier
, (Tue Jun 3, 8:01 am)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Al Viro
, (Tue Jun 3, 8:08 am)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Jamie Lokier
, (Tue Jun 3, 8:10 am)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Al Viro
, (Tue Jun 3, 7:58 am)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Miklos Szeredi
, (Fri May 30, 12:37 pm)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Michael Kerrisk
, (Fri May 30, 2:24 pm)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Andrew Morton
, (Fri May 30, 4:17 pm)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Michael Kerrisk
, (Sat May 31, 1:44 am)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Michael Kerrisk
, (Fri May 30, 3:43 pm)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Miklos Szeredi
, (Fri May 30, 4:17 pm)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Michael Kerrisk
, (Sat May 31, 1:28 am)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Miklos Szeredi
, (Fri May 30, 3:22 pm)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Matthew Wilcox
, (Fri May 30, 3:32 pm)
Re: [PATCH] utimensat() non-conformances and fixes [v3]
, Miklos Szeredi
, (Fri May 30, 4:08 pm)
Re: [PATCH] utimensat() non-conformances and fixes -- versio...
, Michael Kerrisk
, (Sat May 17, 3:57 pm)
Re: [PATCH] utimensat() non-conformances and fixes -- versio...
, Miklos Szeredi
, (Mon May 19, 5:50 am)
Re: [PATCH] utimensat() non-conformances and fixes -- versio...
, Michael Kerrisk
, (Mon May 19, 8:24 am)
Re: [PATCH] utimensat() non-conformances and fixes -- versio...
, Miklos Szeredi
, (Mon May 19, 9:17 am)
Re: [PATCH] utimensat() non-conformances and fixes -- versio...
, Miklos Szeredi
, (Mon May 19, 6:12 am)
Re: [PATCH] utimensat() non-conformances and fixes -- versio...
, Michael Kerrisk
, (Fri May 16, 4:34 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Rob Landley
What still uses the block layer?
git
:
linux-netdev
:
Antonio Almeida
HTB accuracy for high speed
Alexey Dobriyan
Re: [GIT]: Networking
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
743 guests
online.
Online users
wendy44iza
Syndicate