__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# Kselftest framework requirement - SKIP code is 4.
ksft_skip=4
DBGFS=$(grep debugfs /proc/mounts --max-count 1 | awk '{print $2}')
if [ "$DBGFS" = "" ]
then
echo "debugfs not mounted"
exit $ksft_skip
fi
DBGFS+="/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
if [ -f "$DBGFS/monitor_on_DEPRECATED" ]
then
monitor_on_file="monitor_on_DEPRECATED"
else
monitor_on_file="monitor_on"
fi
for f in attrs target_ids "$monitor_on_file"
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_file"
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
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Makefile | File | 658 B | 0644 |
|
| _chk_dependency.sh | File | 943 B | 0644 |
|
| _debugfs_common.sh | File | 1.1 KB | 0644 |
|
| lru_sort.sh | File | 798 B | 0755 |
|
| reclaim.sh | File | 793 B | 0755 |
|
| sysfs.sh | File | 8.73 KB | 0755 |
|
| sysfs_update_removed_scheme_dir.sh | File | 1.54 KB | 0755 |
|