apparmor disallows truncate of deleted file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
John Johansen | ||
Karmic |
Fix Released
|
Undecided
|
Unassigned | ||
Lucid |
Fix Released
|
Medium
|
John Johansen |
Bug Description
I don't have a simple reproducer, but when testing out a profiling bug for the zotero (http://
type=APPARMOR_
The decoded filename is '/var/tmp/
#include <abstractions/
The user-tmp abstraction has:
/var/tmp/** rwkl,
/var/tmp/ rw,
ProblemType: Bug
AplayDevices:
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/pcmC0D0p: jamie 3183 F...m pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
Card hw:0 'Intel'/'HDA Intel at 0xe0220000 irq 31'
Mixer name : 'SigmaTel STAC9227'
Components : 'HDA:83847618,
Controls : 32
Simple ctrls : 22
Date: Wed Oct 14 10:33:42 2009
DistroRelease: Ubuntu 9.10
HibernationDevice: RESUME=
IwConfig:
lo no wireless extensions.
eth0 no wireless extensions.
virbr0 no wireless extensions.
Package: linux-image-
ProcCmdLine: root=UUID=
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
RelatedPackageV
RfKill:
SourcePackage: linux
Uname: Linux 2.6.31-14-generic x86_64
WpaSupplicantLog:
dmi.bios.date: 08/04/2006
dmi.bios.vendor: Intel Corp.
dmi.bios.version: CO96510J.
dmi.board.
dmi.board.name: DQ965GF
dmi.board.vendor: Intel Corporation
dmi.board.version: AAD41676-400
dmi.chassis.type: 2
dmi.modalias: dmi:bvnIntelCor
tags: | added: apparmor |
Changed in linux (Ubuntu): | |
status: | Confirmed → Fix Committed |
The attached C file can be used to reproduce, the truncate call post unlink will fail.