Skip to content

Commit

Permalink
drivers: kernelsu: update to v1.0.1
Browse files Browse the repository at this point in the history
also set gitversion to 1728

Signed-off-by: engstk <[email protected]>
  • Loading branch information
engstk committed Jul 25, 2024
1 parent 82972a5 commit 77da24a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion drivers/kernelsu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ obj-$(CONFIG_KSU) += kernelsu.o
# ifeq ($(shell test -e $(srctree)/$(src)/../.git; echo $$?),0)
# $(shell cd $(srctree)/$(src); /usr/bin/env PATH="$$PATH":/usr/bin:/usr/local/bin [ -f ../.git/shallow ] && git fetch --unshallow)
# KSU_GIT_VERSION := $(shell cd $(srctree)/$(src); /usr/bin/env PATH="$$PATH":/usr/bin:/usr/local/bin git rev-list --count HEAD)
KSU_GIT_VERSION := 1674
KSU_GIT_VERSION := 1728
# ksu_version: major * 10000 + git version + 200 for historical reasons
$(eval KSU_VERSION=$(shell expr 10000 + $(KSU_GIT_VERSION) + 200))
$(info -- KernelSU version: $(KSU_VERSION))
Expand Down
4 changes: 2 additions & 2 deletions drivers/kernelsu/selinux/selinux.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ bool is_zygote(void *sec)
return result;
}

#define DEVPTS_DOMAIN "u:object_r:devpts:s0"
#define DEVPTS_DOMAIN "u:object_r:ksu_file:s0"

u32 ksu_get_devpts_sid()
{
Expand All @@ -127,4 +127,4 @@ u32 ksu_get_devpts_sid()
pr_info("get devpts sid err %d\n", err);
}
return devpts_sid;
}
}
4 changes: 2 additions & 2 deletions drivers/kernelsu/throne_tracker.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,13 @@ void search_manager(const char *path, int depth, struct list_head *uid_data)
file = ksu_filp_open_compat(pos->dirpath, O_RDONLY | O_NOFOLLOW, 0);
if (IS_ERR(file)) {
pr_err("Failed to open directory: %s, err: %ld\n", pos->dirpath, PTR_ERR(file));
return;
goto skip_iterate;
}

iterate_dir(file, &ctx.ctx);
filp_close(file, NULL);
}

skip_iterate:
list_del(&pos->list);
if (pos != &data)
kfree(pos);
Expand Down

0 comments on commit 77da24a

Please sign in to comment.