Commit graph

478 commits

Author SHA1 Message Date
Tony Jones
138fc035b5 Change parameter order to be dentry/mnt -- as suggested by Jan Blunck. 2007-01-17 07:12:32 +00:00
Steve Beattie
08e94e2969 Finally got the right set of in-place variable replacements that strips
off trailing slashes on the build directory, which horribly confused
rpm's check for unpackaged files.
2007-01-11 21:55:08 +00:00
David J Drewelow
eb5dccfa34 usability & bugfixes #158599, i18n changes 2007-01-11 09:40:48 +00:00
Andreas Gruenbacher
6422fe41c4 - Patches we are working on for submitting upstream. 2007-01-10 06:33:09 +00:00
John Johansen
38c621e337 branch of AA module targeted at lkml submission 2007-01-10 04:26:40 +00:00
Steve Beattie
d67b4ca48d Add missing sd_log_warning_msg function to initscripts that were missing it.
Get rid of dependency on subdomain-master package.
2007-01-09 07:59:39 +00:00
Steve Beattie
57761032f9 Add a timeout to work around ptrace(PTRACE_SYSCALL) on a parent attached
ptrace() call never waking the child process on RHEL5 beta 2. Also did
some minor code formatting cleanup.
2007-01-08 12:08:08 +00:00
John Johansen
9d6ce46f3b fix changehat tests to work with the new ECHILD error code returned by the module when a changehat is attempted against a profile with no hats 2007-01-05 21:14:59 +00:00
Seth Arnold
604b97b271 new passwd profile and sshd changes from Volker Kuhlmann in extras/ 2007-01-05 13:02:25 +00:00
Seth Arnold
749e1cb0aa Fix from Volker Kuhlmann for /tmp symlink to /var/tmp, for ntpd 2007-01-05 12:38:13 +00:00
John Johansen
257e91530d 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.

The audit log message caching is per task and applies to both complain
and reject mode messages.  The of the active task through profile
replacement, setting, or changehat will cause the cache to clear so a
new message can be emitted.
2007-01-04 09:02:56 +00:00
John Johansen
f562cc440f make the nextgen branch of the module the new current module 2007-01-04 08:55:37 +00:00
John Johansen
99fcdfa3c8 rename deprecated module code from module to module-deprecated 2007-01-04 08:54:20 +00:00
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