You are not logged in.
Hi, I'm trying to prevent firefox from changing search.json by setting the permissions to 444 root:root, but it's somehow changing them back to 1000:1000 600 when I run firefox as my user. Is there a way to prevent this?
STEPS:
1. Set permissions as root:
# chown root:root search.json ; chmod 444 search.json
2. List permissions:
$ ls -lA search.json
-r--r--r-- 1 root root 3691 Jan 9 23:11 search.json
$
3. Run firefox, search for something in the url bar, then close firefox.
$ firefox -profile ~/.local/firefox/e -P e https://archlinux.org/
4. List permissions:
$ ls -lA search.json
-rw------- 1 e e 170010 Jan 9 23:12 search.json
$
Last edited by wthxjq (2015-03-26 17:15:00)
Offline
I'd guess that actually there is no privilege escalation going on at all, and instead firefox is deleting the existing search.json file and creating a new one.
Try setting the file as immutable instead...
chattr +i search.json
Last edited by Slithery (2015-01-10 08:03:16)
Offline