[karmic] aa_change_profile() no longer works
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
John Johansen |
Bug Description
Per John Johansen, the kernel interface changed for aa_change_
Code:
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <time.h>
#include <limits.h>
#include <stdarg.h>
#include <sys/apparmor.h>
int main(int argc, char *argv[]) {
char *profile_name = "/usr/sbin/
if (aa_change_
exit(1);
}
}
Profile:
#include <tunables/global>
/home/jamie/
#include <abstractions/base>
/** rwmkl,
change_profile -> /usr/sbin/tcpdump,
}
Marking as regression potential as anything using aa_change_profile() will break. Nothing packaged in Ubuntu is using this AFAIK, however it will break custom code and blocks https:/
ProblemType: Bug
Architecture: amd64
Date: Mon Jul 20 15:53:09 2009
DistroRelease: Ubuntu 9.10
HibernationDevice: RESUME=
Package: linux-image-
ProcCmdLine: root=UUID=
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
RelatedPackageV
SourcePackage: linux
Uname: Linux 2.6.31-3-generic x86_64
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
This is still a problem with up to date karmic, however the error message is different. Using the above test case I get:
$ sudo ./a.out
could not change profile: Permission denied
$ cat /proc/version_ signature
Ubuntu 2.6.31-5.24-generic
apparmor: 2.3.1+1403-0ubuntu9