Skip to content

Commit 2cd9bc7

Browse files
committed
Add support for uname spoofing in newuname syscall
This commit introduces conditional support for uname spoofing in the newuname syscall. When the CONFIG_KSU_SUSFS_SPOOF_UNAME configuration is enabled, the syscall will check a static key to determine if uname spoofing should be applied. If enabled, the `susfs_spoof_uname` function is called to modify the `new_utsname` structure before it is copied to user space. This change enhances the flexibility of the uname syscall for specific use cases.
1 parent 50aed08 commit 2cd9bc7

4 files changed

Lines changed: 2930 additions & 4 deletions

File tree

.github/workflows/sultan.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ jobs:
9999
cp ../susfs4ksu/kernel_patches/include/linux/* ./include/linux/
100100
101101
perl -0pi -e 's/if \(IS_ERR\(f\) && !libperfmgr_redirect\(&f, dfd, tmp, &op, how\)\) \{/if (IS_ERR(f)) {/g' fs/open.c
102-
cat fs/open.c
102+
103103
# Change to common directory and apply SUSFS patch
104104
patch -p1 < 50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch || true
105105
106106
perl -0pi -e 's/if \(IS_ERR\(f\)\) \{/if (IS_ERR(f) && !libperfmgr_redirect(&f, dfd, tmp, &op, how)) {/g' fs/open.c
107-
cat fs/open.c
107+
108108
cp ../kernel_patches/sultan/sys.c_fix.patch ./
109109
patch -p1 < sys.c_fix.patch
110110
@@ -138,7 +138,7 @@ jobs:
138138
echo "CONFIG_TMPFS_POSIX_ACL=y" >> ./arch/arm64/configs/${{ inputs.codename }}_defconfig
139139
140140
- name: Configure Networking
141-
if: matrix.features == 'wksu-susfs'
141+
if: false
142142
run: |
143143
cd "$CONFIG"
144144
# Networking Configuration
@@ -149,6 +149,7 @@ jobs:
149149
150150
- name: Add IP SET & IPv6_NAT Support
151151
shell: bash
152+
if: false
152153
run: |
153154
cd "$CONFIG"
154155
cat >> "./arch/arm64/configs/${{ inputs.codename }}_defconfig" << 'EOF'
@@ -178,7 +179,7 @@ jobs:
178179
179180
- name: Apply TCP Congestion Control
180181
shell: bash
181-
if: true
182+
if: false
182183
run: |
183184
cd "$CONFIG"
184185
cat >> "./arch/arm64/configs/${{ inputs.codename }}_defconfig" << 'EOF'

0 commit comments

Comments
 (0)