Mailinglist Archive: opensuse-bugs (14787 mails)

< Previous Next >
[Bug 219309] New: apparmor module returns wrong error code when change_hat is done against a profile with no hats
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 8 Nov 2006 18:25:00 -0700 (MST)
  • Message-id: <bug-219309-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=219309

Summary: apparmor module returns wrong error code when change_hat
is done against a profile with no hats
Product: openSUSE 10.2
Version: Beta 2
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: AppArmor
AssignedTo: jjohansen@xxxxxxxxxx
ReportedBy: jjohansen@xxxxxxxxxx
QAContact: dreynolds@xxxxxxxxxx


The apparmor module returns the EPERM instead of ECHILD error code when a
change_hat call is made when confined by a profile with no hats.

The change_hat api for specifies that a change_hat done against and unconfined
application should return EPERM, while a change_hat against a confined
application with no hats returns ECHILD. This allows an application that uses
change_hat to detect the type of failure and take an appropriate action. In
10.2 it is not possible to detect the difference between change_hat of an
unconfined application and an application withot hats.


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

< Previous Next >