403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.14
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/modules/6.8.0-45-generic/build/tools/testing/selftests/damon/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/modules/6.8.0-45-generic/build/tools/testing/selftests/damon/_chk_dependency.sh
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0

# Kselftest framework requirement - SKIP code is 4.
ksft_skip=4

DBGFS=/sys/kernel/debug/damon

if [ $EUID -ne 0 ];
then
	echo "Run as root"
	exit $ksft_skip
fi

if [ ! -d "$DBGFS" ]
then
	echo "$DBGFS not found"
	exit $ksft_skip
fi

for f in attrs target_ids monitor_on
do
	if [ ! -f "$DBGFS/$f" ]
	then
		echo "$f not found"
		exit 1
	fi
done

permission_error="Operation not permitted"
for f in attrs target_ids monitor_on
do
	status=$( cat "$DBGFS/$f" 2>&1 )
	if [ "${status#*$permission_error}" != "$status" ]; then
		echo "Permission for reading $DBGFS/$f denied; maybe secureboot enabled?"
		exit $ksft_skip
	fi
done

Youez - 2016 - github.com/yon3zu
LinuXploit