Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 479c5911 authored by Pavel Grafov's avatar Pavel Grafov
Browse files

Migrate sec log to policy engine

Security log is controlled by a system property and currently
DPM.setSecurityLoggingEnabled is modifying this property directly. This
doesn't allow enablind or disabling security log via any other mechanism
without overwriting that policy. To allow controlling security log via
audit logging API for DPMRH this CL migrates that policy into a integer
policy in the policy engine. That integer is treated as a flag union
which currently has only one flag that corresponds to the existing
DPM.setSecurityLoggingEnabled. Another flag will be added for the new
audit log API so that log buffer will be enabled if either of those
flags is present.

Bug: 295324350
Test: atest MixedDeviceOwnerTest#testSecurityLoggingWithSingleUser
Test: atest MixedDeviceOwnerTest#testSecurityLoggingDelegate
Test: atest OrgOwnedProfileOwnerTest#testSecurityLogging
Test: atest OrgOwnedProfileOwnerTest#testSecurityLoggingDelegate
Test: atest SecurityLoggingTest
Test: manual, with TestDPC
Change-Id: I05235f36827ce41ab67332283749f886d7cf8426
parent 66013894
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment