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

Commit b2c96897 authored by Jim Miller's avatar Jim Miller Committed by Jessica Wagantall
Browse files

Fix missing permission check when saving pattern/password

Fixes bug 28163930
Ticket: CYNGNOS-3020

Change-Id: Ic98ef20933b352159b88fdef331e83e9ef6e1f20
(cherry picked from commit b5383455)
parent 2c3de435
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -470,6 +470,7 @@ public class LockSettingsService extends ILockSettings.Stub {
    @Override
    public void setLockPattern(String pattern, String savedCredential, int userId)
            throws RemoteException {
        checkWritePermission(userId);
        byte[] currentHandle = getCurrentHandle(userId);

        if (pattern == null) {
@@ -498,6 +499,7 @@ public class LockSettingsService extends ILockSettings.Stub {
    @Override
    public void setLockPassword(String password, String savedCredential, int userId)
            throws RemoteException {
        checkWritePermission(userId);
        byte[] currentHandle = getCurrentHandle(userId);

        if (password == null) {