install-script #7

Merged
pratyush merged 10 commits from install-script into master 2021-12-22 12:11:22 +01:00
6 changed files with 38 additions and 0 deletions
Showing only changes of commit d62cf1510f - Show all commits

11
scripts/install.sh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/bash
# install yay
cd ~
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
cd ..
sudo rm -rf yay

View File

@ -0,0 +1,20 @@
#!/bin/bash
# aureport and ausearch
alias aurepwk='aureport --start this-week'
alias aurepwkv='aureport --start this-week --key --summary'
# syscall audit rule for failure to open files due to EPERM with key field access
# add to syscall.rules
# -a always,exit -F arch=b64 -S open -S openat -F exit=-EPERM -k access
# check which files have been attempted
alias aurfilist='ausearch --start this-week -k access --raw | aureport --file --summary'
# check the user accounts implicated
alias aurlusfi='ausearch --start this-week -k access --raw | aureport --user --summary'

View File

@ -0,0 +1,3 @@
-w /etc/passwd -p rwxa
-w /etc/sudoers -p rwxa
-w /etc/nftables.conf -p rwxa

View File

@ -0,0 +1,4 @@
-a entry,always -S chmod
-a entry,always -S chown