← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1288742] Re: clock app using incorrect path for config file

 

I think this is StateSaver using QSettings which writes the $APP_ID.conf
file - the temporariy file is not being created from within the
StateSaver code.

** Changed in: qtorganizer5-eds (Ubuntu)
       Status: New => Invalid

** Changed in: qtorganizer5-eds (Ubuntu)
     Assignee: Renato Araujo Oliveira Filho (renatofilho) => (unassigned)

** Changed in: ubuntu-ui-toolkit (Ubuntu)
     Assignee: Christian Dywan (kalikiana) => (unassigned)

** Also affects: qtbase-opensource-src (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: ubuntu-ui-toolkit (Ubuntu)
       Status: Confirmed => Invalid

** Changed in: qtbase-opensource-src (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1288742

Title:
  clock app using incorrect path for config file

Status in Clock application for Ubuntu devices:
  Invalid
Status in “qtbase-opensource-src” package in Ubuntu:
  Confirmed
Status in “qtorganizer5-eds” package in Ubuntu:
  Invalid
Status in “ubuntu-ui-toolkit” package in Ubuntu:
  Invalid

Bug description:
  The following apparmor denials were observed with 1.0.349 of the clock-app:
  Mar  6 07:22:07 ubuntu-phablet kernel: [167149.647858] type=1400 audit(1394112127.627:121): apparmor="DENIED" operation="mknod" parent=1696 profile="com.ubuntu.clock_clock_1.0.349" name="/home/phablet/.config/com.ubuntu.clock.conf.J16567" pid=16567 comm="qmlscene" requested_mask="c" denied_mask="c" fsuid=32011 ouid=32011
  Mar  6 07:22:07 ubuntu-phablet kernel: [167149.648224] type=1400 audit(1394112127.627:122): apparmor="DENIED" operation="mknod" parent=1696 profile="com.ubuntu.clock_clock_1.0.349" name="/home/phablet/.config/com.ubuntu.clock.conf.T16567" pid=16567 comm="qmlscene" requested_mask="c" denied_mask="c" fsuid=32011 ouid=32011

  The above looks to be a temporary file that would be written before
  moving the final file to /home/phablet/.config/com.ubuntu.clock.conf.
  This denial is preventing saving to the config file. AppArmor policy
  already has these rules:

  @{APP_PKGNAME}="com.ubuntu.clock"
    ...
    owner @{HOME}/.config/@{APP_PKGNAME}/                 rw,      # subdir of XDG_CONFIG_HOME
    owner @{HOME}/.config/@{APP_PKGNAME}/**             mrwkl,

  Please adjust the clock app to use
  ~/.config/com.ubuntu.clock/com.ubuntu.clock.conf instead of
  ~/.config/com.ubuntu.clock.conf. I couldn't find anything in the clock
  app that showed it specified this file itself, so this is likely a
  toolkit issue.

  Adding an ubuntu-ui-toolkit task. Please feel free to close the clock
  app task if the bug is in ubuntu-ui-toolkit or vice versa.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-clock-app/+bug/1288742/+subscriptions


References