audit: Nuevo

master
Gerardo Zamudio 4 years ago
parent 0e25e14dc1
commit 8f3ed29ae6
Signed by: gzamudio
GPG Key ID: F6CFA5A99E7B5957

@ -10,10 +10,10 @@ tail +13 CHECKSUMS.md5 | md5sum --check | less
/pub/gnu, or at any GNU mirror site.
MD5 message digest Filename
0179cda2dda825b220f10073d0724d5f ./ChangeLog.rss
53297b3617154a04db6512c2cd2fb4e9 ./ChangeLog.txt
ef27ec4b0352db98dff7c762338ef0a6 ./ChangeLog.txt.gz
99b449dd5679fc2c8183f0ef02a90dd9 ./FILELIST.TXT
4b9cc347927efa753c90e1f74b2b70a8 ./ChangeLog.rss
4ff081cb6d9876af6946faf35ac8a2ff ./ChangeLog.txt
9cdaa485b9f29cd196f70aea0b6281e0 ./ChangeLog.txt.gz
bb63e0f276b8c33c044b933174c98790 ./FILELIST.TXT
7f4bffeb686cc5fd6056bd404dda08d7 ./GPG-KEY
f1d9b0e2249ff6a7c4199f1e18ed460e ./MANIFEST.bz2
929e7c4ff15161d2fcba2057ec2a2f3a ./NetworkManager-fortisslvpn/HEADER.txt
@ -28,8 +28,15 @@ f1d9b0e2249ff6a7c4199f1e18ed460e ./MANIFEST.bz2
862766d751cd6bf0a92e6162bd329186 ./NetworkManager-fortisslvpn/pkg64/current/NetworkManager-fortisslvpn-1.2.10-x86_64-1_lem.tgz.asc
d65495fb9b09ee9b0ede6c5903119dde ./NetworkManager-fortisslvpn/pkg64/current/NetworkManager-fortisslvpn-1.2.10-x86_64-1_lem.tgz.md5
10f078f71cb5fa957784abc1c53a70d4 ./NetworkManager-fortisslvpn/pkg64/current/NetworkManager-fortisslvpn-1.2.10-x86_64-1_lem.txt
498b4f4be3ce18a31c1a2cfd67a1688a ./PACKAGES.TXT
0ebe0e2f63e8f018fded5e5137118dbe ./PACKAGES.TXT.gz
5b8310eddb50f1c9dba94f1a3db2fd17 ./PACKAGES.TXT
52f9671a37bc3ff4d81c82052df358a0 ./PACKAGES.TXT.gz
29eb321fa3b3c679ba8e4ae4b36a3809 ./audit/build/README
58ccda9c6616487acd4f320c90d7705a ./audit/build/README.SLACKWARE
dd45cdde871b98c6d9668b4b898d6e7d ./audit/build/audit-2.3.6-sysconfig.diff
a0a74dca86853fcc0ed2e5854c85756c ./audit/build/audit.SlackBuild
92cd7a7ad0e2b95b552033dcbfa01e66 ./audit/build/audit.info
9a3012e4176b84b63fa954158a4e2bf7 ./audit/build/doinst.sh
c816a86246d3cc161cf2e869d16131bd ./audit/build/slack-desc
bc0cd60a08dbe2a365a3865cc9673bee ./device-tree-compiler/HEADER.txt
bc0cd60a08dbe2a365a3865cc9673bee ./device-tree-compiler/README
8c970fb9c9408b1ef9fddd2abdc2c15a ./device-tree-compiler/build/README

@ -1,17 +1,17 @@
-----BEGIN PGP SIGNATURE-----
iQJNBAABCgA3FiEEm8dazQnvu0U1Gdmc9s+lqZ57WVcFAmCFK1UZHGd6YW11ZGlv
QGxpYnJlbWV4Lm9yZy5teAAKCRD2z6WpnntZV6zKD/9UNiRVR0x/0eMiV/lqn4Xl
UIXJEPKKV5rSyvH6kPxohBqzIjHRypuHhftBJXybQuB/taweizPwfFf3E6sABiyU
WV0KUkEplhbnHPrhnwY8DSoRJb4FQvBNunJrpbqxmT0rjwdBNK2nNcKw+wxKUZe1
bNOUApot5JyrSptezTIc2Tlna3fmzUa1UnbFqGUwcOC5KYKxU+/eTZUiN/vMCWgt
xRnqv12ckaD0HyEhYwOtVuQbYP51ay5l87q6cB7blRadMMjkCwNeAp97MWdy9VnF
bg1HTlHdgiDykwCqq5ZQIzHAvNV2lq1lSA6c57KtgNa/1JN8zdMbz1rcA+17pFsW
hdkDa43Z6pNWvY4my+QRr+NsOAtcj1/Tn6GUnkfGJeeErEsWSyHLAtN7H/Ptoknh
9JQYzqlM7+t/yAjznFsphxlUiAS+8oF0vlPJR3ZY2IBjycGoXseLAGsaXGh6mSyg
FP3UKGHIpszQ34X1ne7DutVXkgM7p/yHlLO7Fstx8jbT2gbmFqzIPsdvgR0Kw7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vzozL/F/i4c1pjGrJ7ynzFmlFDPBz1bXk
4PmunvrbiylROHE5+1WNJOAoZNEC5X6GU1WpnWkNg5SNx4mMVvnJvKrfx5kW40AE
Vld3X1Osy2iVXhBLcZH/OzBjIEdpXoI7BuBs9Hc/YfiicoKMIjMUjjiWtQ8xYjdC
2t7z0Tk8S+8NMarNcXMRcbWkyNKDFJORrVW6TfUzXwfoxzr+jyIFvvrnXXRwDhEJ
NuZ0URnSt7pfBgxB+6WZnxRwlQbxhQh/PYc6F/16m3fcNCWf7nl7PUrf3BrgQkWm
kxc5yfO0SBFn8lphM00v1hGMQZx8UzcxDh9vVpd/+B1IT69R1GAbIxNn7fZIGWU1
qhbUfsiaZeajjzd3wDvghg4dvQN76y39twfPgkgb5vEDubTiGDI7s1VPEy5/v77l
QNFJbTlzSNbC3Nq8VZUtzJX+Qd/M0qYY4DSDkmCcPOuR6yjVxRA7926ZaaK2rOgu
1LTDhGv/tsUYSwG1bYbqOg==
=pbHM
-----END PGP SIGNATURE-----

@ -11,10 +11,21 @@
<description>Repositorio de software para Slackare Linux proporcionado por Libre Expresión México</description>
<language>en-us</language>
<id xmlns="http://www.w3.org/2005/Atom">urn:uuid:f735159c-86bd-11ea-9d48-04d4c453db33</id>
<pubDate>Sun, 25 Apr 2021 08:41:43 GMT</pubDate>
<lastBuildDate>Sun, 25 Apr 2021 08:41:52 GMT</lastBuildDate>
<pubDate>Sun, 25 Apr 2021 08:58:14 GMT</pubDate>
<lastBuildDate>Sun, 25 Apr 2021 08:58:25 GMT</lastBuildDate>
<generator>gen_repos_files.sh v 1.98</generator>
<item>
<title>Sun, 25 Apr 2021 08:58:14 GMT</title>
<link>https://mirror.slackware.mx/libremex/slackbuilds/ChangeLog.txt</link>
<pubDate>Sun, 25 Apr 2021 08:58:14 GMT</pubDate>
<guid isPermaLink="false">20210425035814</guid>
<description>
<![CDATA[<pre>
audit: Nuevo
</pre>]]>
</description>
</item>
<item>
<title>Sun, 25 Apr 2021 08:41:43 GMT</title>
<link>https://mirror.slackware.mx/libremex/slackbuilds/ChangeLog.txt</link>
<pubDate>Sun, 25 Apr 2021 08:41:43 GMT</pubDate>
@ -190,16 +201,5 @@ pcsc-lite: Actualizar a versión 1.9.0
</pre>]]>
</description>
</item>
<item>
<title>Mon, 14 Sep 2020 03:40:25 GMT</title>
<link>https://mirror.slackware.mx/libremex/slackbuilds/ChangeLog.txt</link>
<pubDate>Mon, 14 Sep 2020 03:40:25 GMT</pubDate>
<guid isPermaLink="false">20200913224025</guid>
<description>
<![CDATA[<pre>
libseccomp: Actualizar a versión 2.4.4
</pre>]]>
</description>
</item>
</channel>
</rss>

@ -1,3 +1,7 @@
+--------------------------+
Sun Apr 25 08:58:14 UTC 2021
audit: Nuevo
+--------------------------+
Sun Apr 25 08:41:43 UTC 2021
libmd: Agregar README y HEADER.txt

Binary file not shown.

@ -1,4 +1,4 @@
Sun Apr 25 08:41:43 UTC 2021
Sun Apr 25 08:58:14 UTC 2021
Here is the file list for https://mirror.slackware.mx/libremex/slackbuilds ,
maintained by Gerardo Zamudio <gzamudio@libremex.org.mx> .
@ -6,17 +6,17 @@ If you are using a mirror site and find missing or extra files
in the subdirectories, please have the archive administrator
refresh the mirror.
drwxr-xr-x 38 1000 100 4096 2021-04-25 03:41 .
-rw-r--r-- 1 1000 100 36594 2021-04-25 03:37 ./CHECKSUMS.md5
-rw-r--r-- 1 1000 100 870 2021-04-25 03:37 ./CHECKSUMS.md5.asc
-rw-r--r-- 1 1000 100 11179 2021-04-25 03:37 ./CHECKSUMS.md5.gz
-rw-r--r-- 1 1000 100 870 2021-04-25 03:37 ./CHECKSUMS.md5.gz.asc
-rw-r--r-- 1 1000 100 6380 2021-04-25 03:41 ./ChangeLog.rss
-rw-r--r-- 1 1000 100 13248 2021-04-25 03:41 ./ChangeLog.txt
-rw-r--r-- 1 1000 100 1920 2021-04-25 03:41 ./ChangeLog.txt.gz
-rw-r--r-- 1 1000 100 311 2021-04-25 03:41 ./FILELIST.TXT
drwxr-xr-x 39 1000 100 4096 2021-04-25 03:58 .
-rw-r--r-- 1 1000 100 36696 2021-04-25 03:41 ./CHECKSUMS.md5
-rw-r--r-- 1 1000 100 870 2021-04-25 03:41 ./CHECKSUMS.md5.asc
-rw-r--r-- 1 1000 100 11189 2021-04-25 03:41 ./CHECKSUMS.md5.gz
-rw-r--r-- 1 1000 100 870 2021-04-25 03:41 ./CHECKSUMS.md5.gz.asc
-rw-r--r-- 1 1000 100 6353 2021-04-25 03:58 ./ChangeLog.rss
-rw-r--r-- 1 1000 100 13320 2021-04-25 03:58 ./ChangeLog.txt
-rw-r--r-- 1 1000 100 1934 2021-04-25 03:58 ./ChangeLog.txt.gz
-rw-r--r-- 1 1000 100 311 2021-04-25 03:58 ./FILELIST.TXT
-rw-r--r-- 1 1000 100 6217 2020-05-23 23:52 ./GPG-KEY
-rw-r--r-- 1 1000 100 42932 2021-04-25 03:41 ./MANIFEST.bz2
-rw-r--r-- 1 1000 100 42932 2021-04-25 03:58 ./MANIFEST.bz2
drwxr-xr-x 4 1000 100 4096 2020-05-23 23:54 ./NetworkManager-fortisslvpn
-rw-r--r-- 1 1000 100 981 2020-05-23 23:54 ./NetworkManager-fortisslvpn/HEADER.txt
-rw-r--r-- 1 1000 100 981 2020-05-23 23:54 ./NetworkManager-fortisslvpn/README
@ -33,8 +33,19 @@ drwxr-xr-x 2 1000 100 4096 2020-05-23 19:03 ./NetworkManager-fortisslvpn/pk
-rw-r--r-- 1 1000 100 870 2020-05-23 19:03 ./NetworkManager-fortisslvpn/pkg64/current/NetworkManager-fortisslvpn-1.2.10-x86_64-1_lem.tgz.asc
-rw-r--r-- 1 1000 100 85 2020-05-23 19:03 ./NetworkManager-fortisslvpn/pkg64/current/NetworkManager-fortisslvpn-1.2.10-x86_64-1_lem.tgz.md5
-rw-r--r-- 1 1000 100 474 2020-05-23 19:03 ./NetworkManager-fortisslvpn/pkg64/current/NetworkManager-fortisslvpn-1.2.10-x86_64-1_lem.txt
-rw-r--r-- 1 1000 100 24458 2021-04-25 03:41 ./PACKAGES.TXT
-rw-r--r-- 1 1000 100 6019 2021-04-25 03:41 ./PACKAGES.TXT.gz
-rw-r--r-- 1 1000 100 24458 2021-04-25 03:58 ./PACKAGES.TXT
-rw-r--r-- 1 1000 100 6019 2021-04-25 03:58 ./PACKAGES.TXT.gz
drwxr-xr-x 4 1000 100 4096 2021-04-25 03:55 ./audit
drwxr-xr-x 2 1000 100 4096 2021-04-25 03:56 ./audit/build
-rw-r--r-- 1 0 0 848 2021-04-25 00:20 ./audit/build/README
-rw-r--r-- 1 0 0 812 2021-04-25 00:20 ./audit/build/README.SLACKWARE
-rw-r--r-- 1 0 0 652 2021-04-25 00:20 ./audit/build/audit-2.3.6-sysconfig.diff
-rw-r--r-- 1 0 0 4013 2021-04-25 00:20 ./audit/build/audit.SlackBuild
-rw-r--r-- 1 0 0 296 2021-04-25 00:20 ./audit/build/audit.info
-rw-r--r-- 1 0 0 646 2021-04-25 00:20 ./audit/build/doinst.sh
-rw-r--r-- 1 0 0 884 2021-04-25 00:20 ./audit/build/slack-desc
drwxr-xr-x 3 1000 100 4096 2021-04-25 03:55 ./audit/pkg64
drwxr-xr-x 2 1000 100 4096 2021-04-25 03:55 ./audit/pkg64/current
drwxr-xr-x 4 1000 100 4096 2020-05-24 00:01 ./device-tree-compiler
-rw-r--r-- 1 1000 100 1108 2020-05-23 23:52 ./device-tree-compiler/HEADER.txt
-rw-r--r-- 1 1000 100 1108 2020-05-23 23:52 ./device-tree-compiler/README

