Merge "Remove write to /sys/fs/selinux/checkreqprot" into main am: 3ef4da2f6a

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2795756

Change-Id: If2f3e9bb1702a8786dbd9710a2e274bff00c2870
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Thiébaud Weksteen 2023-10-20 01:37:54 +00:00 committed by Automerger Merge Worker
commit 44af132bd3

View file

@ -503,10 +503,6 @@ void SelinuxSetEnforcement() {
<< ") failed";
}
}
if (auto result = WriteFile("/sys/fs/selinux/checkreqprot", "0"); !result.ok()) {
LOG(FATAL) << "Unable to write to /sys/fs/selinux/checkreqprot: " << result.error();
}
}
constexpr size_t kKlogMessageSize = 1024;