Commit graph

7304 commits

Author SHA1 Message Date
Steve Beattie
6b54cce437 This patch removes using the libcap-devel capability header, and only
uses the linux kernel definitions of them.

(It also adds to the simple capbilities regression tests verifying the
parser can parse the new audit capiability names.)
2006-11-08 10:59:09 +00:00
David J Drewelow
5e3729de07 added new .po files to LANG 2006-11-08 10:53:08 +00:00
David J Drewelow
504d5cd2c0 added new po files to LANG 2006-11-08 10:50:00 +00:00
John Johansen
508d8e1da7 add audit_write and audit_control to the list of capabilities tested against, for current regression tests. This does not extend the regression suite to test the audit_write and audit_control capabilities 2006-11-08 10:46:49 +00:00
John Johansen
facf7569dc add the ability to specify the linux audit_write and audit_control capabilities 2006-11-08 10:43:11 +00:00
John Johansen
8a55d0874c add the ability to log the audit_write and audit_control capabilities 2006-11-08 10:40:34 +00:00
David J Drewelow
6879c5b32d updated files from lcn repository 2006-11-08 10:37:40 +00:00
David J Drewelow
be21bcaf81 updated files pulled from LCN repository 2006-11-08 10:33:48 +00:00
Steve Beattie
e3503227d5 Fixup changelog, in specfile and changes file. 2006-11-07 22:08:48 +00:00
Steve Beattie
23605a1d2e /lib/lsb/init-functions on SUSE provides the sh killproc() function; use
it instead to make cross-platform compatability easier.
2006-11-06 10:50:06 +00:00
Seth Arnold
11fffe3988 new profiles for clamav and syslog-ng; improvements to postfix's virtual component. Changes suggested by Christian Boltz, thanks 2006-11-05 08:39:33 +00:00
Seth Arnold
bd0abb8929 remove the Px rules on ld.so; remove the ld.so profiles; remove the ldd profile. Use the 'm' rules to say which files can be mapped executable as sole source of 'read-doesn't-imply-execute raising the bar' 2006-11-05 08:37:48 +00:00
Steve Beattie
af33afe8f7 Convert the rest of the packages to symlinking in the common directory
so that 'make dist' will work.
2006-11-04 21:34:47 +00:00
Steve Beattie
63e3bea106 svn ignore the new symlink to the common directory. 2006-11-04 19:54:40 +00:00
Steve Beattie
b2b4a2fb2f Make 'make clean' get rid of obsolete Make.rules hardlink. 2006-11-04 19:21:09 +00:00
Steve Beattie
34119ab329 Get rid of older Make.rules hardlink. 2006-11-04 19:16:36 +00:00
Steve Beattie
c5243e5e5a Convert the way Make.rules is included, so that 'make dist' will work. 2006-11-03 23:52:49 +00:00
Steve Beattie
7d29ce4a2e Bump revision to 2.0.1 (in part for opensuse 10.2 release) 2006-11-03 22:07:47 +00:00
Seth Arnold
a003664ef6 remove empty lines with spaces, reported by cboltz 2006-11-03 12:58:52 +00:00
Seth Arnold
36db2bf010 remove empty lines with spaces, reported by cboltz 2006-11-03 12:58:04 +00:00
Steve Beattie
3949b95110 Baby step to making 'make dist' actually work. this will mean common/
will be a symlink in the directory.
2006-11-03 10:19:42 +00:00
Seth Arnold
c54f73f67f some cleanups, clarifications, that weren't checked in when written, for whatever reason.. 2006-11-03 09:47:55 +00:00
John Johansen
c0174cd7d4 have changehat return ECHILD error code when a profile doesn't contain any hats 2006-11-01 12:51:53 +00:00
David J Drewelow
823774b88e changes to add yast control of complain/enforce mode in profiles 2006-11-01 12:21:59 +00:00
David J Drewelow
c71f81ca4f agent for complain/enforce mode control in yast 2006-11-01 12:21:01 +00:00
Steve Beattie
03455d0ff8 Ignore autogenerated files in svn. 2006-10-31 17:14:58 +00:00
Steve Beattie
66850c29a3 Fix a date type in the changelog that prevents the specfile from
building an rpm. ALso converted the package revision to just be the svn
repo version.
2006-10-31 17:12:55 +00:00
Steve Beattie
3c81b9e434 Set it to ignore the new specfile name. 2006-10-31 17:10:50 +00:00
Steve Beattie
4766dc8db0 'make' and 'make all' should probably just build the apache module and
not the rpm. 'make rpm' should still work.
2006-10-31 17:00:55 +00:00
Steve Beattie
a3a6238378 Complete renaming of apache2-mod-apparmor to apache2-mod_apparmor.
(part two of two)
2006-10-31 16:58:13 +00:00
Steve Beattie
9105494945 Rename apache2-mod-apparmor to apache2-mod_apparmor to conform to SUSE
style (even if it means a consistent name can't be used on debian :-/).
(part one of two).
2006-10-31 16:56:11 +00:00
Steve Beattie
ce1b32a773 This patch updates the change_hat(2) manpage, to better reflect the
(updated) error codes returned by the module and the libapparmor
function. It also converts the package to use the svn repo version as
the package version.
2006-10-31 16:49:36 +00:00
Steve Beattie
53f1a9cdc5 (from jmichael@suse.de)
This patch adds support for a 'debug' flag to the pam_apparmor pam
module, which will cause it to report more of its attempted operations
to syslog.
2006-10-31 16:33:02 +00:00
Steve Beattie
8cf0339798 Set svn:keywords proprty on added files from last commit. 2006-10-31 16:02:07 +00:00
Steve Beattie
36523dc023 This (updated) patch provides some limited configurability for
pam_apparmor pam module. The default behavior is to use the user's
primary groupname, and to fall back to the DEFAULT hat. You can change
this behavior by appending order=type1[,type2,type3] to the pam_apparmor
session line in the pam config for the application you're applying
pam_apparmor to. The available types are 'user' for username, 'group'
for groupname, and 'default' for DEFAULT. Thus, adding a configuration
entry like:

  session  optional       pam_apparmor.so order=group,default

is equivalent to the default behavior for pam_apparmor.

The parse_option code got a little more complicated than I'd hoped
it would be; I could have just had types by space delimited options to
module, but I thought I'd leave open the possibility of adding additional
options to the module ('debug' immediately comes to mind).

I disabled the short-circuit that occurs if EPERM is returned by
change_hat, as we can't detect that this is because there's no hats or
that the application is entirely undefined; if ECHILD makes it in then
we can re-enable this.

I am less convinced now that pam_apparmor needs to be 'optional' than
'required'; killing the session if none of the change_hats succeeds is
starting to feel like reasonable behavior.

---
 changehat/pam_apparmor/Makefile             |   11 +
 changehat/pam_apparmor/README               |   74 +++++++++++++
 changehat/pam_apparmor/get_options.c        |  157 ++++++++++++++++++++++++++++
 changehat/pam_apparmor/pam_apparmor.c       |  155 +++++++++++++++++++--------
 changehat/pam_apparmor/pam_apparmor.h       |   56 +++++++++
 changehat/pam_apparmor/pam_apparmor.spec.in |    2 
 6 files changed, 406 insertions(+), 49 deletions(-)
2006-10-31 15:54:47 +00:00
Steve Beattie
63712f92db * Sat Oct 28 2006 - olh@suse.de
- boot.apparmor should start after boot.localfs (#215156)
2006-10-31 15:33:10 +00:00
Seth Arnold
45768e06b1 set svn:keywords on new profile 2006-10-31 14:27:54 +00:00
Seth Arnold
888bb58330 lost profile, not sure why it wasn't checked in earlier 2006-10-31 14:26:09 +00:00
Steve Beattie
59f30353a1 This patch adds a 'make dist' target to all the apparmor packages, which
creates a tarball i(and specfile) similar to 'make tarball' except that
it uses svn export to pull the latest committed version rather than the
currently contents of the tree (as make tarball does). This is to make
pristine checkins to SUSE's autobuild system and the openSUSE
buildservice easier.
2006-10-31 14:08:34 +00:00
Steve Beattie
36b6bb11bf Add license/COPYING file. We use the same license as Linux PAM here as
(according to the comments) the code started out based on the pam_motd
module (included with that package).
2006-10-25 20:28:40 +00:00
Steve Beattie
2a67f47bce Remove automatic editing of pam's session-common files.
Use RPM_OPT_FLAGS for CFLAGS when building with rpm.
Cleanup older tarballs during make clean.
2006-10-25 20:13:48 +00:00
Dominic Reynolds
60b7e59a89 Missing checkins for syntax checks. 2006-10-25 17:19:14 +00:00
John Johansen
42859f0b48 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.
2006-10-24 22:29:34 +00:00
John Johansen
8c1bf90305 This patch modifies the changehat interface to return EPERM instead
of EACCESS when an unconfined process calls changehat.  This enables
applications using the changehat api to detect that the application
is not confined so probing for a matching hat can be aborted.
2006-10-24 22:24:44 +00:00
John Johansen
ddfbd98849 This patch modifies the changehat interface to return EPERM instead
of EACCESS when an unconfined process calls changehat.  This enables
applications using the changehat api to detect that the application
is not confined so probing for a matching hat can be aborted.
2006-10-24 22:23:21 +00:00
John Johansen
d2c636b859 regression tests for changehat returning eperm when an application is unconfined and tries to do a changehat 2006-10-24 22:15:32 +00:00
Jesse Michael
648cbe970c - change pam_apparmor to try to change to a hat based on the name of the
user's primary group instead of one based on their username.
- add new calls to pam_syslog() to aid in diagnosing problems.
2006-10-23 18:12:39 +00:00
John Johansen
e813acfd50 fix a small race condition where is_done is set before the thread is actually done. 2006-10-18 21:12:30 +00:00
Seth Arnold
86f5b210b9 https://bugzilla.novell.com/show_bug.cgi?id=178073
add full /etc/postfix/*.db read access to all postfix programs. This is
just easier.
Also let the smtp portion write to the rewrite pipe.
2006-10-18 20:13:42 +00:00
Dominic Reynolds
8098087993 Moved definition of variables to top of spec file. The previous
placement (between %description and %prep) caused a problem with the
build system.
2006-10-17 17:00:15 +00:00