@ -1,4 +1,4 @@
PACKAGES.TXT; Sun Apr 25 08:41:43 UTC 2021
PACKAGES.TXT; Sun Apr 25 08:58:14 UTC 2021
PACKAGE NAME: NetworkManager-fortisslvpn-1.2.10-x86_64-1_lem.tgz
PACKAGE MIRROR: https://mirror.slackware.mx/libremex/slackbuilds

Binary file not shown.

@ -0,0 +1,16 @@
Audit for Slackware
The Linux Auditing System is a kernel subsystem the allows the kernel to
record events of interest to intrusion detection systems, such as file
access attempts, specific system calls, or custom events generated by
trusted system binaries like login or sshd. The audit package provides the
tools to configure the audit system, and to collect and process its output.
To collect audit events, your kernel must have the audit system enabled,
which is present in the stock Slackware kernels.
The audit package has no other dependencies. However, certain audit events
of interest, such as failed login attempts from /bin/login, password changes,
etcetera are generated by their respective binaries using libaudit. If your
site policy requires auditing those events, some reconfiguration and/or
patching may be required.

@ -0,0 +1,16 @@
# NOTES:
# This slackbuild won't do much unless you rebuild your kernel with audit enabled.
# Optionally you can enable syscall-level audit.
#
# RULES:
# Some example rulesets are available at /usr/doc/audit-2.0.4/contrib
# stig.rules is an example ruleset for systems that are subject to the US Department of Defense
# UNIX STIG audit requirement, although I read recently on the gov-sec@ Redhat list that
# they hadn't been updating it religiously.
#
# ROTATION:
# The audit log (/var/log/audit/audit.log) is rotated on a size basis automatically by auditd.
# Periodic rotation (i.e. logrotate) is a bad idea for audit, since an attacker could trigger a
# common event rapidly to exhaust log space, then do something nefarious that would go unaudited.
# This package uses the default rotation size of 8MB.

