Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
A discussion started on the nano devel mailing list about the option --nofollow. Ideally, this prohibits the editor from writing to a file referenced by a symlink.
At first it seems nobody was concerned about the problem, but I and one other gentleman pointed out that in a shared dir, root writing to a file that is changed, mid edit, to a symlink would pose a significant security problem.
Many editors warn if a file has changed, but in the age of race conditions, can you really tell how it changes between the time you hit save and the time it actually writes out to disk?
My question is, where should we go from here. Is this a real problem, or am I getting excited about nothing?
Ancient problem. There's plenty of examples resulting in arbitrarily overwriting files. As for how to move forward maybe start by reading comments here.
It's always been possible ... but, that is why we invented symlinks!
To me, this sort of scenario becomes rather farfetched. It presupposes the existence of a rogue process that knows what you are doing and that contravenes that intention in a certain way and at a certain time. It also conveniently presupposes that the root user is the one whose activities are being interfered with, in this very-certain way. To me, this "vulnerability" is truly hypothetical.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.