Remove envars before the SUDO phase
This is to allow root to execute ": > envars". On a non empty envars owned by lfs, in a directory world writable with sticky bit and not owned by lfs, this may be forbiden by the fs/protected_regular sysctl. See https://www.kernel.org/doc/Documentation/sysctl/fs.txt
This commit is contained in:
parent
94fc75e616
commit
2a9b0c3181
1 changed files with 1 additions and 0 deletions
|
@ -491,6 +491,7 @@ mk_LUSER: mk_SETUP
|
||||||
@touch \$@
|
@touch \$@
|
||||||
|
|
||||||
mk_SUDO: mk_LUSER
|
mk_SUDO: mk_LUSER
|
||||||
|
@sudo rm envars
|
||||||
@sudo make BREAKPOINT=\$(BREAKPOINT) SUDO
|
@sudo make BREAKPOINT=\$(BREAKPOINT) SUDO
|
||||||
@touch \$@
|
@touch \$@
|
||||||
|
|
||||||
|
|
Reference in a new issue