drift file blocked by apparmor ntp profile

Bug #456308 reported by Sergei Genchev
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ntp (Ubuntu)
Fix Released
Medium
Jamie Strandboge
Karmic
Fix Released
Medium
Jamie Strandboge

Bug Description

Binary package hint: apparmor

ntp cannot create a temp file. In the usr.sbin.ntpd apparmor profile this file set as:
/var/lib/ntp/ntp.drift.TEMP rw,
 but ntp is actually trying to create /var/lib/ntp/drift.TEMP file.

Log entry from my PC:
Oct 20 08:05:40 sergei-desktop kernel: [568826.000916] type=1503 audit(1256043940.621:195): operation="mknod" pid=2024 parent=1 profile="/usr/sbin/ntpd" requested_mask="w::" denied_mask="w::" fsuid=119 ouid=119 name="/var/lib/ntp/drift.TEMP"

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Thank you for using Ubuntu and taking the time to report a bug. Does adjusting /etc/apparmor.d/usr.sbin.ntpd from:

  /var/lib/ntp/ntp.drift rw,
  /var/lib/ntp/ntp.drift.TEMP rw,

to:

  /var/lib/ntp/*drift rw,
  /var/lib/ntp/*drift.TEMP rw,

and running 'sudo apparmor_parser -r /etc/apparmor.d/usr.sbin.ntpd' fix this for you?

Changed in apparmor (Ubuntu):
assignee: nobody → Jamie Strandboge (jdstrand)
importance: Undecided → High
milestone: none → ubuntu-9.10
status: New → Triaged
tags: added: regression-potential
summary: - apparmor ntp profile needs corrections
+ drift file blocked by apparmor ntp profile
Changed in apparmor (Ubuntu Karmic):
importance: High → Medium
Changed in apparmor (Ubuntu Karmic):
status: Triaged → Fix Committed
affects: apparmor (Ubuntu Karmic) → ntp (Ubuntu Karmic)
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

This could be an SRU, but if CDs need to get respun anyway, it would be nice if this made it into release.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ntp - 1:4.2.4p6+dfsg-1ubuntu5

---------------
ntp (1:4.2.4p6+dfsg-1ubuntu5) karmic; urgency=low

  * debian/apparmor-profile: adjust location of drift files (LP: #456308)

 -- Jamie Strandboge <email address hidden> Wed, 21 Oct 2009 07:07:31 -0500

Changed in ntp (Ubuntu Karmic):
status: Fix Committed → Fix Released
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.