@ -0,0 +1,21 @@
diff -Nur audit-2.0.4.orig//init.d/auditd.init audit-2.0.4/init.d/auditd.init
--- audit-2.0.4.orig//init.d/auditd.init 2009-12-07 15:16:41.000000000 -0600
+++ audit-2.0.4/init.d/auditd.init 2010-06-13 02:07:13.368552889 -0500
@@ -9,7 +9,7 @@
# will be sent to syslog.
#
# processname: /sbin/auditd
-# config: /etc/sysconfig/auditd
+# config: /etc/rc.d/rc.auditd.conf
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
@@ -42,7 +42,7 @@
test $EUID = 0 || exit 4
# Check config
-test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd
+test -f /etc/rc.d/rc.auditd.conf && . /etc/rc.d/rc.auditd.conf
RETVAL=0

@ -0,0 +1,125 @@
#!/bin/sh
# Copyright 2010, R. Andrew Bailey, Chantilly, VA USA
# 2013 - 2014, Bogdan Radulescu, Bucharest, Romania <bogdan@nimblex.net>
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
# any purpose with or without fee is hereby granted, provided that
# the above copyright notice and this permission notice appear in all
# copies.
#
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
PRGNAM=audit
VERSION=${VERSION:-3.0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Init should check /etc/rc.d/rc.auditd.conf instead of /etc/sysconfig/auditd
patch -p1 < $CWD/audit-2.3.6-sysconfig.diff
CXXFLAGS="$SLKCFLAGS" \
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--localstatedir=/var \
--sysconfdir=/etc \
--mandir=/usr/man \
--program-prefix= \
--program-suffix= \
--sbindir=/sbin \
--enable-static=no \
--enable-systemd=no \
--with-libcap-ng=yes \
--enable-gssapi-krb5=yes \
--build=$ARCH-slackware-linux
make
make DESTDIR=$PKG install
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/etc/rc.d
mv $PKG/etc/sysconfig/auditd $PKG/etc/rc.d/rc.auditd.conf.new
mv $PKG/etc/rc.d/init.d/auditd $PKG/etc/rc.d/rc.auditd.new
rm -rf $PKG/etc/rc.d/init.d $PKG/etc/sysconfig
mkdir -p $PKG/var/log/audit $PKG/var/lock/subsys
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README contrib \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE
find $PKG/usr/doc -type f -exec chmod 0644 {} \;
find $PKG/usr/doc -size 0 -exec rm {} \;
find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
# Change config files to .new:
( cd $PKG
for i in $(find etc -type f -name "*.rules" -o -name "*.conf") ; do
mv $i $i.new
echo "config $i.new" >> $PKG/install/doinst.sh
done )
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

@ -0,0 +1,10 @@
PRGNAM="audit"
VERSION="3.0.1"
HOMEPAGE="http://people.redhat.com/sgrubb/audit/"
DOWNLOAD="http://people.redhat.com/sgrubb/audit/audit-3.0.1.tar.gz"
MD5SUM="6a3cfa0dcccb98a85685029236528177"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Bogdan Radulescu"
EMAIL="bogdan@nimblex.net"

@ -0,0 +1,26 @@
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
preserve_perms() {
NEW="$1"
OLD="$(dirname ${NEW})/$(basename ${NEW} .new)"
if [ -e ${OLD} ]; then
cp -a ${OLD} ${NEW}.incoming
cat ${NEW} > ${NEW}.incoming
mv ${NEW}.incoming ${NEW}
fi
config ${NEW}
}
preserve_perms etc/rc.d/rc.auditd.new
config etc/rc.d/rc.auditd.conf.new

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
audit: audit (Linux Kernel Audit Framework)
audit:
audit: The audit package contains the user space utilities for storing and
audit: searching the audit records generate by the audit subsystem in the
audit: Linux 2.6 kernel.
audit:
audit: The audit subsystem, which is not enabled in stock Slackware kernels
audit: must be enabled and the kernel rebuilt in order to use auditd
audit:
audit:
audit:
Loading…
Cancel
Save