Skip to content

Commit

Permalink
Convert devpts domain to ksu_file (tiann#1801)
Browse files Browse the repository at this point in the history
AOSP sepolicy does not allow appdomain to open pts. Hence, convert
devpts domain to ksu_file to allow any access.
  • Loading branch information
aviraxp authored and Jbub5 committed Jul 25, 2024
1 parent 47098a1 commit 6092f08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/selinux/selinux.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,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 @@ -142,4 +142,4 @@ u32 ksu_get_devpts_sid()
pr_info("get devpts sid err %d\n", err);
}
return devpts_sid;
}
}

0 comments on commit 6092f08

Please sign in to comment.