Messages in this thread |  | | Date | Fri, 13 Dec 1996 16:57:17 -0500 (EST) | From | Dan Merillat <> | Subject | Re: 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
|  |