mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-06-07 09:52:38 -04:00
Merge pull request #134 from monsieuremre/patch-1
Fix double mount issue for /var/log and /var/tmp
This commit is contained in:
commit
5320c11f3f
1 changed files with 9 additions and 9 deletions
|
@ -232,14 +232,6 @@ _tmp() {
|
||||||
remount_secure
|
remount_secure
|
||||||
}
|
}
|
||||||
|
|
||||||
_var() {
|
|
||||||
mount_folder="$NEWROOT/var"
|
|
||||||
## noexec: Not possible. Reason:
|
|
||||||
## Debian stores executable maintainer scripts in /var/lib/dpkg/info folder.
|
|
||||||
intended_mount_options="nosuid,nodev"
|
|
||||||
remount_secure
|
|
||||||
}
|
|
||||||
|
|
||||||
_var_tmp() {
|
_var_tmp() {
|
||||||
mount_folder="$NEWROOT/var/tmp"
|
mount_folder="$NEWROOT/var/tmp"
|
||||||
intended_mount_options="nosuid,nodev${most_noexec_maybe}"
|
intended_mount_options="nosuid,nodev${most_noexec_maybe}"
|
||||||
|
@ -252,6 +244,14 @@ _var_log() {
|
||||||
remount_secure
|
remount_secure
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_var() {
|
||||||
|
mount_folder="$NEWROOT/var"
|
||||||
|
## noexec: Not possible. Reason:
|
||||||
|
## Debian stores executable maintainer scripts in /var/lib/dpkg/info folder.
|
||||||
|
intended_mount_options="nosuid,nodev"
|
||||||
|
remount_secure
|
||||||
|
}
|
||||||
|
|
||||||
_lib() {
|
_lib() {
|
||||||
mount_folder="$NEWROOT/lib"
|
mount_folder="$NEWROOT/lib"
|
||||||
## Cannot use noexec on /lib as per:
|
## Cannot use noexec on /lib as per:
|
||||||
|
@ -289,9 +289,9 @@ main() {
|
||||||
_dev
|
_dev
|
||||||
_dev_shm
|
_dev_shm
|
||||||
_tmp
|
_tmp
|
||||||
_var
|
|
||||||
_var_tmp
|
_var_tmp
|
||||||
_var_log
|
_var_log
|
||||||
|
_var
|
||||||
_home
|
_home
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue