Skip to content

Commit 93b4a9d

Browse files
committed
kernel: scripts: kuid_ul_fix: add small script as helper
meant for 3.0 ~ 3.10 that is built with CONFIG_UIDGID_STRICT_TYPE_CHECKS=n Signed-off-by: backslashxx <[email protected]>
1 parent 99a39e0 commit 93b4a9d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

kernel/kuid_ul_fix.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
3+
# KernelSU: adapt to CONFIG_UIDGID_STRICT_TYPE_CHECKS=n
4+
# this is meant for 3.0, 3.4 and 3.10 where uid is uid itself not uid.val
5+
6+
# remove all .val
7+
sed -i 's|\.val||g' *.c *.h
8+
9+
# since cmd.value will be affected, we have to restore it
10+
sed -i 's|cmdue|cmd.value|g' *.c *.h
11+
12+
# EOF

0 commit comments

Comments
 (0)