syscall: Fake uname to 4.19 also for netbpfload
* This is required for U QPR2 Change-Id: I0321c64f77fccf74ff2472c3abd29e8b6b4be1ce
This commit is contained in:
parent
c0a56b4bc0
commit
01d2093da5
1 changed files with 1 additions and 0 deletions
|
@ -1347,6 +1347,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…
Add table
Add a link
Reference in a new issue