gconfd saved_state file has executable tag set

Bug #777565 reported by Paul McGarry
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gconf
Won't Fix
Medium
gconf (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Binary package hint: gconf

gconfd seems to be setting the executable bit on a file which presumably has no need to be executable

paulm@noobuntu:~/.gconfd$ ls -l
total 1624
-rwx------ 1 paulm paulm 1654806 2011-05-05 13:54 saved_state

This could (perhaps in combination with other factors) be a security issue and also cause warnings from security tools that look for files with potentially dangerous or unexpected attributes.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: libgconf2-4 2.32.2-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic-pae 2.6.38.2
Uname: Linux 2.6.38-8-generic-pae i686
Architecture: i386
Date: Thu May 5 13:53:52 2011
ExecutablePath: /usr/lib/libgconf2-4/gconfd-2
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANGUAGE=en_AU:en
 LANG=en_AU.UTF-8
SourcePackage: gconf
UpgradeStatus: Upgraded to natty on 2011-04-15 (19 days ago)

Revision history for this message
Paul McGarry (paul-paulmcgarry) wrote :
Revision history for this message
Peter Wu (lekensteyn) wrote :

I found the problem:

- when saving the state, a temporary file is created: logfile ".tmp" (saved_state.tmp)
- this file is created with mode 0700
- if the file is succesful created, the file got moved to logfile (saved_state)

The attached patch sets the mode to 0600 (read + write) instead of 0700.

Changed in gconf (Ubuntu):
status: New → Confirmed
tags: added: patch
Revision history for this message
Sebastien Bacher (seb128) wrote :

The fix should be sent to bugzilla.gnome.org

Changed in gconf (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Low
Changed in gconf:
importance: Unknown → Medium
status: Unknown → New
Changed in gconf:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.