audit libnsl libtitpc move core
This commit is contained in:
+22959
-22697
File diff suppressed because it is too large
Load Diff
@@ -1 +1 @@
|
||||
766e867ab90bda58d1918b24f2a59924ebb68310
|
||||
4128625fffa912733fe3710a6b42dd134b7d91e3
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
055d51770051cc731c2e9f12dcab7640d0c8c557
|
||||
b5ff346c68234fffb6fbe4dc609747916377fd32
|
||||
@@ -0,0 +1,45 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
autotools.autoreconf("-vif")
|
||||
autotools.configure("--with-libcap-ng=yes \
|
||||
--enable-gssapi-krb5=no \
|
||||
--enable-systemd=no \
|
||||
--disable-static")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def check():
|
||||
autotools.make("-j1 check")
|
||||
|
||||
def install():
|
||||
autotools.rawInstall('DESTDIR="%s"' % get.installDIR())
|
||||
|
||||
# remove RH specific bits
|
||||
pisitools.removeDir("/etc/sysconfig")
|
||||
pisitools.removeDir("/etc/rc.d")
|
||||
|
||||
# Create data directories
|
||||
pisitools.dodir("/var/log/audit")
|
||||
pisitools.dodir("/var/spool/audit")
|
||||
|
||||
# Disable zos-remote plugin to get rid of deps. like cyrus-sasl
|
||||
pisitools.remove("/usr/share/man/man8/audispd-zos-remote.8")
|
||||
pisitools.remove("/usr/share/man/man5/zos-remote.conf.5")
|
||||
|
||||
pisitools.insinto("/etc/audit/rules.d", "rules/10-no-audit.rules", "audit.rules")
|
||||
|
||||
for sbin in shelltools.ls("%s/usr/sbin" % get.installDIR()):
|
||||
pisitools.dosym("/usr/sbin/%s" % sbin, "/sbin/%s" % sbin)
|
||||
|
||||
pisitools.dodoc("AUTHORS", "ChangeLog", "THANKS", "README", "COPYING")
|
||||
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import os
|
||||
|
||||
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
|
||||
os.system("ln -s /usr/sbin/audispd /sbin/audispd")
|
||||
os.system("ln -s /usr/sbin/auditd /sbin/auditd")
|
||||
os.system("/bin/systemctl enable auditd.service")
|
||||
@@ -0,0 +1,24 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from comar.service import *
|
||||
|
||||
serviceType = "server"
|
||||
serviceDesc = _({"en": "AUDIT Daemon",
|
||||
"tr": "AUDIT Servisi"})
|
||||
serviceDefault = "on"
|
||||
|
||||
@synchronized
|
||||
def start():
|
||||
reply = startService(command="/usr/sbin/auditd",
|
||||
pidfile="/run/auditd.pid",
|
||||
donotify=True)
|
||||
if reply == 0:
|
||||
run("/usr/sbin/auditctl -R /etc/audit/rules.d/audit.rules")
|
||||
|
||||
@synchronized
|
||||
def stop():
|
||||
stopService(pidfile="/run/auditd.pid",
|
||||
donotify=True)
|
||||
run("/usr/sbin/auditctl -D")
|
||||
|
||||
def status():
|
||||
return isServiceRunning("/run/auditd.pid")
|
||||
@@ -0,0 +1,23 @@
|
||||
From 017e6c6ab95df55f34e339d2139def83e5dada1f Mon Sep 17 00:00:00 2001
|
||||
From: Steve Grubb <sgrubb@redhat.com>
|
||||
Date: Fri, 10 Jan 2020 21:13:50 -0500
|
||||
Subject: [PATCH] Header definitions need to be external when building with
|
||||
-fno-common (which is default in GCC 10) - Tony Jones
|
||||
|
||||
---
|
||||
src/ausearch-common.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/ausearch-common.h b/src/ausearch-common.h
|
||||
index 6669203..3040547 100644
|
||||
--- a/src/ausearch-common.h
|
||||
+++ b/src/ausearch-common.h
|
||||
@@ -50,7 +50,7 @@ extern pid_t event_pid;
|
||||
extern int event_exact_match;
|
||||
extern uid_t event_uid, event_euid, event_loginuid;
|
||||
extern const char *event_tuid, *event_teuid, *event_tauid;
|
||||
-slist *event_node_list;
|
||||
+extern slist *event_node_list;
|
||||
extern const char *event_comm;
|
||||
extern const char *event_filename;
|
||||
extern const char *event_hostname;
|
||||
@@ -0,0 +1,25 @@
|
||||
diff -Nuar audit-2.3.6.orig/audisp/plugins/Makefile.am audit-2.3.6/audisp/plugins/Makefile.am
|
||||
--- audit-2.3.6.orig/audisp/plugins/Makefile.am 2014-04-11 22:49:23.000000000 +0300
|
||||
+++ audit-2.3.6/audisp/plugins/Makefile.am 2014-05-17 01:46:10.260461732 +0300
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
CONFIG_CLEAN_FILES = *.loT *.rej *.orig
|
||||
|
||||
-SUBDIRS = builtins zos-remote remote
|
||||
+SUBDIRS = builtins remote
|
||||
#SUBDIRS = builtins zos-remote
|
||||
if HAVE_PRELUDE
|
||||
SUBDIRS += prelude
|
||||
diff -Nuar audit-2.3.6.orig/configure.ac audit-2.3.6/configure.ac
|
||||
--- audit-2.3.6.orig/configure.ac 2014-04-11 22:49:33.000000000 +0300
|
||||
+++ audit-2.3.6/configure.ac 2014-05-17 01:44:36.753791021 +0300
|
||||
@@ -291,7 +291,7 @@
|
||||
AC_SUBST(LIBPRELUDE_CFLAGS)
|
||||
AC_SUBST(LIBPRELUDE_LDFLAGS)
|
||||
|
||||
-AC_OUTPUT(Makefile lib/Makefile lib/test/Makefile auparse/Makefile auparse/test/Makefile src/Makefile src/mt/Makefile src/libev/Makefile src/test/Makefile swig/Makefile docs/Makefile init.d/Makefile audisp/Makefile audisp/plugins/Makefile audisp/plugins/builtins/Makefile audisp/plugins/prelude/Makefile audisp/plugins/remote/Makefile audisp/plugins/zos-remote/Makefile bindings/Makefile bindings/python/Makefile tools/Makefile tools/aulast/Makefile tools/aulastlog/Makefile tools/ausyscall/Makefile tools/auvirt/Makefile)
|
||||
+AC_OUTPUT(Makefile lib/Makefile lib/test/Makefile auparse/Makefile auparse/test/Makefile src/Makefile src/mt/Makefile src/libev/Makefile src/test/Makefile swig/Makefile docs/Makefile init.d/Makefile audisp/Makefile audisp/plugins/Makefile audisp/plugins/builtins/Makefile audisp/plugins/prelude/Makefile audisp/plugins/remote/Makefile bindings/Makefile bindings/python/Makefile tools/Makefile tools/aulast/Makefile tools/aulastlog/Makefile tools/ausyscall/Makefile tools/auvirt/Makefile)
|
||||
|
||||
echo .
|
||||
echo "
|
||||
|
||||
@@ -0,0 +1,131 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>audit</Name>
|
||||
<Homepage>http://people.redhat.com/sgrubb/audit/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2+</License>
|
||||
<IsA>app:console</IsA>
|
||||
<IsA>library</IsA>
|
||||
<IsA>service</IsA>
|
||||
<Summary>User space tools for kernel auditing</Summary>
|
||||
<Description>audit contains the user space utilities for storing and searching the audit records generated by the audit subsystem in the Linux 2.6 kernel.</Description>
|
||||
<Archive sha1sum="62fcac8cbd20c796b909b91f8f615f8556b22a24" type="targz">http://people.redhat.com/sgrubb/audit/audit-2.8.5.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>python3-devel</Dependency>
|
||||
<Dependency>kernel-headers</Dependency>
|
||||
<Dependency>libcap-ng-devel</Dependency>
|
||||
<Dependency>tcp-wrappers-devel</Dependency>
|
||||
<Dependency>swig</Dependency>
|
||||
<Dependency>openldap-client</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">gcc10.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>audit</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libcap-ng</Dependency>
|
||||
<!--Dependency>openldap-client</Dependency-->
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="config">/etc</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="executable">/sbin</Path>
|
||||
<Path fileType="executable">/usr/sbin</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="data">/var/log/audit</Path>
|
||||
<Path fileType="data">/var/spool/audit</Path>
|
||||
<Path fileType="data">/usr/share</Path>
|
||||
</Files>
|
||||
<Provides>
|
||||
<COMAR script="service.py">System.Service</COMAR>
|
||||
<COMAR script="package.py">System.Package</COMAR>
|
||||
</Provides>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>python-audit</Name>
|
||||
<Summary>Python bindings for audit</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">audit</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib/python3.8</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>audit-devel</Name>
|
||||
<PartOf>system.devel</PartOf>
|
||||
<Summary>Development files for audit</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">audit</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="library">/usr/lib/pkgconfig</Path>
|
||||
<Path fileType="man">/usr/share/man/man3</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="7">
|
||||
<Date>2020-11-07</Date>
|
||||
<Version>2.8.5</Version>
|
||||
<Comment>Rebuild.</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="6">
|
||||
<Date>2020-04-28</Date>
|
||||
<Version>2.8.5</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Kamil Atlı</Name>
|
||||
<Email>suvari@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2018-08-10</Date>
|
||||
<Version>2.8.4</Version>
|
||||
<Comment>Version bump</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2018-01-15</Date>
|
||||
<Version>2.8.2</Version>
|
||||
<Comment>Version bump</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2017-09-20</Date>
|
||||
<Version>2.7.1</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Kamil Atlı</Name>
|
||||
<Email>suvari@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2016-06-08</Date>
|
||||
<Version>2.3.7</Version>
|
||||
<Comment>Release Bump</Comment>
|
||||
<Name>Pisi Linux Community</Name>
|
||||
<Email>admin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2016-03-21</Date>
|
||||
<Version>2.3.7</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>audit</Name>
|
||||
<Summary xml:lang="tr">Linux çekirdeğinin 2.6 sürümü için inceleme/denetleme araçları</Summary>
|
||||
<Description xml:lang="tr">audit Linux çekirdeğinin 2.6 sürümünün inceleme altyapısı tarafından üretilen inceleme kayıtlarını aramak ve saklamak için kullanılan araçları içerir.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>python-audit</Name>
|
||||
<Summary xml:lang="tr">audit için Python bağlayıcısı</Summary>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>audit-devel</Name>
|
||||
<Summary xml:lang="tr">audit için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
autotools.autoreconf("-fi")
|
||||
autotools.configure("--disable-static")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README")
|
||||
@@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>libnsl</Name>
|
||||
<Homepage>https://github.com/thkukuk/libnsl</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>LGPLv2.1</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>Public client interface library for NIS(YP) and NIS+</Summary>
|
||||
<Description>Public client interface library for NIS(YP) and NIS+</Description>
|
||||
<Archive sha1sum="f141c7cf0ff96d96e369dda36af8ed19af0fc3ca" type="targz">https://github.com/thkukuk/libnsl/archive/v1.2.0/libnsl-1.2.0.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>libtirpc-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>libnsl</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libtirpc</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="data">/usr/share</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>libnsl-devel</Name>
|
||||
<Summary>Development files for libnsl</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">libnsl</Dependency>
|
||||
<Dependency>libtirpc-devel</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="library">/usr/lib/pkgconfig</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="2">
|
||||
<Date>2020-01-27</Date>
|
||||
<Version>1.2.0</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2018-08-29</Date>
|
||||
<Version>1.2.0</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>libnsl</Name>
|
||||
<Summary xml:lang="tr">Public client interface library for NIS(YP) and NIS+</Summary>
|
||||
<Description xml:lang="tr">Public client interface library for NIS(YP) and NIS+</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
#shelltools.system("sed '/stdlib.h/a#include <stdint.h>' -i src/xdr_sizeof.c")
|
||||
#shelltools.system("sed '/key_secret_is/s/secret/secretkey/' -i src/libtirpc.map")
|
||||
autotools.configure("--disable-static")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README")
|
||||
@@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>libtirpc</Name>
|
||||
<Homepage>http://libtirpc.sourceforge.net/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>BSD</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>Transport Independent RPC library</Summary>
|
||||
<Description>Transport Independent RPC library</Description>
|
||||
<Archive sha1sum="ab80619b214d93e5cfbf22a0d01e1ee06d434326" type="tarbz2">https://sourceforge.net/projects/libtirpc/files/libtirpc/1.2.5/libtirpc-1.2.5.tar.bz2</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>mit-kerberos</Dependency>
|
||||
<Dependency>e2fsprogs-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>libtirpc</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>e2fsprogs</Dependency>
|
||||
<Dependency>mit-kerberos</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="config">/etc</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="data">/usr/share</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>libtirpc-devel</Name>
|
||||
<Summary>Development files for libtirpc</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">libtirpc</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="library">/usr/lib/pkgconfig</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="3">
|
||||
<Date>2020-01-19</Date>
|
||||
<Version>1.2.5</Version>
|
||||
<Comment>Version bump</Comment>
|
||||
<Name>İdris Kalp</Name>
|
||||
<Email>idriskalp@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2019-03-29</Date>
|
||||
<Version>1.1.4</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2018-08-29</Date>
|
||||
<Version>1.0.2</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>libtirpc</Name>
|
||||
<Summary xml:lang="tr">Transport Independent RPC library</Summary>
|
||||
<Description xml:lang="tr">Transport Independent RPC library</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user