[02/20] Core Update 157: remove SUID bit from /usr/bin/gpg

Message ID 7b61506c-84b9-f4e8-7a5f-5a8e8a39f795@ipfire.org
State Accepted
Commit 92c6c8d11db5cb228d4e47e79b1f8753b623cc34
Headers
Series Prevent "nobody" from escalating privileges by using writeable binaries as a vehicle |

Commit Message

Peter Müller May 17, 2021, 7:01 p.m. UTC
  Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
---
 config/rootfiles/core/157/update.sh | 3 +++
 1 file changed, 3 insertions(+)
  

Patch

diff --git a/config/rootfiles/core/157/update.sh b/config/rootfiles/core/157/update.sh
index 09b8d8968..322e2ada2 100644
--- a/config/rootfiles/core/157/update.sh
+++ b/config/rootfiles/core/157/update.sh
@@ -103,6 +103,9 @@  ldconfig
 # Filesytem cleanup
 /usr/local/bin/filesystem-cleanup
 
+# Fix file permissions changed
+chmod -s /usr/bin/gpg
+
 # Start services
 /etc/init.d/sshd restart
 /etc/init.d/apache restart