config cleanup
This commit is contained in:
parent
7a1774b640
commit
b43ff98e62
296
aide.conf
296
aide.conf
@ -51,8 +51,6 @@ report_url=stdout
|
|||||||
#crc32: crc32 checksum (MHASH only)
|
#crc32: crc32 checksum (MHASH only)
|
||||||
#whirlpool: whirlpool checksum (MHASH only)
|
#whirlpool: whirlpool checksum (MHASH only)
|
||||||
|
|
||||||
FIPSR = p+i+n+u+g+s+m+c+acl+selinux+xattrs+sha256
|
|
||||||
|
|
||||||
#R: p+i+n+u+g+s+m+c+acl+selinux+xattrs+md5
|
#R: p+i+n+u+g+s+m+c+acl+selinux+xattrs+md5
|
||||||
#L: p+i+n+u+g+acl+selinux+xattrs
|
#L: p+i+n+u+g+acl+selinux+xattrs
|
||||||
#E: Empty group
|
#E: Empty group
|
||||||
@ -65,159 +63,241 @@ ALLXTRAHASHES = sha1+rmd160+sha256+sha512+tiger
|
|||||||
# Everything but access time (Ie. all changes)
|
# Everything but access time (Ie. all changes)
|
||||||
EVERYTHING = R+ALLXTRAHASHES
|
EVERYTHING = R+ALLXTRAHASHES
|
||||||
|
|
||||||
# Sane, with multiple hashes
|
# Sane
|
||||||
# NORMAL = R+rmd160+sha256+whirlpool
|
# NORMAL = R+sha512
|
||||||
NORMAL = FIPSR+sha512
|
NORMAL = p+i+n+u+g+s+m+c+acl+selinux+xattrs+sha512
|
||||||
|
|
||||||
# For directories, don't bother doing hashes
|
# For directories, don't bother doing hashes
|
||||||
DIR = p+i+n+u+g+acl+selinux+xattrs
|
DIR = p+i+n+u+g+acl+selinux+xattrs
|
||||||
|
|
||||||
# Access control only
|
# Access control only
|
||||||
PERMS = p+i+u+g+acl+selinux
|
PERMS = p+u+g+acl+selinux+xattrs
|
||||||
|
|
||||||
# Logfile are special, in that they often change
|
# Logfile are special, in that they often change
|
||||||
LOG = >
|
LOG = p+u+g+n+S+acl+selinux+xattrs
|
||||||
|
|
||||||
# Just do sha256 and sha512 hashes
|
# Content + file type.
|
||||||
LSPP = FIPSR+sha512
|
CONTENT = sha512+ftype
|
||||||
|
|
||||||
|
# Extended content + file type + access.
|
||||||
|
CONTENT_EX = sha512+ftype+p+u+g+n+acl+selinux+xattrs
|
||||||
|
|
||||||
# Some files get updated automatically, so the inode/ctime/mtime change
|
# Some files get updated automatically, so the inode/ctime/mtime change
|
||||||
# but we want to know when the data inside them changes
|
# but we want to know when the data inside them changes
|
||||||
DATAONLY = p+n+u+g+s+acl+selinux+xattrs+sha256
|
DATAONLY = p+n+u+g+s+acl+selinux+xattrs+sha512
|
||||||
|
|
||||||
# Next decide what directories/files you want in the database.
|
# Next decide what directories/files you want in the database.
|
||||||
|
|
||||||
/boot NORMAL
|
/boot CONTENT_EX
|
||||||
/bin NORMAL
|
/opt CONTENT
|
||||||
/sbin NORMAL
|
|
||||||
/lib NORMAL
|
# Admins dot files constantly change, just check perms
|
||||||
/lib64 NORMAL
|
/root/\..* PERMS
|
||||||
/opt NORMAL
|
!/root/.xauth*
|
||||||
/usr NORMAL
|
# Otherwise get all of /root.
|
||||||
/root NORMAL
|
/root CONTENT_EX
|
||||||
|
|
||||||
# These are too volatile
|
# These are too volatile
|
||||||
!/usr/src
|
!/usr/src
|
||||||
!/usr/tmp
|
!/usr/tmp
|
||||||
|
|
||||||
# Check only permissions, inode, user and group for /etc, but
|
# Otherwise get all of /usr.
|
||||||
# cover some important files closely.
|
/usr CONTENT_EX
|
||||||
/etc PERMS
|
|
||||||
!/etc/mtab
|
|
||||||
# Ignore backup files
|
|
||||||
!/etc/.*~
|
|
||||||
/etc/exports NORMAL
|
|
||||||
/etc/fstab NORMAL
|
|
||||||
/etc/passwd NORMAL
|
|
||||||
/etc/group NORMAL
|
|
||||||
/etc/gshadow NORMAL
|
|
||||||
/etc/shadow NORMAL
|
|
||||||
/etc/security/opasswd NORMAL
|
|
||||||
|
|
||||||
/etc/hosts.allow NORMAL
|
# trusted databases
|
||||||
/etc/hosts.deny NORMAL
|
/etc/hosts$ CONTENT_EX
|
||||||
|
/etc/host.conf$ CONTENT_EX
|
||||||
|
/etc/hostname$ CONTENT_EX
|
||||||
|
/etc/issue$ CONTENT_EX
|
||||||
|
/etc/issue.net$ CONTENT_EX
|
||||||
|
/etc/protocols$ CONTENT_EX
|
||||||
|
/etc/services$ CONTENT_EX
|
||||||
|
/etc/localtime$ CONTENT_EX
|
||||||
|
/etc/alternatives CONTENT_EX
|
||||||
|
/etc/sysconfig CONTENT_EX
|
||||||
|
/etc/mime.types$ CONTENT_EX
|
||||||
|
/etc/terminfo CONTENT_EX
|
||||||
|
/etc/exports$ CONTENT_EX
|
||||||
|
/etc/fstab$ CONTENT_EX
|
||||||
|
/etc/passwd$ CONTENT_EX
|
||||||
|
/etc/group$ CONTENT_EX
|
||||||
|
/etc/gshadow$ CONTENT_EX
|
||||||
|
/etc/shadow$ CONTENT_EX
|
||||||
|
/etc/subgid$ CONTENT_EX
|
||||||
|
/etc/subuid$ CONTENT_EX
|
||||||
|
/etc/security/opasswd$ CONTENT_EX
|
||||||
|
/etc/skel CONTENT_EX
|
||||||
|
/etc/sssd CONTENT_EX
|
||||||
|
/etc/machine-id$ CONTENT_EX
|
||||||
|
/etc/swid CONTENT_EX
|
||||||
|
/etc/system-release-cpe$ CONTENT_EX
|
||||||
|
/etc/shells$ CONTENT_EX
|
||||||
|
/etc/tmux.conf$ CONTENT_EX
|
||||||
|
/etc/xattr.conf$ CONTENT_EX
|
||||||
|
|
||||||
/etc/sudoers NORMAL
|
# networking
|
||||||
/etc/skel NORMAL
|
/etc/firewalld CONTENT_EX
|
||||||
|
!/etc/NetworkManager/system-connections
|
||||||
|
/etc/NetworkManager CONTENT_EX
|
||||||
|
/etc/networks$ CONTENT_EX
|
||||||
|
/etc/dhcp CONTENT_EX
|
||||||
|
/etc/wpa_supplicant CONTENT_EX
|
||||||
|
/etc/resolv.conf$ DATAONLY
|
||||||
|
/etc/nscd.conf$ CONTENT_EX
|
||||||
|
|
||||||
/etc/logrotate.d NORMAL
|
# logins and accounts
|
||||||
|
/etc/login.defs$ CONTENT_EX
|
||||||
|
/etc/libuser.conf$ CONTENT_EX
|
||||||
|
/var/log/faillog$ PERMS
|
||||||
|
/var/log/lastlog$ PERMS
|
||||||
|
/var/run/faillock PERMS
|
||||||
|
/etc/pam.d CONTENT_EX
|
||||||
|
/etc/security CONTENT_EX
|
||||||
|
/etc/securetty$ CONTENT_EX
|
||||||
|
/etc/polkit-1 CONTENT_EX
|
||||||
|
/etc/sudo.conf$ CONTENT_EX
|
||||||
|
/etc/sudoers$ CONTENT_EX
|
||||||
|
/etc/sudoers.d CONTENT_EX
|
||||||
|
|
||||||
/etc/resolv.conf DATAONLY
|
# Shell/X startup files
|
||||||
|
/etc/profile$ CONTENT_EX
|
||||||
/etc/nscd.conf NORMAL
|
/etc/profile.d CONTENT_EX
|
||||||
/etc/securetty NORMAL
|
/etc/bashrc$ CONTENT_EX
|
||||||
|
/etc/bash_completion.d CONTENT_EX
|
||||||
# Shell/X starting files
|
/etc/zprofile$ CONTENT_EX
|
||||||
/etc/profile NORMAL
|
/etc/zshrc$ CONTENT_EX
|
||||||
/etc/bashrc NORMAL
|
/etc/zlogin$ CONTENT_EX
|
||||||
/etc/bash_completion.d/ NORMAL
|
/etc/zlogout$ CONTENT_EX
|
||||||
/etc/login.defs NORMAL
|
/etc/X11 CONTENT_EX
|
||||||
/etc/zprofile NORMAL
|
|
||||||
/etc/zshrc NORMAL
|
|
||||||
/etc/zlogin NORMAL
|
|
||||||
/etc/zlogout NORMAL
|
|
||||||
/etc/profile.d/ NORMAL
|
|
||||||
/etc/X11/ NORMAL
|
|
||||||
|
|
||||||
# Pkg manager
|
# Pkg manager
|
||||||
/etc/yum.conf NORMAL
|
/etc/dnf CONTENT_EX
|
||||||
/etc/yumex.conf NORMAL
|
/etc/yum.conf$ CONTENT_EX
|
||||||
/etc/yumex.profiles.conf NORMAL
|
/etc/yum CONTENT_EX
|
||||||
/etc/yum/ NORMAL
|
/etc/yum.repos.d CONTENT_EX
|
||||||
/etc/yum.repos.d/ NORMAL
|
|
||||||
|
|
||||||
/var/log LOG
|
|
||||||
/var/run/utmp LOG
|
|
||||||
|
|
||||||
# This gets new/removes-old filenames daily
|
# This gets new/removes-old filenames daily
|
||||||
!/var/log/sa
|
!/var/log/sa
|
||||||
# As we are checking it, we've truncated yesterdays size to zero.
|
# As we are checking it, we've truncated yesterdays size to zero.
|
||||||
!/var/log/aide.log
|
!/var/log/aide.log
|
||||||
|
|
||||||
# LSPP rules...
|
# auditing
|
||||||
# AIDE produces an audit record, so this becomes perpetual motion.
|
# AIDE produces an audit record, so this becomes perpetual motion.
|
||||||
# /var/log/audit/ LSPP
|
/var/log/audit PERMS
|
||||||
/etc/audit/ LSPP
|
/etc/audit CONTENT_EX
|
||||||
/etc/libaudit.conf LSPP
|
/etc/libaudit.conf$ CONTENT_EX
|
||||||
/usr/sbin/stunnel LSPP
|
/etc/aide.conf$ CONTENT_EX
|
||||||
/var/spool/at LSPP
|
|
||||||
/etc/at.allow LSPP
|
|
||||||
/etc/at.deny LSPP
|
|
||||||
/etc/cron.allow LSPP
|
|
||||||
/etc/cron.deny LSPP
|
|
||||||
/etc/cron.d/ LSPP
|
|
||||||
/etc/cron.daily/ LSPP
|
|
||||||
/etc/cron.hourly/ LSPP
|
|
||||||
/etc/cron.monthly/ LSPP
|
|
||||||
/etc/cron.weekly/ LSPP
|
|
||||||
/etc/crontab LSPP
|
|
||||||
/var/spool/cron/root LSPP
|
|
||||||
|
|
||||||
/etc/login.defs LSPP
|
# System logs
|
||||||
/etc/securetty LSPP
|
/etc/rsyslog.conf$ CONTENT_EX
|
||||||
/var/log/faillog LSPP
|
/etc/rsyslog.d CONTENT_EX
|
||||||
/var/log/lastlog LSPP
|
/etc/logrotate.conf$ CONTENT_EX
|
||||||
|
/etc/logrotate.d CONTENT_EX
|
||||||
|
/etc/systemd/journald.conf$ CONTENT_EX
|
||||||
|
/var/log LOG+ANF+ARF
|
||||||
|
/var/run/utmp LOG
|
||||||
|
|
||||||
/etc/hosts LSPP
|
# secrets
|
||||||
/etc/sysconfig LSPP
|
/etc/pkcs11 CONTENT_EX
|
||||||
|
/etc/pki CONTENT_EX
|
||||||
|
/etc/crypto-policies CONTENT_EX
|
||||||
|
/etc/certmonger CONTENT_EX
|
||||||
|
/var/lib/systemd/random-seed$ PERMS
|
||||||
|
|
||||||
/etc/inittab LSPP
|
# init system
|
||||||
/etc/grub/ LSPP
|
/etc/systemd CONTENT_EX
|
||||||
/etc/rc.d LSPP
|
/etc/rc.d CONTENT_EX
|
||||||
|
/etc/tmpfiles.d CONTENT_EX
|
||||||
|
|
||||||
/etc/ld.so.conf LSPP
|
# boot config
|
||||||
|
/etc/default CONTENT_EX
|
||||||
|
/etc/grub.d CONTENT_EX
|
||||||
|
/etc/dracut.conf$ CONTENT_EX
|
||||||
|
/etc/dracut.conf.d CONTENT_EX
|
||||||
|
|
||||||
/etc/localtime LSPP
|
# glibc linker
|
||||||
|
/etc/ld.so.cache$ CONTENT_EX
|
||||||
|
/etc/ld.so.conf$ CONTENT_EX
|
||||||
|
/etc/ld.so.conf.d CONTENT_EX
|
||||||
|
/etc/ld.so.preload$ CONTENT_EX
|
||||||
|
|
||||||
/etc/sysctl.conf LSPP
|
# kernel config
|
||||||
|
/etc/sysctl.conf$ CONTENT_EX
|
||||||
|
/etc/sysctl.d CONTENT_EX
|
||||||
|
/etc/modprobe.d CONTENT_EX
|
||||||
|
/etc/modules-load.d CONTENT_EX
|
||||||
|
/etc/depmod.d CONTENT_EX
|
||||||
|
/etc/udev CONTENT_EX
|
||||||
|
/etc/crypttab$ CONTENT_EX
|
||||||
|
|
||||||
/etc/modprobe.conf LSPP
|
#### Daemons ####
|
||||||
|
|
||||||
/etc/pam.d LSPP
|
# cron jobs
|
||||||
/etc/security LSPP
|
/etc/at.allow$ CONTENT
|
||||||
/etc/aliases LSPP
|
/etc/at.deny$ CONTENT
|
||||||
/etc/postfix LSPP
|
/etc/anacrontab$ CONTENT_EX
|
||||||
|
/etc/cron.allow$ CONTENT_EX
|
||||||
|
/etc/cron.deny$ CONTENT_EX
|
||||||
|
/etc/cron.d CONTENT_EX
|
||||||
|
/etc/cron.daily CONTENT_EX
|
||||||
|
/etc/cron.hourly CONTENT_EX
|
||||||
|
/etc/cron.monthly CONTENT_EX
|
||||||
|
/etc/cron.weekly CONTENT_EX
|
||||||
|
/etc/crontab$ CONTENT_EX
|
||||||
|
/var/spool/cron/root CONTENT
|
||||||
|
|
||||||
/etc/ssh/sshd_config LSPP
|
# time keeping
|
||||||
/etc/ssh/ssh_config LSPP
|
/etc/chrony.conf$ CONTENT_EX
|
||||||
|
/etc/chrony.keys$ CONTENT_EX
|
||||||
|
|
||||||
/etc/stunnel LSPP
|
# mail
|
||||||
|
/etc/aliases$ CONTENT_EX
|
||||||
|
/etc/aliases.db$ CONTENT_EX
|
||||||
|
/etc/postfix CONTENT_EX
|
||||||
|
|
||||||
/etc/vsftpd.ftpusers LSPP
|
# ssh
|
||||||
/etc/vsftpd LSPP
|
/etc/ssh/sshd_config$ CONTENT_EX
|
||||||
|
/etc/ssh/ssh_config$ CONTENT_EX
|
||||||
|
|
||||||
/etc/issue LSPP
|
# stunnel
|
||||||
/etc/issue.net LSPP
|
/etc/stunnel CONTENT_EX
|
||||||
|
|
||||||
/etc/cups LSPP
|
# printing
|
||||||
|
/etc/cups CONTENT_EX
|
||||||
|
/etc/cupshelpers CONTENT_EX
|
||||||
|
/etc/avahi CONTENT_EX
|
||||||
|
|
||||||
|
# web server
|
||||||
|
/etc/httpd CONTENT_EX
|
||||||
|
|
||||||
|
# dns
|
||||||
|
/etc/named CONTENT_EX
|
||||||
|
/etc/named.conf$ CONTENT_EX
|
||||||
|
/etc/named.iscdlv.key$ CONTENT_EX
|
||||||
|
/etc/named.rfc1912.zones$ CONTENT_EX
|
||||||
|
/etc/named.root.key$ CONTENT_EX
|
||||||
|
|
||||||
|
# xinetd
|
||||||
|
/etc/xinetd.conf$ CONTENT_EX
|
||||||
|
/etc/xinetd.d CONTENT_EX
|
||||||
|
|
||||||
|
# IPsec
|
||||||
|
/etc/ipsec.conf$ CONTENT_EX
|
||||||
|
/etc/ipsec.secrets$ CONTENT_EX
|
||||||
|
/etc/ipsec.d CONTENT_EX
|
||||||
|
|
||||||
|
# USB guard
|
||||||
|
/etc/usbguard CONTENT_EX
|
||||||
|
|
||||||
|
# Ignore some files
|
||||||
|
!/etc/mtab$
|
||||||
|
!/etc/.*~
|
||||||
|
|
||||||
|
# Now everything else
|
||||||
|
/etc PERMS
|
||||||
|
|
||||||
# With AIDE's default verbosity level of 5, these would give lots of
|
# With AIDE's default verbosity level of 5, these would give lots of
|
||||||
# warnings upon tree traversal. It might change with future version.
|
# warnings upon tree traversal. It might change with future version.
|
||||||
#
|
#
|
||||||
#=/lost\+found DIR
|
#=/lost\+found DIR
|
||||||
#=/home DIR
|
#=/home DIR
|
||||||
|
|
||||||
# Ditto /var/log/sa reason...
|
|
||||||
!/var/log/and-httpd
|
|
||||||
|
|
||||||
# Admins dot files constantly change, just check perms
|
|
||||||
/root/\..* PERMS
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Summary: Intrusion detection environment
|
Summary: Intrusion detection environment
|
||||||
Name: aide
|
Name: aide
|
||||||
Version: 0.16
|
Version: 0.16
|
||||||
Release: 18%{?dist}
|
Release: 19%{?dist}
|
||||||
URL: http://sourceforge.net/projects/aide
|
URL: http://sourceforge.net/projects/aide
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
|
|
||||||
@ -80,6 +80,13 @@ mkdir -p -m0700 %{buildroot}%{_localstatedir}/lib/aide
|
|||||||
%dir %attr(0700,root,root) %{_localstatedir}/log/aide
|
%dir %attr(0700,root,root) %{_localstatedir}/log/aide
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 10 2021 Zoltan Fridrich <zfridric@redhat.com> - 0.16-19
|
||||||
|
- use gating and config file from rhel-8.5
|
||||||
|
- remove check of periodically changing files
|
||||||
|
Resolves: rhbz#1957656
|
||||||
|
- config cleanup
|
||||||
|
Resolves: rhbz#1957654
|
||||||
|
|
||||||
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 0.16-18
|
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 0.16-18
|
||||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||||
|
|
||||||
|
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-9
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}
|
Loading…
Reference in New Issue
Block a user