Merge "Remove write to /sys/fs/selinux/checkreqprot" into main

This commit is contained in:
Thiébaud Weksteen 2023-10-20 00:54:53 +00:00 committed by Gerrit Code Review
commit 3ef4da2f6a

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;