Commit graph

515 commits

Author SHA1 Message Date
John Johansen
cb28cf95cf Add caching of capability and syscall reject logging so that only the
first reject or complain message is logged.  This greatly reduces the
pressure on the auditing subsystem.
2007-01-04 08:50:48 +00:00
John Johansen
3a8869b0d9 add the ability to log the audit_write and audit_control capabilities that
were add in 2.6.11
2007-01-04 08:49:02 +00:00
John Johansen
7ef76882c1 have changehat return ECHILD error code when a profile doesn't contain any
hats
2007-01-04 08:30:37 +00:00
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
John Johansen
bbe0bbfe50 2.6.18 apparently was changed to use Module.symvers not
Module_s_.symvers. Fix to make clean to remove either.
2007-01-04 05:17:37 +00:00
David J Drewelow
cc8e068485 fixes for i18n 2007-01-03 10:45:34 +00:00
David J Drewelow
8f013b75bd i18n fixes 2007-01-03 10:44:53 +00:00
David J Drewelow
277a4e1c24 Change to improve i18n string match. 2007-01-03 10:44:01 +00:00
Steve Beattie
a60e0c221d Fixup a weird tyop in the patch header for this patch. 2007-01-03 08:52:56 +00:00
Seth Arnold
c7f91fa9cb postfix permissions=paranoid fixes from Volker Kuhlmann 2007-01-03 07:29:28 +00:00
Steve Beattie
5cadddf1ec 2.6.18 apparently was changed to use Module.symvers not
Module_s_.symvers. Fix to make clean to remove either.
2007-01-03 07:26:23 +00:00
Seth Arnold
db9b4978bf apache certificate and key fix from Volker Kuhlmann 2007-01-03 06:51:17 +00:00
Seth Arnold
4dfe5804f3 openSUSE 10.2's sshd config, fix from Volker Kuhlmann 2007-01-03 06:49:36 +00:00
Dominic Reynolds
967d5a4f87 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
Steve Beattie
0e969aa582 Fix small memory leak in the parser. 2006-12-19 17:44:53 +00:00
Steve Beattie
90c9b5c0cd This patch fixes the apparmor parser tst Makefile to not use popd/pushd
bashisms which were in place to get around PWD not getting set
correctly. Instead, fix the simple.pl script to call pwd directly.
Based on feedback from PLD/Arkadiusz Miskiewicz <arekm@maven.pl>.
2006-12-15 08:10:25 +00:00
Steve Beattie
1fa3f61c6a Fix from PLD/Arkadiusz Miskiewicz <arekm@maven.pl> to mark ksh to not be
profiled.
2006-12-12 11:05:46 +00:00
Steve Beattie
5f65fbccea Fix based on patch from PLD/Arkadiusz Miskiewicz <arekm@maven.pl> to
make the initscript more likely to function in shells other than bash.
2006-12-12 10:54:44 +00:00
Steve Beattie
8d0e3d3efc Postfix tlsmgr in 10.2 uses some kind of connection caching stuff;
without this fix, postfix that makes use of tls breaks. :-/
2006-12-08 06:26:21 +00:00
Steve Beattie
eddd069354 jjohanen pointed out that our regression tests were not compiling on
the openSUSE 10.2 RC candidates. This is because the _syscallN macros
are (apparently) no longer user visible. This patch replaces uses of
_syscallN() in the regression test source with invocations of syscall(2),
the preferred linux kernel way of doing things. With this patch, our
regression tests compile on the openSUSE 10.2 candidates as well as older
distributions (tested as far back as slackware 10.0, which includes a
2.4.x kernel).

(A missing license header got added as well as some minor coding style
cleanups leaked into the patch as well.)
2006-12-04 06:43:42 +00:00
Steve Beattie
dc5a481fdf https://bugzilla.novell.com/show_bug.cgi?id=219698
Fix the help text in the edit profile dialog. As well as closing the
 <code> block mentioned in the bug report, it also converts the list of
actions under the "add entry" drop down to an actual unorded list, and
adds a missing "Edit Entry" (useless) description.

