Initial import of Matthew Snelham <zeypher@sigalrm.com> latest ebuilds into the devel tree
and the skel.* files
This commit is contained in:
10
branches/experimental/sys-apps/apparmor-modules/ChangeLog
Normal file
10
branches/experimental/sys-apps/apparmor-modules/ChangeLog
Normal file
@@ -0,0 +1,10 @@
|
||||
# ChangeLog for sys-apps/apparmor-modules
|
||||
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: $
|
||||
|
||||
06 Mar 2007; Mario Fetka <mario-fetka@gmx.at>
|
||||
+apparmor-modules-2.0_p20061013.ebuild,
|
||||
+files/apparmor-modules-2.0_2.6.17.9_symbol_export.patch, +metadata.xml:
|
||||
Initial import of Matthew Snelham <zeypher@sigalrm.com> latest ebuilds into
|
||||
the devel tree
|
||||
|
||||
20
branches/experimental/sys-apps/apparmor-modules/Manifest
Normal file
20
branches/experimental/sys-apps/apparmor-modules/Manifest
Normal file
@@ -0,0 +1,20 @@
|
||||
AUX apparmor-modules-2.0_2.6.17.9_symbol_export.patch 2976 RMD160 b9232cb4b78bfccd7154f27af554aedc0a01b53f SHA1 19ac2f051379f6733f7760eee2c37dde670bb746 SHA256 f364111249e598379886880d427435474609898dd77df8770112b3594305bd80
|
||||
MD5 fb0f6966a5fafacc3ca5cd453973e3f9 files/apparmor-modules-2.0_2.6.17.9_symbol_export.patch 2976
|
||||
RMD160 b9232cb4b78bfccd7154f27af554aedc0a01b53f files/apparmor-modules-2.0_2.6.17.9_symbol_export.patch 2976
|
||||
SHA256 f364111249e598379886880d427435474609898dd77df8770112b3594305bd80 files/apparmor-modules-2.0_2.6.17.9_symbol_export.patch 2976
|
||||
DIST apparmor-external-module.tar.gz 112408 RMD160 b333459588b0ccaaf36c6247555ff560daa3f95c SHA1 fbef407f3611c8c38ca66ce977fc5271e4140eec SHA256 70d66089a46f87f7fbaf504a3e40e4511e21c4a03345f0142315743bb9278d2f
|
||||
EBUILD apparmor-modules-2.0_p20061013.ebuild 2247 RMD160 435c42cf683a81f4b2286b352ea15808f706e65a SHA1 0b48e5794f14cc9f379d7e1d27cf339115dc9138 SHA256 d472fd57a2055d116899f913ea8f4e1403e3641c3f61befa23c7d0fe3ca7d1e2
|
||||
MD5 0bd17071d33eebeca251d187f47f46c9 apparmor-modules-2.0_p20061013.ebuild 2247
|
||||
RMD160 435c42cf683a81f4b2286b352ea15808f706e65a apparmor-modules-2.0_p20061013.ebuild 2247
|
||||
SHA256 d472fd57a2055d116899f913ea8f4e1403e3641c3f61befa23c7d0fe3ca7d1e2 apparmor-modules-2.0_p20061013.ebuild 2247
|
||||
MISC ChangeLog 387 RMD160 6ea0e939c7cb81860c6df8d730f506dd32789b10 SHA1 7c519ccfc195bb12443c3fe83f08b6a1bce36f2b SHA256 2c71a0a1fa7ce89f6a803d1751e90ec10558f412383e1c4d7c54c071caae3f6b
|
||||
MD5 3842c37e18b50835e8cadd6b4d5006a1 ChangeLog 387
|
||||
RMD160 6ea0e939c7cb81860c6df8d730f506dd32789b10 ChangeLog 387
|
||||
SHA256 2c71a0a1fa7ce89f6a803d1751e90ec10558f412383e1c4d7c54c071caae3f6b ChangeLog 387
|
||||
MISC metadata.xml 380 RMD160 95812084d1fe1893b607bec7b448d2bd7920600a SHA1 766cf3cabd61149d9041b84aee4953f4f4e89b86 SHA256 5decb87b114447cecedd46af9b0ee264093dd4b0b1550aa6414c2fdf44ef26ee
|
||||
MD5 cf1a96cd124b5fc5b8646794bbc6b3cc metadata.xml 380
|
||||
RMD160 95812084d1fe1893b607bec7b448d2bd7920600a metadata.xml 380
|
||||
SHA256 5decb87b114447cecedd46af9b0ee264093dd4b0b1550aa6414c2fdf44ef26ee metadata.xml 380
|
||||
MD5 ada15501d8ce59813443b9fb8b7359ef files/digest-apparmor-modules-2.0_p20061013 274
|
||||
RMD160 76b75c7fd71ca82c198ecb095af6723f6314188e files/digest-apparmor-modules-2.0_p20061013 274
|
||||
SHA256 f382eb61c05a9f0e47d7b5e336bb296846875f76e2fe59261eaab4cf9d42d93c files/digest-apparmor-modules-2.0_p20061013 274
|
||||
@@ -0,0 +1,85 @@
|
||||
# Copyright 1999-2007 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
inherit linux-mod
|
||||
|
||||
MY_S="${WORKDIR}/apparmor_modules/module"
|
||||
MONTH="October"
|
||||
|
||||
DESCRIPTION="Kernel modules for AppArmor"
|
||||
HOMEPAGE="ihttp://forge.novell.com/modules/xfmod/project/?apparmor"
|
||||
SRC_URI="http://forgeftp.novell.com/apparmor/Development%20-%20${MONTH}%20Snapshot/apparmor-external-module.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="virtual/libc"
|
||||
RDEPEND="${DEPEND}
|
||||
sys-apps/apparmor-parser"
|
||||
|
||||
pkg_setup() {
|
||||
linux-info_pkg_setup
|
||||
|
||||
if kernel_is lt 2 6 16 ; then
|
||||
eerror "You must have at least a 2.6.16 kernel to use this package."
|
||||
die "Insufficent kernel version"
|
||||
fi
|
||||
|
||||
#if kernel_is eq 2 6 18 ; then
|
||||
# eerror "Support for 2.6.18 and forward kernels is not yet availible"
|
||||
# die "Unsupported kernel version"
|
||||
#fi
|
||||
|
||||
if linux_chkconfig_present CONFIG_SECURITY ; then
|
||||
eerror "CONFIG_SECURITY must be enabled in your kernel to build ${PN}"
|
||||
die "Bad kernel config"
|
||||
fi
|
||||
|
||||
if (grep 'namespace_sem' ${KV_DIR}/include/linux/namespace.h >/dev/null 2>&1 && grep 'AUDIT_SD' ${KV_DIR}/include/linux/audit.h >/dev/null 2>&1 )
|
||||
then
|
||||
einfo "Required Symbol patch seems to have been applied; continuing."
|
||||
else
|
||||
eerror "Required symbols do not appear to be exported."
|
||||
ewarn
|
||||
ewarn "AppArmor modules requires a patch be applied against the"
|
||||
ewarn "kernel source to export several symbols."
|
||||
ewarn
|
||||
ewarn "Current patches can currently be found in: "
|
||||
ewarn " ${FILESDIR}"
|
||||
ewarn "where the clostest matching KERNEL_VER patch:"
|
||||
ewarn " ${P/_p*/}_[KERNEL_VER]_symbol_export.patch"
|
||||
ewarn "should apply cleanly."
|
||||
ewarn
|
||||
ewarn "After applying this patch and re-compiling,"
|
||||
ewarn "re-emerge this package"
|
||||
ewarn
|
||||
die "Missing apparmor symbol export patch"
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${MY_S}"
|
||||
|
||||
sed -i 's/^all:/modules:/g' Makefile
|
||||
sed -i 's/mv/#mv/g' Makefile
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd "${MY_S}"
|
||||
unset ARCH
|
||||
CONFIG_SECURITY_APPARMOR=m make
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${MY_S}"
|
||||
|
||||
insinto /lib/modules/${KV_FULL}/kernel/security/apparmor
|
||||
doins apparmor.ko
|
||||
insinto /lib/modules/${KV_FULL}/kernel/security/apparmor/aamatch
|
||||
doins aamatch/aamatch_pcre.ko
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
From: tonyj@suse.de
|
||||
Subject: Export namespace semaphore
|
||||
Patch-mainline: no
|
||||
|
||||
Export global namespace_sem (this used to be a per namespace semaphore).
|
||||
Alas, this isn't going to win _any_ points for style.
|
||||
Patch is not in mainline -- pending AppArmor code submission to lkml
|
||||
|
||||
---
|
||||
--- linux-2.6.17.9.orig/fs/namespace.c
|
||||
+++ linux-2.6.17.9/fs/namespace.c
|
||||
@@ -46,7 +46,8 @@ static int event;
|
||||
static struct list_head *mount_hashtable __read_mostly;
|
||||
static int hash_mask __read_mostly, hash_bits __read_mostly;
|
||||
static kmem_cache_t *mnt_cache __read_mostly;
|
||||
-static struct rw_semaphore namespace_sem;
|
||||
+struct rw_semaphore namespace_sem;
|
||||
+EXPORT_SYMBOL_GPL(namespace_sem);
|
||||
|
||||
/* /sys/fs */
|
||||
decl_subsys(fs, NULL, NULL);
|
||||
--- linux-2.6.17.9.orig/include/linux/namespace.h
|
||||
+++ linux-2.6.17.9/include/linux/namespace.h
|
||||
@@ -5,6 +5,9 @@
|
||||
#include <linux/mount.h>
|
||||
#include <linux/sched.h>
|
||||
|
||||
+/* exported for AppArmor (SubDomain) */
|
||||
+extern struct rw_semaphore namespace_sem;
|
||||
+
|
||||
struct namespace {
|
||||
atomic_t count;
|
||||
struct vfsmount * root;
|
||||
|
||||
|
||||
From: tonyj@suse.de
|
||||
Subject: Export audit subsystem for use by modules
|
||||
Patch-mainline: no
|
||||
|
||||
Adds necessary export symbols for audit subsystem routines.
|
||||
Changes audit_log_vformat to be externally visible (analagous to vprintf)
|
||||
Patch is not in mainline -- pending AppArmor code submission to lkml
|
||||
|
||||
--- linux-2.6.17.9.orig/include/linux/audit.h
|
||||
+++ linux-2.6.17.9/include/linux/audit.h
|
||||
@@ -96,6 +96,8 @@
|
||||
#define AUDIT_LAST_KERN_ANOM_MSG 1799
|
||||
#define AUDIT_ANOM_PROMISCUOUS 1700 /* Device changed promiscuous mode */
|
||||
|
||||
+#define AUDIT_SD 1500 /* AppArmor (SubDomain) audit */
|
||||
+
|
||||
#define AUDIT_KERNEL 2000 /* Asynchronous audit record. NOT A REQUEST. */
|
||||
|
||||
/* Rule flags */
|
||||
@@ -357,6 +359,9 @@ extern void audit_log(struct audit_
|
||||
__attribute__((format(printf,4,5)));
|
||||
|
||||
extern struct audit_buffer *audit_log_start(struct audit_context *ctx, gfp_t gfp_mask, int type);
|
||||
+extern void audit_log_vformat(struct audit_buffer *ab,
|
||||
+ const char *fmt, va_list args)
|
||||
+ __attribute__((format(printf,2,0)));
|
||||
extern void audit_log_format(struct audit_buffer *ab,
|
||||
const char *fmt, ...)
|
||||
__attribute__((format(printf,2,3)));
|
||||
--- linux-2.6.17.9.orig/kernel/audit.c
|
||||
+++ linux-2.6.17.9/kernel/audit.c
|
||||
@@ -893,8 +893,7 @@ static inline int audit_expand(struct au
|
||||
* will be called a second time. Currently, we assume that a printk
|
||||
* can't format message larger than 1024 bytes, so we don't either.
|
||||
*/
|
||||
-static void audit_log_vformat(struct audit_buffer *ab, const char *fmt,
|
||||
- va_list args)
|
||||
+void audit_log_vformat(struct audit_buffer *ab, const char *fmt, va_list args)
|
||||
{
|
||||
int len, avail;
|
||||
struct sk_buff *skb;
|
||||
@@ -1096,3 +1095,6 @@ EXPORT_SYMBOL(audit_log_start);
|
||||
EXPORT_SYMBOL(audit_log_end);
|
||||
EXPORT_SYMBOL(audit_log_format);
|
||||
EXPORT_SYMBOL(audit_log);
|
||||
+EXPORT_SYMBOL_GPL(audit_log_vformat);
|
||||
+EXPORT_SYMBOL_GPL(audit_log_untrustedstring);
|
||||
+EXPORT_SYMBOL_GPL(audit_log_d_path);
|
||||
@@ -0,0 +1,3 @@
|
||||
MD5 919d64ba6c357a24a3c8e78ea0f94058 apparmor-external-module.tar.gz 112408
|
||||
RMD160 b333459588b0ccaaf36c6247555ff560daa3f95c apparmor-external-module.tar.gz 112408
|
||||
SHA256 70d66089a46f87f7fbaf504a3e40e4511e21c4a03345f0142315743bb9278d2f apparmor-external-module.tar.gz 112408
|
||||
11
branches/experimental/sys-apps/apparmor-modules/metadata.xml
Normal file
11
branches/experimental/sys-apps/apparmor-modules/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>apparmor-modules</herd>
|
||||
<maintainer>
|
||||
<email>zepher@sigalrm.com</email>
|
||||
<name>Matthew Snelham</name>
|
||||
<description>Primary Maintainer</description>
|
||||
</maintainer>
|
||||
<longdescription lang="en">Apparmor kernel modules</longdescription>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user