Messages in this thread | | | Date | Wed, 28 Mar 2001 15:04:46 +0100 | From | Simon Williams <> | Subject | Re: Disturbing news.. |
| |
In message <Pine.GSO.3.96.1010328144551.7198A-100000@laertes>, Walter Hofmann <snwahofm@mi.uni-erlangen.de> writes > > >On Wed, 28 Mar 2001, Jesse Pollard wrote: > >> >Any idea? >> >> Sure - very simple. If the execute bit is set on a file, don't allow >> ANY write to the file. This does modify the permission bits slightly >> but I don't think it is an unreasonable thing to have. > >And how exactly does this help? > >fchmod (fd, 0666); >fwrite (fd, ...); >fchmod (fd, 0777); >
I think their point was that a program could only change permissions of a file that was owned by the same owner. If a file is owned by a different user & has no write permissions for any user, the program can't modify the file or it's permissions.
Sounds like a good plan to me.
-- Simon Williams - 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/
| |