Unfortunately, it also means changes to translated strings, though the
changes should be mechanical in nature and not require understanding
the languages themselves.
2006-11-30 08:00:46 +00:00
Seth Arnold
db58677ca4 make the /dev/log w, dependency explicit, rather than rely on abstractions/base to provide it 2006-11-27 10:44:24 +00:00
Seth Arnold
f845643c0a [Bug 220331] syslog-ng cannot log news messages -- syslog-ng can easily log to other uids and gids 2006-11-27 10:21:07 +00:00
Seth Arnold
59213c936e Bug 220331 - syslog-ng cannot log news messages -- Apparently Stefan's syslog-ng configuration logs news events into a subdir of /var/log 2006-11-21 06:18:03 +00:00
Steve Beattie
2f3695b0c7 Add #defines for AUDIT_WRITE and AUDIT_CONTROL as older kernel headers (suse
9.3 era) don't define these.
2006-11-20 05:26:25 +00:00
Steve Beattie
6271e1a510 This patch converts the call to fdopendir() to fclose(), opendir(), as
the former isn't supported on glibc before glibc 2.4 (SL10.0 and prior,
Annvix, etc.). I dislike the change because fdopendir() does exactly
what I want, and converting to straight opendir() introduces a small
race window, though paths in question should be under administrator
control anyway.
2006-11-20 05:20:16 +00:00
Dominic Reynolds
ce0b104088 More translation updates. 2006-11-20 04:49:16 +00:00
Dominic Reynolds
e456884095 More translation updates. 2006-11-20 04:48:27 +00:00
Dominic Reynolds
71a345d97a Updates from translation team. 2006-11-19 16:45:23 +00:00
Dominic Reynolds
ddc0cf76aa Updates from translation team. 2006-11-19 16:43:09 +00:00
David J Drewelow
c1c1e9a5eb fixed an untranslated string 2006-11-17 13:33:47 +00:00
David J Drewelow
3e711ea48a Fixes for bugs: 158599,171082,172624,173825 2006-11-17 10:14:45 +00:00
Seth Arnold
5cfb51c6b2 Bug 221111 - ntpd needs access to /proc/net/if_inet6 2006-11-16 12:16:10 +00:00
Seth Arnold
f4b0f9fe28 disable netstat profile: 10.2 beta kernels require an ungrantable ptrace privilege 2006-11-16 12:00:00 +00:00
Steve Beattie
4f16824434 This patch makes it so that translations added to po/ directories are
automatically added to the set of languages to be built and installed
unless they are explicitly added to the set of disabled translations.
This eliminates the need to manually add a lang to the Makefile when a
new translation is submitted (svn add will still be necessary).
2006-11-15 09:22:15 +00:00
Steve Beattie
e61bcba834 Make svn ignore generated html pages. 2006-11-15 09:21:34 +00:00
Seth Arnold
581713895d remove language dirs from spec 2006-11-14 13:08:06 +00:00
Seth Arnold
1d58158134 remove a bunch of duplicated languages; remove pig latin; remove them from the Makefile 2006-11-14 13:06:59 +00:00
Seth Arnold
27df0a157c Bug 215207 - apparmor-profiles: lib-ld missing in the profile -- now that the apparmor-profiles package has removed the ld.so profiles, genprof/autodep shouldn't be automatically providing 'px' access 2006-11-14 11:46:50 +00:00
Seth Arnold
3b5cb9709e Bug 197186 - apparmor breaks openntpd -- apparently openntpd uses the same daemon name as the xntpd-supplied ntpd, but uses a different configuration file. no other details in the bug report, i hope this is sufficient 2006-11-14 11:17:22 +00:00
David J Drewelow
1a4cbcbde5 missing scr file 2006-11-14 10:28:11 +00:00
David J Drewelow
387a03c185 Forgot to update spec file with change log for notification fixes 2006-11-13 11:57:48 +00:00
Seth Arnold
8b7c5d3369 remove half-baked code; this no longer seems like the right approach for a profile lint in the long run 2006-11-13 11:52:36 +00:00
David J Drewelow
11ed6c1ca5 fixed the insserv type 2006-11-13 10:29:02 +00:00
Seth Arnold
2c340e26a2 Bug 202095 - useradd / userdel profiles incomplete 2006-11-13 09:53:10 +00:00
Seth Arnold
5aacc30be4 Bug 219583 - rejecting w access for syslog-ng 2006-11-13 09:40:29 +00:00
Seth Arnold
5d6af299ba 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
Seth Arnold
723176b0ac remove the subdomain.d.5 subdomain.vim.5 subdomain.7 subdomain_parser.8 manpages; time to move on 2006-11-10 12:45:39 +00:00
Seth Arnold
1be73b0f47 clean up the change_hat manpage to reflect new error messages; also fix the example profile to function on systems with 'm' permissions 2006-11-10 12:10:30 +00:00
Steve Beattie
a7fa3ccbdc https://bugzilla.novell.com/show_bug.cgi?id=214293
Make aaventd initscript depend on the service 'apparmor', as provided by
the boot.apparmor initscript.
2006-11-10 12:09:07 +00:00