Map the permission gating RTM_GETLINK messages to a new permission so
that it can be distinguished from the other netlink route permissions
in selinux policy.
This is a temporary Android-only patch that will be deprecated in
newer kernels once the long-term solution lands as discusssed on the
mailing list [1]. The maintainer's recommended solution is more
general, much more complex, and likely not suitable for backporting.
This patch provides the minimal change needed for Android including
the userspace settable trigger which ensures that the permission
change is only applied to the newest version of Android which
contains the changes needed for userpace compatibility.
[1]: https://lore.kernel.org/selinux/20200116142653.61738-1-jeffv@google.com/
Bug: 141455849
Bug: 148218425
Test: CtsSelinuxTargetSdkCurrentTestCases
Test: atest bionic-unit-tests-static
Test: atest NetworkInterfaceTest
Test: Connect to Wi-Fi network
Test: Set up hotspot
Test: Cast from device
Test: Pair Bluetooth device
Test: Call getifaddrs() directly from within an app.
Test: Call NetworkInterface#getNetworkInterfaces() from within an app.
Change-Id: I7b44ce60ad98f858c412722d41b9842f8577151f
Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
Git-repo: https://android.googlesource.com/kernel/common
Git-commit: dc34c9f193
Signed-off-by: Alam Md Danish <amddan@codeaurora.org>
wait_for_completion_interruptible() returns ERESTARTSYS when
the device goes to low power mode.
The SPU subsystem is shutdown on deep low power mode,
so the interrupted operation is not recoverable.
return EINTR to user space to propagate the error to the user app.
Change-Id: I3b47b971d4411f977a0f68c1ce838fd92198c75d
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
the print format has "%s" but is missing the "name" parameter.
Change-Id: Ib2fcbcf2d477552c8d2fbf16487854ac13c1b3ca
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
HV-haptics module with V2 revision supports 640 bytes FIFO memory and
each byte contains a FIFO sample. There are 4 adjacent SPMI registers
which can be used for filling 4 FIFO samples together by using SPMI
burst writes and also a single register for filling FIFO samples while
the samples are less than 4.
Also update the logic of writing FIFO samples: Check the available
FIFO memory first and then write FIFO with samples no more than the
available FIFO memory space. With this new logic, it's not necessory
to read FIFO_READY_STS register before writing FIFO samples and this
helps on reducing FIFO writing latency.
Change-Id: If65a81327dfd2c6af0d58055c0ae93ad6c1dcba0
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
Enable the mem-buf driver on the genericarmv8-64 configuration.
Change-Id: I566dcdd02e5ff36e92f8291bda8294e4ce80f850
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
The mem-buf driver doesn't strictly depend on the secure
buffer functionality. For example, it can still be functional
in environments where it is used purely for requesting memory
from other VMs. Thus, remove the dependency.
Change-Id: Ie4e39c00473509ee3552e6da849c633ccfab21ce
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Enable CONFIG_VM_EVENT_COUNT_CLEAN_PAGE_RECLAIM and
CONFIG_BALANCE_ANON_FILE_RECLAIM on genericarmv8-64.
Change-Id: I9810575dcabd14a2e39c2e08d502e3213877ed69
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Enable the memory hotplug and hotremove configs for the
genericarmv8-64 configuration.
Change-Id: I80ac4cd226a42a36a8dbecab7af99783f0875c27
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Enabling the movable zone shouldn't depend on QCOM_MEM_OFFLINE,
so remove the dependency.
Change-Id: Id5bd1a7b79adbf6f85c2007cd7d690a387258c83
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Enable the interconnect debugfs nodes, which are required for debugging,
testing, and performance profiling.
Change-Id: If939909c27fdb4044189b9d08ae03a5f644d3a4b
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
Expose a debugfs node so that user can manually input WFC call
status QMI message for debug purpose.
Change-Id: I02d2b0064a0ba5622c2ee3523e577ec2f3fec36b
Signed-off-by: Yue Ma <yuem@codeaurora.org>
Enable the configs necessary to enable ZRAM functionality
on genericarmv8-64.
Change-Id: Iebb618a4b716f0dee27f6ddd7e14975481d4a3c8
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Enable the CMA optimizations for the genericarmv8-64
configuration.
Change-Id: Ib65684f4d3c89d7a6bf9961d6538cbeb84cec638
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>