Ver Fonte

chore: remove dead ksun action

The pershoot-based ksun path is long orphaned — nothing calls it
since the refactor to root-setup. The resolve step in main.yml
already mirrors GKI: pershoot dev-susfs tip when susfs is on, org
dev otherwise. Also drops the unused ksun input from file-name.
TheWildJames há 5 dias atrás
pai
commit
7ced3cd860

+ 0 - 4
.github/actions/file-name/action.yml

@@ -9,10 +9,6 @@ inputs:
   description: 'variant'
   required: false
   default: ""
- ksun:
-  description: 'ksun (deprecated)'
-  required: false
-  default: "true"
  susfs:
   description: 'susfs'
   required: true

+ 0 - 61
.github/actions/ksun/action.yml

@@ -1,61 +0,0 @@
-name: Set up KernelSU-Next
-description: download and set up KSUN into the kernel source
-inputs:
- susfs:
-  description: 'susfs'
-  required: true
-
-
-runs:
-  using: composite
-  steps:
-    - name: Setup KSUN with no susfs
-      if: inputs.susfs == 'false'
-      shell: bash
-      run: |
-        cd "$COMMON"
-        curl -LSs "https://raw.githubusercontent.com/KernelSU-Next/KernelSU-Next/next/kernel/setup.sh" | bash -s dev
-
-    - name: Setup pershoot KSUN with susfs
-      if: inputs.susfs == 'true'
-      shell: bash
-      run: |
-        cd "$COMMON"
-        curl -LSs "https://raw.githubusercontent.com/pershoot/KernelSU-Next/dev-susfs/kernel/setup.sh" | bash -s dev-susfs
-
-    - name: enable in defconfig
-      if: inputs.susfs == 'false'
-      shell: bash
-      run: |
-        "$COMMON/scripts/config" --file "$GKI_DEFCONFIG" --enable CONFIG_KSU
-      
-    - name: Extract KSU Version Info and inject into Kbuild
-      shell: bash
-      run: |
-        cd "$COMMON/KernelSU-Next"
-
-        # Fetch dev branch for version info (tags, commits, etc.)
-        git fetch origin dev 2>/dev/null || true
-        
-        # Extract and export KSU version info from dev branch
-        KSU_GIT_VERSION=$(git rev-list --count refs/remotes/origin/dev 2>/dev/null)
-        KSU_GIT_TAG=$(git describe --tags --abbrev=0 refs/remotes/origin/dev 2>/dev/null || echo "")
-        KSU_COMMIT=$(git rev-parse --short refs/remotes/origin/dev 2>/dev/null)
-        KSU_VERSION=$((30000 + KSU_GIT_VERSION))
-
-        cd kernel
-        sed -i "s/^KSU_VERSION_FALLBACK := 1$/KSU_VERSION_FALLBACK := ${KSU_VERSION}/" Kbuild
-        sed -i "s/^KSU_VERSION_TAG_FALLBACK := v0.0.1$/KSU_VERSION_TAG_FALLBACK := ${KSU_GIT_TAG}/" Kbuild
-        
-        echo "KSU_GIT_TAG=$KSU_GIT_TAG" >> $GITHUB_ENV
-        echo "KSU_VERSION=$KSU_VERSION" >> $GITHUB_ENV
-        echo "KSU_COMMIT=$KSU_COMMIT" >> $GITHUB_ENV
-
-    - name: 'Fix KernelSU-Next'
-      if: inputs.susfs == 'true'
-      shell: bash
-      run: |
-        set -euo pipefail
-        cd "$COMMON/KernelSU-Next"
-        cp ${{ github.action_path }}/patches/static.patch ./
-        patch -p1 < static.patch

+ 0 - 23
.github/actions/ksun/patches/static.patch

@@ -1,23 +0,0 @@
-diff --git a/kernel/feature/selinux_hide.c b/kernel/feature/selinux_hide.c
-index e1384d9..56e4cfe 100644
---- a/kernel/feature/selinux_hide.c
-+++ b/kernel/feature/selinux_hide.c
-@@ -35,12 +35,12 @@ bool ksu_selinux_hide_enabled __read_mostly = false;
- bool ksu_selinux_hide_running __read_mostly = false;
- 
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 6, 0)
--static int security_context_to_sid_with_policy(struct selinux_policy *policy, const char *scontext, u32 scontext_len,
--                                               u32 *sid, u32 def_sid, gfp_t gfp_flags);
--static int security_sid_to_context_with_policy(struct selinux_policy *policy, u32 sid, char **scontext,
--                                               u32 *scontext_len);
--static void security_compute_av_user_with_policy(struct selinux_policy *policy, u32 ssid, u32 tsid, u16 tclass,
--                                                 struct av_decision *avd);
-+int security_context_to_sid_with_policy(struct selinux_policy *policy, const char *scontext, u32 scontext_len,
-+                                        u32 *sid, u32 def_sid, gfp_t gfp_flags);
-+int security_sid_to_context_with_policy(struct selinux_policy *policy, u32 sid, char **scontext,
-+                                        u32 *scontext_len);
-+void security_compute_av_user_with_policy(struct selinux_policy *policy, u32 ssid, u32 tsid, u16 tclass,
-+                                          struct av_decision *avd);
- static void (*security_dump_masked_av_fn)(struct policydb *policydb, struct context *scontext, struct context *tcontext,
-                                           u16 tclass, u32 permissions, const char *reason) = NULL;
- static void (*context_struct_compute_av_fn)(struct policydb *policydb, struct context *scontext,

+ 0 - 1
.github/workflows/build.yml

@@ -366,7 +366,6 @@ jobs:
         with:
          root_flavor: ${{ inputs.root_flavor }}
          variant: ${{ inputs.variant }}
-         ksun: "true"
          susfs: ${{ inputs.susfs }}
          zeromount: ${{ inputs.zeromount }}
          nomount: ${{ inputs.nomount }}