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 LeCmnGend committed Sep 25, 2024
1 parent 781dec8 commit 783ab25
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 783ab25

Please sign in to comment.