lkml.org 
[lkml]   [1996]   [Dec]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: QUOTA


There is actually precident for mucking with link:
fs/namei.c:do_link()
/*
* A link to an append-only or immutable file cannot be created
*/
if (IS_APPEND(oldinode) || IS_IMMUTABLE(oldinode)) {
iput(dir);
iput(oldinode);
return -EPERM;
}
if (!dir->i_op || !dir->i_op->link) {
iput(dir);
iput(oldinode);
return -EPERM;
}

Gee, what's wrong with creating an immutable file somewhere else?
The permissions didn't change... it's an immutable file, but it may
end up being somewhere unexpected. Anyway, is do_link running as
the user? (I assume it is, since it's doing permission checking)

--Dan


\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.028 / U:1.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site