You are not logged in.

#1 2015-01-10 07:25:31

wthxjq
Member
Registered: 2015-01-10
Posts: 1

[SOLVED] Firefox is changing search.json

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

#2 2015-01-10 08:02:20

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Firefox is changing search.json

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)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB