zlacker

[parent] [thread] 1 comments
1. BobbyT+(OP)[view] [source] 2026-02-04 03:55:26
I intensely hate that a stupid application can modify .bashrc and permanently persist itself.

Sure, in theory, SELinux could prevent this. But seems like an uphill battle if my policies conflict with the distro’s. I’d also have to “absorb” their policies’ mental model first…

replies(1): >>themaf+Jc
2. themaf+Jc[view] [source] 2026-02-04 06:07:30
>>BobbyT+(OP)
I tend to think things like .bashrc or .zshrc are bad ideas anyways. Not that you asked but I think the simpler solution is to have those files be owned by root and not writable by the user. You're probably not modifying them that often anyways.
[go to top]