mirror of
https://github.com/tasket/Qubes-VM-hardening.git
synced 2025-06-06 21:49:09 -04:00
Remove rc.local
This commit is contained in:
parent
155023b962
commit
ce04dcd777
1 changed files with 0 additions and 20 deletions
20
rc.local
20
rc.local
|
@ -1,20 +0,0 @@
|
||||||
#!/bin/sh -e
|
|
||||||
# Debian: /etc/rc.local
|
|
||||||
|
|
||||||
#########################################################
|
|
||||||
## Protect sh, bash, X and desktop init scripts ##
|
|
||||||
## to prevent privilege escalation attacks ##
|
|
||||||
## and malware persistence - for Qubes Linux templates ##
|
|
||||||
chfiles=".bashrc .bash_profile .bash_login .bash_logout .profile \
|
|
||||||
.xprofile .xinitrc .xserverrc .xsession"
|
|
||||||
chdirs=".config/autostart .config/plasma-workspace/env .config/plasma-workspace/shutdown \
|
|
||||||
.config/autostart-scripts"
|
|
||||||
|
|
||||||
cd /home/user
|
|
||||||
mkdir -p $chdirs ||true
|
|
||||||
touch $chfiles || true
|
|
||||||
chattr -R -f +i $chfiles $chdirs || true
|
|
||||||
#touch /home/user/FIXED || true
|
|
||||||
|
|
||||||
# end of script
|
|
||||||
exit 0
|
|
Loading…
Add table
Add a link
Reference in a new issue