mirror of
https://github.com/tasket/Qubes-VM-hardening.git
synced 2025-03-02 19:59:15 -05:00
Create rc.local
This commit is contained in:
parent
c06a7bf6af
commit
7d83167d46
9
rc.local
Normal file
9
rc.local
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh -e
|
||||
# Debian: /etc/rc.local
|
||||
|
||||
## Protect sh and bash init scripts ##
|
||||
## to prevent privilege escalation attacks ##
|
||||
chfiles="/home/user/.bashrc /home/user/.bash_profile /home/user/.bash_login /home/user/.bash_logout /home/user/.profile"
|
||||
touch $chfiles || true
|
||||
chown -f root:root $chfiles
|
||||
chattr -f +i $chfiles
|
Loading…
x
Reference in New Issue
Block a user