[lkml]   [2009]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v3] vfs: new O_NODE open flag
On Sat, 05 Dec 2009, Andy Lutomirski wrote:
> I don't know what that means. Do you mean that if:
> root creates /dev/foo with 0666 perms
> eviluser opens /dev/foo with O_NODE

More precisely, O_NODE | O_NOACCESS

> root chmods /dev/foo to 0000
> root unlinks /dev/foo
> then eviluser can't open /proc/self/fd/whatever for O_RDRW


Maybe alan was worried about the O_NODE | O_RDWR, etc. case? That
simply doesn't make any sense for special files.

Current patch only allows O_NOACCESS for any file type, but other
access modes may make sense for regular files, directories, and maybe
even symlinks.


 \ /
  Last update: 2009-12-05 20:43    [W:0.046 / U:3.540 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site