From 06b39e5b5bb8b4bc11f1d4708b41de47e7676528 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Sat, 15 May 2021 11:52:37 +0200 Subject: [PATCH] Use absolute paths when adding --- root/usr/local/bin/tamper-check | 3 +++ 1 file changed, 3 insertions(+) diff --git a/root/usr/local/bin/tamper-check b/root/usr/local/bin/tamper-check index d95590d..36cb523 100755 --- a/root/usr/local/bin/tamper-check +++ b/root/usr/local/bin/tamper-check @@ -17,6 +17,8 @@ files = { '/usr/bin/chsh': '6bc0ae69620dde18f7942e2573afb4a6200b10269612151f48f54ef8423a64fe', '/usr/bin/chfn': '63178af1347a62f58874640d38d605d3cb1bebe8092533787965ba317e8b553b', '/home/itsdrike/.ssh/authorized_keys': '674806197893dbf67d3c9ba3abf049d30e571de0c4b450fc9819d3e8b0f854cc', + '/boot/vmlinuz-linux': '398e3771c5a5e06eebc317cb7c622c9d3217887b92671876e5b0fae0754cab13', + '/boot/grub/grub.cfg': '39a57270f03a2fbd89f8e99af101ba34380a216a2cb2150268538c84480bc69c', } # default state of VERBOSE variable, this is controlled by flag @@ -270,6 +272,7 @@ def analyze_args(): elif '--add=' in arg or '-a=' in arg: path = arg.replace('--add=', '').replace('-a=', '') if os.path.exists(path): + path = os.path.abspath(path) TO_ADD.append(path) else: print(