]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - kernel/power/hibernate.c
PM / hibernate: Image data protection during restoration
[mirror_ubuntu-bionic-kernel.git] / kernel / power / hibernate.c
index b00f270d328eccd480a801a8ffdf920cb7da5d90..51441d87f0b6470804b122e5e369bfad9b21d08a 100644 (file)
@@ -1126,6 +1126,9 @@ static int __init hibernate_setup(char *str)
        } else if (!strncmp(str, "no", 2)) {
                noresume = 1;
                nohibernate = 1;
+       } else if (IS_ENABLED(CONFIG_DEBUG_RODATA)
+                  && !strncmp(str, "protect_image", 13)) {
+               enable_restore_image_protection();
        }
        return 1;
 }