Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  kaslr.c   Sprache: C

 
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2016 Linaro Ltd <ard.biesheuvel@linaro.org>
 */


#include <linux/cache.h>
#include <linux/init.h>
#include <linux/printk.h>

#include <asm/cpufeature.h>
#include <asm/memory.h>

bool __ro_after_init __kaslr_is_enabled = false;

void __init kaslr_init(void)
{
 if (kaslr_disabled_cmdline()) {
  pr_info("KASLR disabled on command line\n");
  return;
 }

 /*
 * The KASLR offset modulo MIN_KIMG_ALIGN is taken from the physical
 * placement of the image rather than from the seed, so a displacement
 * of less than MIN_KIMG_ALIGN means that no seed was provided.
 */

 if (kaslr_offset() < MIN_KIMG_ALIGN) {
  pr_warn("KASLR disabled due to lack of seed\n");
  return;
 }

 pr_info("KASLR enabled\n");
 __kaslr_is_enabled = true;
}

static int __init parse_nokaslr(char *unused)
{
 /* nokaslr param handling is done by early cpufeature code */
 return 0;
}
early_param("nokaslr", parse_nokaslr);

Messung V0.5
C=88 H=96 G=91

¤ Dauer der Verarbeitung: 0.15 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge