← Back to team overview

ubuntu-sdk-bugs team mailing list archive

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

 

Public bug reported:

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.

** Affects: ubuntu-clock-app
     Importance: Undecided
         Status: New

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: High
         Status: New


** Tags: application-confinement avengers

** Also affects: ubuntu-ui-toolkit (Ubuntu)
   Importance: Undecided
       Status: New

** Description changed:

  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,
+   ...
+   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.

** Changed in: ubuntu-ui-toolkit (Ubuntu)
   Importance: Undecided => High

-- 
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:
  New
Status in “ubuntu-ui-toolkit” package in Ubuntu:
  New

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


Follow ups

References