mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
syscall: Fake uname to 4.19 also for netbpfload
* This is required for U QPR2 Change-Id: I0321c64f77fccf74ff2472c3abd29e8b6b4be1ce Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
parent
dcb49fbdf0
commit
79c865d07c
@ -1189,6 +1189,7 @@ SYSCALL_DEFINE1(newuname, struct new_utsname __user *, name)
|
|||||||
down_read(&uts_sem);
|
down_read(&uts_sem);
|
||||||
memcpy(&tmp, utsname(), sizeof(tmp));
|
memcpy(&tmp, utsname(), sizeof(tmp));
|
||||||
if (!strncmp(current->comm, "bpfloader", 9) ||
|
if (!strncmp(current->comm, "bpfloader", 9) ||
|
||||||
|
!strncmp(current->comm, "netbpfload", 10) ||
|
||||||
!strncmp(current->comm, "netd", 4)) {
|
!strncmp(current->comm, "netd", 4)) {
|
||||||
strcpy(tmp.release, "4.19.0");
|
strcpy(tmp.release, "4.19.0");
|
||||||
pr_debug("fake uname: %s/%d release=%s\n",
|
pr_debug("fake uname: %s/%d release=%s\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user