The AppArmor user space development project.
Find a file
John Johansen c60fb0e392 This patch fixes some audit error messages that apparmor generates in 2.6.18.
It turns out that audit and selinux were modified to slightly change the
behavior of getprocattr.

The changes are:
1.  when the audit subsystem calls security_getprocattr it only allows
    for a return code of EINVAL

2.  when the audit subsystem calls security_getprocattr with the size
    paramter set to 0.  It expects the returned size to be the size
    that would be put in the buffer.

    This behavior is undocumented in LSM but the changes showed up in
    audit and selinux.


This patch fixes AA so that when 0 is passed it will return the size
that would have been read.  This in turn fixes the problem where the
audit system spits out a ton of
error in audit_log_task_context messages

the AA getprocattr handling can still return error messages that are
not EINVAL but these should not happen in the audit log context unless
audit makes an error.

The possible places are:
- audit passes a buffer that is to small - this shouldn't happen since
  audit uses the return value from a prob with parameter size == 0
- audit task context is trying to read a /proc/<pid>/attr/current that is
  the current tasks context.
  This shouldn't happen since the task context is for the current task.
- memory allocation fails
  This one will generate the message but the audit code its self will
  generate the message if its allocation fails.
2007-01-04 08:30:08 +00:00
changehat Fix for BZ# 230011 (https://bugzilla.novell.com/show_bug.cgi?id=230011) - add checks for passing "" or NULL as hatname in the ChangeHatValve and JNI changehat wrapper function 2006-12-20 18:00:14 +00:00
common This patch makes it so that translations added to po/ directories are 2006-11-15 09:22:15 +00:00
docs modify the instructions to match the new vim package for opensuse 10.2; remove the specific color descriptions; there are now enough colors/combinations that a strict listing wouldn't be very useful any more 2006-11-10 12:47:28 +00:00
kernel-patches Fixup a weird tyop in the patch header for this patch. 2007-01-03 08:52:56 +00:00
management fixes for i18n 2007-01-03 10:45:34 +00:00
module This patch fixes some audit error messages that apparmor generates in 2.6.18. 2007-01-04 08:30:08 +00:00
module-nextgen/apparmor 2.6.18 apparently was changed to use Module.symvers not 2007-01-04 05:17:37 +00:00
parser Fix small memory leak in the parser. 2006-12-19 17:44:53 +00:00
profiles postfix permissions=paranoid fixes from Volker Kuhlmann 2007-01-03 07:29:28 +00:00
tests jjohanen pointed out that our regression tests were not compiling on 2006-12-04 06:43:42 +00:00
utils Change to improve i18n string match. 2007-01-03 10:44:01 +00:00