Exploit database

GH-4140da88982b84eb665215cb2539458b

nikitapbst/cve-2019-6260

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2019-6260

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files64
nikitapbst/cve-2019-6260Revision 448a6209326d
Next files →

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

priv.c

C · 346 bytes
// SPDX-License-Identifier: Apache-2.0
// Copyright (C) 2018,2019 IBM Corp.

#include "log.h"
#include "priv.h"

#include <errno.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>

bool priv_am_root(void)
{
    return !geteuid();
}

void priv_print_unprivileged(const char *name)
{
    loge("%s needs to be run as root\n", name);
}